Jump to content
  • 0

how ot make all monster drop item while being quest ?


MyNoobScriptz

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  75
  • Reputation:   3
  • Joined:  05/01/15
  • Last Seen:  

Quest.cpp

	if (this->nodeExists(node, "Drops")) {
		const auto& drops = node["Drops"];

		for (const auto& dropNode : drops) {
			uint32 mob_id = 0; // Can be 0 which means all monsters

			if (this->nodeExists(dropNode, "Mob")) {
				std::string mob_name;

Quest_db.yml
 

#   Drops:                 Quest item drop targets. (Default: null)
#     - Mob                Monster to kill. 0 will apply to all monsters. (Default: 0)
#       Item               Item to drop.
#       Count              Amount of items that will drop. Non-stackable items default to 1. (Default: 1)
#       Rate               Item drop rate. (10000 = 100%)

 

  - Id: 2000
    Title: Jellopykiller
    Drops:
      - Mob: 0
        Item: Jellopy
        Rate: 1500

Does anyone know how to make all monster drop Jellopy while being quest?

DOC : say 0 will apply to all monsters. (Default: 0), But got error

Edited by MyNoobScriptz
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...