EOSERV Forum > Programming > Any idea what is wrong with my quest??
Topic is locked.
Page: << 1 >>
Any idea what is wrong with my quest??
Author Message
Post #195684 Any idea what is wrong with my quest??

[code]Main

{

        questname   "Test"

        version  1.0

}



State Begin

{

        desc        "Talk With Fred"


        action     AddNpcText(1, "My Life is ruined! The Goats are destroying everything!");

        action     AddNpcText(1, "Will you please Kill them all?");

        action     AddNpcInput(1, 1, "Of course I will! I hate Goats anyway");

        action     AddNpcInput(1, 2, "Kill your own goats.");

        rule         InputNpc(1) goto HelpFred

        rule         InputNpc(2) goto Coward

}


State Coward

{

        desc        "Talk With Fred"


        action     AddNpcText(1, "MY FAMILY WILL STARVE!");

        rule         TalkedToNpc(1) goto EndReset

}


State HelpBob

{

        desc        "Kill 30 Goats"


        action     AddNpcText(1, "Please kill 30 Goats for me! They will never come back!");

        action     AddNpcInput(1, 1, "Easy");

        action     AddNpcInput(1, 2, "Can't be bothered");

        rule         InputNpc(1) goto KillGoats

        rule         InputNpc(2) goto Coward2

}


State Coward2

{

        desc        "TalktoFred"


        action     AddNpcText(1, "That sucks.");

        rule         TalkedToNpc(1) goto EndReset

}


State KillGoats

{

        desc        "Kill 30 Goats"


        action     AddNpcText(1, "Thank you so much for helping! I will reward you");

        rule         KilledNpcs(7, 30) goto ReturnToFred

}


State ReturnToFred

{

        desc        "ReturnToFred"


        action     ShowHint("You Finished the Quest! Talk to Fred");

        action     AddNpcText(1, "YOU FINISHED! You have helped my whole family!");

        rule         TalkedToNpc(1) goto Reward

}


State Reward

{

        desc        "Complete"


        action     ShowHint("YOU Fred Gives you 5000xp and 5000Gold");

        action     GiveEXP(5000);

        action     GiveItem(1, 5000);

        action     End();

}


State EndReset

{

        desc        "Complete"


        action     Reset();

}

[/code]


I have edited Pedros boy in the pub and changed his name to Farmer Fred which worked ( so this shows the pub editor is working ) Also changed him to a quest npc and set his Quest script to 1... Nothing happens when I click him :/

10 years, 26 weeks ago
Post #195685 Re: Any idea what is wrong with my quest??

...

opps im wronge and cant edit my post...

hmm

saved as? 00001.eqf

 

       

 

---
Think Outside The Box.

..............Skids in my Undies........
...............Cut And Paste............
10 years, 26 weeks ago
Post #195686 Re: Any idea what is wrong with my quest??

Post your error log!

10 years, 26 weeks ago
Post #195688 Re: Any idea what is wrong with my quest??

Is there an error log?

Did you save the Editpub file? I usually forget to do that...

---
"Nurd, you're like a fucking swiss army knife" - Necrosis
10 years, 26 weeks ago
Post #195689 Re: Any idea what is wrong with my quest??

Did they ever fix the problem where when you type an apostrophe, you have to put a slash before it? If not, then that's your problem.

10 years, 25 weeks ago
Post #195690 Re: Any idea what is wrong with my quest??

The problem is that you can't end a quest with TalkedToNPC rules in earlier revisions. This will cause a crash because the dialog is attempted to load after the quest becomes obsolete. As of r425 I believe this issue has been fixed. As for the quest not starting when the NPC is clicked, you may have a completed quest in your character's database. 

10 years, 25 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Programming > Any idea what is wrong with my quest??