Author | Message | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Help with questwriting
| I am having a trouble with the quest system, i've written the code as follows: _________________________________________________________________ Main { questname "Goat Killer" version 1.0 } State Begin { desc "talk to Adventurer" action AddNpcText (500, "Hey, wanna kill some goats for me?"); action AddNpcText (500, "I'll reward you with something cool."); action AddNpcChat (500, "Ugh, these goats are annoying!"); action AddNpcInput (500,1, "No! Do it your self!"); action AddNpcInput (500,2, "Sure, I will help you."); rule InputNpc (1) goto Chicken rule InputNpc (2) goto Killgoats } State Chicken { action AddNpcText (500, "Wow, no need to be a jerk about it."); action Reset(); } State Killgoats { desc "kill 10 goats" rule KilledNpcs (7, 10) goto Talktoadv } State Talktoadv { desc "Talk to adventurer" action AddNpcText (500, "Thank you so much!"); action AddNpcText (500, "Here is something cool for your troubles."); rule TalkedToNpc(500) goto Killedgoats } State Killedgoats { action GiveItem(1, 100); action GiveItem(41, 1); action GiveExp(100); action End(); } ____________________________________________________________ The weird thing is that, the quest loads up, you get to click on the NPC, he gives you the dialog, you go kill the 10 goats, but when you go to get the reward, nothing happens, he gives the text from the state "Talktoadv" but it never gives you the reward and you can keep clicking him and getting the text over and over again, but still no reward. EDIT: it should be noted that, I can use an admin command to advance to the "Killedgoats" state, then the rewards are given. A little help would be nice.
|
Re: Help with questwriting
| Vendor ID 500 is greater than 127, which is triggering a bug in EOSERV. --- Want to learn to pixel? Pixelsource.org
|
Re: Help with questwriting
| Cirras posted: (3rd May 2022, 08:36 am) Can someone remind me whether the vendor id is the npc id or the quest file number id?
|
Re: Help with questwriting
| lolss posted: (30th May 2022, 03:27 am)Cirras posted: (3rd May 2022, 08:36 am) It's neither of those things. The vendor ID is an additonal ID attached to an NPC via the pub files. In EditPub, this is referred to as "Quest ID". --- Want to learn to pixel? Pixelsource.org
|
Re: Help with questwriting
| Cirras posted: (3rd May 2022, 08:36 am) Do you think you can submit a PR to fix it? --- I not hacker “Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.†- Albert Einstein : Really Great Quote Ramy!
|
Re: Help with questwriting
| Hacker_Alex posted: (14th Aug 2022, 04:39 pm)Cirras posted: (3rd May 2022, 08:36 am) AFAIK, sausage does not accept PRs to EOSERV. I can and will submit a PR to the etheos fork instead. --- Want to learn to pixel? Pixelsource.org |