EOSERV Forum > EO Server Building > Keep getting quest error, again.
Page: << 1 >>
Keep getting quest error, again.
Author Message
Post #202188 Keep getting quest error, again.

Everything seems to be in order in my eyes, I essentially just redid AW quest in a lazy way (Not really changing up any of the states..lol.), but I tried to change the killed players to kill 100 goats, and it keeps giving me "Unknown state: Reward" and expected if/else/desc , etc, or }, but got "goto" 

Can't spot what I'm doing wrong.


Main

{

        questname               "Brothers Solvent"

        version                 1.0

}

State Begin

{

        desc                    "Talk to Zebo&Sedrik"

        action                  AddNpcText( 18, "We've been stuck as a twin-headed demon thanks to Apozen.. we need a cure, but it'll be a big task to get it..." );

       

        action                  AddNpcInput( 18, 1, "Ask for the Reward" );

        action                  AddNpcInput( 18, 2, "Get out of here" );

       

        rule                    InputNpc ( 1 ) goto KillReaper

        rule                    InputNpc ( 2 ) goto Reset

}

State KillReaper

{

        desc                    "Kill the Reaper"

        action                  AddNpcText( 18 , "We'll test  you numerous times in combat to see if you can do this." );

       

        action                  AddNpcInput( 18, 1, "Take the test" );

        action                  AddNpcInput( 18, 2, "Give up" );

       

        rule                   KilledNpcs( 9 , 1 ) goto ReaperDead

rule    InputNpc(2) goto Reset  

}

State ReaperDead

{

        desc                    "Return to the Zebo&Sedrik"

        action                  ShowHint("Return to Zebo&Sedrik");

        action                  AddNpcText( 18, "Next task is at hand, eliminate the Bone Spider");

       

        rule                    TalkedToNpc( 18 ) goto KillBoneSpider

}

State KillBoneSpider

{

        desc                    "Kill the Bone Spider"

        action                  AddNpcText( 18 , "Take care of the Bone Spider for us");

       

        action                  AddNpcInput( 18, 1, "Take the test" );

        action                  AddNpcInput( 18, 2, "Give up" );

       

        rule                    KilledNpcs( 183 , 1 ) goto BoneSpiderDead

rule InputNpc(2) goto Reset

}

State BoneSpiderDead

{

        desc                    "Return to the Zebo&Sedrik"

        action                  ShowHint("Return to Zebo&Sedrik");

        action                  AddNpcText( 18, "You've killed them, but we haven't gotten the cure yet... next assignment.." );

       

        rule                    TalkedToNpc( 18 ) goto KillOctopus

}

State KillOctopus

{

        desc                    "Kill the Octopus"

        action                  AddNpcText( 18 , "Next, take out the Octopus Lord!" );

       

        action                  AddNpcInput( 18, 1, "Take the test" );

        action                  AddNpcInput( 18, 2, "Give up" );

       

        rule                    KilledNpcs( 118 , 1 ) goto OctopusDead

rule InputNpc(2) goto Reset

}

State OctopusDead

{

        desc                    "Return to Zebo&Sedrik"

        action                  ShowHint("Return to Zebo&Sedrik");

        action                  AddNpcText( 18, "They're not finished yet! We must eliminate all." );

       

        rule                    TalkedToNpc( 18 ) goto KillApozen

}

State KillApozen

{

        desc                    "Kill Apozen Overlord"

        action                  AddNpcText( 18 , "Kill the Overlord himself... APOZEN!" );

       

        action                  AddNpcInput( 18, 1, "Take the test" );

        action                  AddNpcInput( 18, 2, "Give up" );

       

        rule                    KilledNpcs( 257 , 1 ) goto ApozenDead

rule InputNpc(2) goto Reset

}

State ApozenDead

{

        desc                    "Return to the Zebo&Sedrik"

        action                  ShowHint("Return to Zebo&Sedrik");

        action                  AddNpcText( 18, "Very well... we're half way there..." );

       

        rule                    TalkedToNpc( 18 ) goto GetPiggies

}

State GetPiggies

{

        desc                    "Find Goat Horns"

        action                  AddNpcText( 18, "Bring us 100 Goat Horns please!" );

       

        rule                    GotItems(258,100) goto GotPiggies

}

State GotPiggies

