Jump to content
  • 0

how ot make all monster drop item while being quest ?


Question

Posted (edited)

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

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

Maybe i am late but you have to use this instead putting a 0 .
Example:
===================
  - Id: 90000
    Title: Example
    Drops:
      - Mob: 
        Item: Pocket_Watch
        Count: 1
        Rate: 10000
===================

SCRIPT FOR SALE 
DISCORD SHOP: https://discord.gg/Am8jFCNBBY

Edited by Esther

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...