Citizens icon indicating copy to clipboard operation
Citizens copied to clipboard

Npc not giving item

Open ciulic opened this issue 12 years ago • 10 comments

Hi,

The other types seams to be working, but this type, delivery, is not... I accept the quest and the NPC doesn't give me the item that i specified in config. The NPC is a Quester. One of my quests look like this: DlvJob2: texts: description: Transporta asta gardianului. completion: 'Quest completat: The Delivery Job. Rewards: Iron Ingot' acceptance: 'Quest acceptat: The Delivery Job.' repeats: -1 delay: 60 objectives: '0': '0': type: delivery npcdestination: 2 materialid: 1 amount: 1 message: Transport completat, acum intoarce-te. rewards: '0': type: item item: 265 take: false

What could be the problem? Thank you.

ciulic avatar Jun 04 '12 18:06 ciulic

Nobody here alive? Is this plugin dead?

ciulic avatar Jun 17 '12 14:06 ciulic

try using a command reward to give the item... type: command command: give 265

aufdemrand avatar Jun 17 '12 14:06 aufdemrand

forgot you will also need server: true

aufdemrand avatar Jun 17 '12 14:06 aufdemrand

I will test now, thanks.

ciulic avatar Jun 17 '12 15:06 ciulic

This code I have it under quests.yml and it's still not giving me anything. In the meanwhile I have upgraded the vault plugin too and still not working.

LE: changed after type: delivery into type: command and it's saying that he doesn't have any quests

objectives: '0': '0': type: delivery npcdestination: 2 command: give 1 server: true amount: 1 message: My Message

ciulic avatar Jun 17 '12 15:06 ciulic

hmm.. that's not what i meant. So what you're saying is that you're expecting the delivery quest to give you the item that needs to be delivered? That's not how it works... you'd want to use an 'initial' node to give the item.

aufdemrand avatar Jun 17 '12 15:06 aufdemrand

I don't know exactly what are you saying, but what I did was copy paste the quest examples from the wiki and when I have started to test the delivery quests I didn't receive any items... I am supposed to do something else? This is a quest from their wiki: (translations are done by me) DlvJob1: texts: description: Transporta asta gardianului. completion: 'Quest completat: The Delivery Job. Rewards: Iron Ingot' acceptance: 'Quest acceptat: The Delivery Job.' repeats: -1 delay: 60 objectives: '0': '0': type: delivery npcdestination: 2 materialid: 1 amount: 1 message: Transport completat, acum intoarce-te. rewards: '0': type: item item: 265 take: false

What is wrong here? You say I need a node?

ciulic avatar Jun 17 '12 19:06 ciulic

Check out the Initial node on the wiki. It's essentially the same as a reward node, except it gets executed on the start of a quest. That's how you would get the quester to give the item for the delivery quest. The delivery objective does not give the item.

aufdemrand avatar Jun 18 '12 12:06 aufdemrand

    initial:
            '0':
                    type: item
                    item: 
                        id: 339
                        amount: 1
                        data: 0

Its not "item" its "id"

Or if that wont work, u can always use command:

    initial:
            '0':
                    type: command
                    command: give <player> 339 1
                    server: true

MrNiceGuyFromEarth avatar Jul 03 '12 19:07 MrNiceGuyFromEarth

Thanks in the meanwhile I have managed to give the item to players, but it looks like because we have Jobs (the plugin) the users can easily abuse the system receiving the item all over again after they abort.

A good solution that I have is to take some money from the user when he is accepting the quest by using the command, but I don't know how.

Any solutions?

ciulic avatar Jul 04 '12 06:07 ciulic