EOSERV Forum > EO Server Building > What is wrong with my quest?
Topic is locked.
Page: << 1 >>
What is wrong with my quest?
Author Message
Post #195683 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]

9 years, 43 weeks ago
Post #195687 Re: What is wrong with my quest?

Can you tell me at what point your quest breaks and the revision of EOSERV you are using?

9 years, 43 weeks ago
Post #204524 Re: What is wrong with my quest?

State HelpBob

5 years, 22 weeks ago
Post #204525 Re: What is wrong with my quest?

You might want to change state HelpBob to HelpFred?

EDIT: Jesus, I just noticed this topic has been necro'd.. oh well. for the people that wanted to use this, rofl.

---
"Pineapples and shit."
5 years, 22 weeks ago
Post #204526 Re: What is wrong with my quest?

As afroman said you have the wrong state called out at the start and it doesn't show up in the quest anywhere...You need to change to make these the same!


5 years, 22 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > EO Server Building > What is wrong with my quest?