{

        desc                    "Give Horns to Zebo&Sedrik"

        action                  ShowHint("Return to Zebo&sedrik");

        action                  AddNpcText( 18, "Give those to me please.." );

        action                  AddNpcInput(18,1, "Give the 100 Horns");

        action                  AddNpcInput(18,2, "No, sorry no deal.");

 

        rule                    InputNpc( 1 ) goto GetSnakeTeeth

rule InputNpc(2) goto Reset

}

State GetSnakeTeeth

{

        desc                    "Find snake teeth"

        action                  Quake(2, 118);

        action                  RemoveItem(258,100);

        action                  AddNpcText( 18, "Bring me 100 Snake Teeth now!" );

       

        rule                    GotItems(253,100) goto GotSnakeTeeth

}

State GotSnakeTeeth

{

        desc                    "Give snake teeth to Zebo&Sedrik"

        action                  ShowHint("Return to Zebo&Sedrik");

        action                  AddNpcText( 18, "I need the teeth please!.." );

        action                  AddNpcInput(18,1, "Give 100 snake teeth");

        action                  AddNpcInput(18,2, "No, sorry no deal.");

        rule                   TalkedToNpc( 18 ) goto GetTenbaBags

rule InputNpc(2) goto Reset

}

State GetTenbaBags

{

        desc                    "Find Bat Wings"

        action                  Quake(2, 118);

        action                  RemoveItem(253,100);

        action                  AddNpcText( 18, "Bring us 100 Bat Wings please.." );

       

        rule                    GotItems(319,100) goto GotTenbaBags

}

State GotTenbaBags

{

        desc                    "Give Bat Wings to Zebo&Sedrik"

        action                  ShowHint("Return to Zebo&Sedrik");

        action                  AddNpcText( 18, "Give those to me please!.." );

        action                  AddNpcInput(18,1, "Give 100 Bat Wings");

        action                  AddNpcInput(18,2, "No, sorry no deal");

        rule                    TalkedToNpc( 18 ) goto GetImpStings

rule InputNpc(2) goto Reset

}

State GetImpStings

{

        desc                    "Find Fire Crystal"

        action                  Quake(2, 118);

        action                  AddNpcText( 18, "Now we need 100 Fire Crystals!" );

        action                  RemoveItem(319,100);

       

        rule                    GotItems(78,100) goto GotImpStings

}

State GotImpStings

{

        desc                    "Give the crystals to Zebo&Sedrik"

        action                  ShowHint("Return to Zebo&Sedrik");

        action                  AddNpcText( 18, "I'll take those, thank you!.." );

        action                  AddNpcInput(18,1, "Give 100 imp strings");

        action                  AddNpcInput(18,2, "No, sorry no deal.");

 

        rule                    TalkedToNpc( 18 ) goto GetWurmHeads

rule InputNpc(2) goto Reset

}

State GetWurmHeads

{

        desc                    "Find Ice Cubes"

        action                  Quake(2, 118);

        action                  AddNpcText( 18, "Bring me 50 Ice Cubes!.." );

        action                  RemoveItem(78,100);   

       

        rule                   GotItems(338,50) goto GotWurmHeads

}

State GotWurmHeads

{

        desc                    "Give Ice Cubes to Zebo&Sedrik"

        action                  ShowHint("Return to Zebo&Sedrik");

        action                  AddNpcText( 18, "Thank you...." );

        action                  AddNpcInput(18,1, "Give 50 Ice Cubes");

        action                  AddNpcInput(18,2, "No, sorry no deal");

 

        rule                   TalkedToNpc( 18 ) goto GetDragonWings

rule InputNpc(2) goto Reset

}

State GetDragonWings

{

        desc                    "Find Dragon Wings"

        action                  Quake(4, 118);

        action                  AddNpcText( 18, "Bring me 10 Dragon Wings now!.." );

        action                  RemoveItem(338,50); 

        rule                    GotItems(470,10) goto GotDragonWings

}

State GotDragonWings

{

        desc                    "Give dragon wings to Zebo&Sedrik"

        action                  ShowHint("Return to Zebo&Sedrik");

        action                  AddNpcText( 18, "We neeed them now!!" );

        action                  AddNpcInput(18,1, "Give 10 dragon wings");

        action                  AddNpcInput(18,2, "No, sorry no deal.");

       

        rule                   TalkedToNpc( 18 ) goto KillPlayers

rule InputNpc(2) goto Reset

}

State KillPlayers

