fullwall / Citizens

An NPC plugin for bukkit.
Other
35 stars 7 forks source link

Can't reward a player with a quest #164

Closed laztheripper closed 12 years ago

laztheripper commented 12 years ago

Okay so, I thought I had posted this problem here but my account says 0 issues are mine so, here it goes again -_- I can't set my quester reward to another quest. Upon completing quest "tutorial" I want the quest "tutorial2" to be automatically assigned to the said player. The rest of my quest.txt is fine, i don't get any errors. It says "challenge accepted" when I finish "tutorial" but when I look at my quest status, I do not have any active quests. Maybe I have a syntax error, Idk cause that wiki page is a bit vague about a few details. I could settle for a quick heads up on how to set a requirement for "tutorial2" (requirement being "tutorial").

Here's my file :

Tutorial: texts: description: Hi there! Would you go get me a compass at the shops? completion: Take these, they will be of great use. acceptance: Challenge accepted. repeats: -1 objectives: '0': '0': type: delivery materialid: 345 npcdestination: 1 amount: 1 message: Thank you for giving me my compass ! rewards: '0': type: item id: 364 amount: 3 '1': type: item id: 272 amount: 1 '3': type: item id: 274 amount: 1 '4': type: command command: tp 478,116,-529 '5': type: quest quest: Tutorial2 Tutorial2: texts: description: Hi there! Would you go get some logs? completion: Take these, they will be of great use. acceptance: Challenge accepted. repeats: -1 objectives: '0': '0': type: delivery materialid: 17 npcdestination: 1 amount: 10 message: Thank you for giving me my logs ! rewards: '0': type: item id: 364 amount: 3

Aside from that, I love this plugin and I plan to keep it running on the server as long as you keep it up to date. Good work guys cheers

edit 2* also, I would like to know if it's possible to have a npc give a set amount of money via iConomy to the player when he accepts the quest (so that he can go buy himself some gear). also, there is no color support at the "message:" and "completion:" lines (may have missed some). I found a way to assign the "tutorial2" quest with the "command" reward set to "quest add 1 tutorial2 -f" this is just as good :D but I would still love to know how to set requirements properly and the other details I said. Also, I don't know if the commands are issued by myself or the console because I have the master (op) status and I have all commands, I would like to know if a player can be rewarded a command without him having access to it via nodes as usual. -LAZ

fullwall commented 12 years ago

The money reward will allow for you to use iConomy money. The commands are used by the player who completed the quest unless the setting server: is set to true. That issue is odd, I'll do some testing...

fullwall commented 12 years ago

Also, can you repost this on the CitizensDev/Citizens repo? This one is not used any more...

laztheripper commented 12 years ago

Sure can, ty for your time