Citizens
Citizens copied to clipboard
Npc not giving item
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: '
What could be the problem? Thank you.
Nobody here alive? Is this plugin dead?
try using a command reward to give the item...
type: command
command: give
forgot you will also need server: true
I will test now, thanks.
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
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.
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: '
What is wrong here? You say I need a node?
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.
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
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?