{

        desc                    "Kill 100 Goats!"

        action                  Quake(2,118);

        action                  AddNpcText( 18, "You've done very well, now for fun, one last task!.");

        action                  AddNpcText( 18, "Slaughter 100 goats!");

       

        rule                    KilledNpcs(7,100); goto WraithDialog

}

State WraithDialog

{

        desc                    "Talk to Zebo&Sedrik"

        action                  Quake(4, 118);

        action                  ShowHint("Return to Zebo&Sedrik");

        action                  AddNpcText( 18, "We have our cure, and we need to give you a reward!.." );

       

        rule                    TalkedToNpc( 1 ); goto Reward

}

State Reward

{

        action                  GiveItem(1,10000);

        action                  GiveExp(1000000);

        action                  GiveItem(257,1);

        action                  ShowHint("You gained 1 Million EXP, Scav Bow, and 10,000 Gold!");

        action                  PlaySound(18);

        action                  End();

}

State Reset

{

7 years, 14 weeks ago
Post #202189 Re: Keep getting quest error, again.

You have a semicolon after TalkedToNpc and before the goto. That fucked everything up I am sure. Only use semicolons at the end of actions.

7 years, 14 weeks ago
Post #202191 Re: Keep getting quest error, again.
Apollo posted: (22nd Jan 2017, 01:54 am)

You have a semicolon after TalkedToNpc and before the goto. That fucked everything up I am sure. Only use semicolons at the end of actions.


That was my guess initially, but even after that I receive 


> Syntax Error: Expected state-block entry (rule/action/if/elseif/else/goal/desc) or closing brace '}' in state 'killplayers'. Got: identifier 'goto' (Line 240)

 > Unknown quest state: reward

7 years, 14 weeks ago
Post #202195 Re: Keep getting quest error, again.

I can't see line 240 in your quest. How about just pasting the quest state this time.

7 years, 14 weeks ago
Post #202198 Re: Keep getting quest error, again.

Lines 232, to 261. Line 240 is       rule                    KilledNpcs(7,100) goto WraithDialog


State KillPlayers

{

        desc                    "Kill 100 Goats!"

        action                  Quake(2,118);

        action                  AddNpcText( 18, "You've done very well, now for fun, one last task!.");

        action                  AddNpcText( 18, "Slaughter 100 goats!");

       

        rule                    KilledNpcs(7,100) goto WraithDialog

}

State WraithDialog

{

        desc                    "Talk to Zebo&Sedrik"

        action                  Quake(4, 118);

        action                  ShowHint("Return to Zebo&Sedrik");

        action                  AddNpcText( 18, "We have our cure, and we need to give you a reward!.." );

       

        rule                    TalkedToNpc( 1 ) goto Reward

}

State Reward

{

        action                  GiveItem(1,10000);

        action                  GiveExp(1000000);

        action                  GiveItem(257,1);

        action                  ShowHint("You gained 1 Million EXP, Scav Bow, and 10,000 Gold!");

        action                  PlaySound(18);

        action                  End();

}

State Reset

{

7 years, 14 weeks ago
Post #202199 Re: Keep getting quest error, again.

You have something else wrong. Quake only has one variable. Make sure to save this quest and restart your server. If you still get the error message, paste it to pastebin.com so I can see the exact line numbers for any other errors.

7 years, 14 weeks ago
Post #202201 Re: Keep getting quest error, again.
Apollo posted: (22nd Jan 2017, 03:30 pm)

You have something else wrong. Quake only has one variable. Make sure to save this quest and restart your server. If you still get the error message, paste it to pastebin.com so I can see the exact line numbers for any other errors.


I figured out largely what the issue is, and I fixed both Quake, I also screwed up the "GiveExp", as it was supposed to be "GiveEXP", a difference that's not so quick to spot I guess.

I appreciate your help.

7 years, 14 weeks ago
Post #202205 Re: Keep getting quest error, again.

Case actually doesn't matter...

7 years, 14 weeks ago
Post #202206 Re: Keep getting quest error, again.
Apollo posted: (22nd Jan 2017, 04:46 pm)

Case actually doesn't matter...



Well it seemed to, because it wouldn't validate it otherwise. Kept black rather than showing it as a proper quest action until I changed the capitalization, and it wouldn't show Reward as a proper state til' I fixed that, so the quest wouldn't work.
7 years, 14 weeks ago
Page: << 1 >>

EOSERV Forum > EO Server Building > Keep getting quest error, again.