EOSERV Forum > EO Server Building > Daily Quest not functioning as intended.
Page: << 1 >>
Daily Quest not functioning as intended.
Author Message
Post #201845 Daily Quest not functioning as intended.

Everything is A-OK with it essentially...except...it's not. The chat bubble for little Timmy appears, but it doesn't allow for the quest to function properly. In my Quest Log is says "Golem Slaying (Daily) - N/A" 


Main

{

        questname       "Golem Slaying (Daily)"

        version         1

}

 

state Begin

{

        desc            "Golem Slaying (Daily)"


    action  AddNpcChat(6, "The Golem has been terrorizing our Town for weeks!");

rule         TalkedToNpc(6) goto Begin1

else Reset();

}

state Begin1

{

        desc            "Golem Slaying (Daily)"


action AddNpcText( 6 , "Hello, [name]! You look strong enough to slay the Golem!");

action AddNpcText( 6 , "You will be paid well for such a task!.");

action AddNpcText( 6 , "The Golem resides in a cave nearby and comes to our Town often. Go defeat him.!");

action AddNpcInput( 6 , 1 , "Okay!");


rule InputNpc ( 1 ) goto Collect1

}


state  Collect1

{

   desc         "Collect the HEART of the Golem"

   

rule GotItems(787, 1) goto Collect2

}

state  Collect2

{

   desc         "Return to Timmy"

    action  ShowHint("You have collected the Heart!");    

   action       AddNpcText(6, "Collect your payment?");

   

   action AddNpcInput(6, 1, "Collect.");

rule InputNpc(1) goto Collect3

}

state Collect3

{

if GotItems(787, 1) goto Check1

else SetState("Collect1");

}

state Check1

{

        desc            "Golem Slaying (Daily)"

 

        action          Roll(5)


        rule            DoneDaily( 1 ) goto EndWithoutReset

        rule            Rolled(1)       goto Ing1

        rule            Rolled(2)       goto Ing2

        rule            Rolled(3)       goto Ing3

        rule            Rolled(4)       goto Ing4

        rule            Rolled(5)       goto Ing5

}

state Ing1

{

action RemoveItem(787, 1);

action GiveItem(732, 1);

action ShowHint("You have been paid 1 Chaos Coin!");

action SetState("GetReward");

}

state Ing2

{

action RemoveItem(787, 1);

action GiveItem(1, 145000);

action ShowHint("You have been paid 145k!");

action SetState("GetReward");

}

state Ing3

{

action RemoveItem(787, 1);

action GiveItem(799, 5);

action ShowHint("You have been paid 5 EXP Essence!");

action SetState("GetReward");

}

state Ing4

{

action RemoveItem(787, 1);

action GiveItem(1, 75000);

action ShowHint("You have been paid 75k!");

action SetState("GetReward");

}

state Ing5

{

action RemoveItem(787, 1);

action GiveItem(177, 1);

action ShowHint("You have been paid with a White Scarf");

action SetState("GetReward");

}

state GetReward

{

        action          ShowHint("You have been paid! (DAILY)");

        action          PlaySound(17);


        action          GiveExp(225000)

        action          ResetDaily();

}


state EndWithoutReset

{

        desc            "Golem Slaying (Daily)"

        action          ShowHint("You can only complete this job once a day.");

        action          AddNpcText( 6 , "You have already been paid today, please come back tomorrow." );

        rule            TalkedToNpc( 6 ) goto Reset

}


state Reset

{

        action          ShowHint("Golem Slaying (Daily) aborted...")

        action          Reset();

}


7 years, 20 weeks ago
Post #201847 Re: Daily Quest not functioning as intended.

I would get rid of the talkedtonpc part of the quest at the start and just have the first part start with the clicking of the first input

7 years, 20 weeks ago
Post #201848 Re: Daily Quest not functioning as intended.

I see what you're doing. I would put in the first state:

state Begin

{

        desc            "Golem Slaying (Daily)"


    action  AddNpcChat(6, "The Golem has been terrorizing our Town for weeks!");

action addNpcInput(6, 1, "Begin");

rule InputNpc(1) goto Begin1

else Reset();

}


7 years, 20 weeks ago
Post #201850 Re: Daily Quest not functioning as intended.

The problem is you are not using AddNpcText in the begin state. The TalkedToNpc rule won't pass unless you have a dialog window open up. Also, else Reset() is useless there. You could plug DoneDaily() in there sooner to get an immediate message that the quest is daily. 

Please don't reply help with guesses. It is very frustrating for newbies.

7 years, 20 weeks ago
Post #201851 Re: Daily Quest not functioning as intended.
Apollo posted: (18th Dec 2016, 12:09 pm)

The problem is you are not using AddNpcText in the begin state. The TalkedToNpc rule won't pass unless you have a dialog window open up. Also, else Reset() is useless there. You could plug DoneDaily() in there sooner to get an immediate message that the quest is daily. 

Please don't reply help with guesses. It is very frustrating for newbies.



Hi, thank you Apollo. it worked wonders. :)

7 years, 20 weeks ago
Page: << 1 >>

EOSERV Forum > EO Server Building > Daily Quest not functioning as intended.