EOSERV Forum > EO Server Building > Nvm, Daddy fixed it
Page: << 1 >>
Nvm, Daddy fixed it
Author Message
Post #203205 Nvm, Daddy fixed it

Nvm, daddy fixed it

Main

{

        questname   "Goat Slayer"

        version  1.0

}


State Begin

{

        desc        "Talk to old guy"


        action     AddNpcChat(1, "Hello Stranger");

        action     AddNpcText(1, "Hey, do you think you could help me youngling?");

       

        action     AddNpcInput(1, 1, "Sure, tell me what it is and I'll do my best.");

        action     AddNpcInput(1, 2, "Nope");

        

        rule         InputNpc(1) goto HelpHimOut

        rule         InputNpc(2) goto Reset

}


State HelpHimOut

{

        desc        "Talk to the old man"


        action     AddNpcText(1, "I need 10 goat horns, Do you think you can handle that youngling?");

        action     AddNpcInput(1, 1, "Anything for the elderly.");

        action     AddNpcInput(1, 2, "I don't think i'm strong enough yet.");

       

        rule         InputNpc(1) goto CollectGoatHorns

        rule         InputNpc(2) goto Reset

}


State CollectGoatHorns

{

        desc        "CollectGoatHorns"

        

        action  AddNpcText(1, "Thanks for helping the elderly, come back once you are finished.");       

         rule         GotItems(258, 10) goto Returntooldman

        

}


State Returntooldman

{

        desc        "Talk to the old man"


        action     ShowHint("Return To Oldman");

        action     AddNpcText(1, "Oh you did a great job youngling thank you!");

        action     AddNpcText(1, "As a reward, I award you a this weapon crafted by The Archangel himself!");

       

         rule         TalkedToNpc(1) goto Givehim

}


State Givehim

{

        desc        " Give the horns to me."


        action     RemoveItem(1, 10);

            

         rule         TalkedToNpc(1) goto Reward

}


State Reward

{

        desc        "Talk to the old man"

    

        action     ShowHint("Old man gives you Normal Sword");

        action     GiveItem(207, 1);

        action     End();

}


State Reset

{

        

        action     Reset();

}


---
My skins dying because you're under it-
I’m done lying to myself for this.
For all the wonder in believing man it’s making me weak-
I’ll fade away & classify myself as Obsolete!
6 years, 47 weeks ago
Post #203206 Re: Nvm, Daddy fixed it

Have you tried using the rule LostItems instead of TalkedToNpc

6 years, 47 weeks ago
Post #203207 Re: Nvm, Daddy fixed it
callum posted: (1st Jun 2017, 10:57 am)

Have you tried using the rule LostItems instead of TalkedToNpc


I haven't. Hmmm? That would make sense.
---
My skins dying because you're under it-
I’m done lying to myself for this.
For all the wonder in believing man it’s making me weak-
I’ll fade away & classify myself as Obsolete!
6 years, 47 weeks ago
Post #203208 Re: Nvm, Daddy fixed it

State Givehim needs an action AddNpcText. When you use rule TalkedToNpc the action is needed or youll be stuck in the state.

Edit: I would add LostItems to state returntooldman like callum suggested so that the quest isnt abused. Get rid of state give him and go directly to the reward state. You can remove his items and receive the reward at the same time. No meed for the state unless you want to add more dialogue.

6 years, 47 weeks ago
Post #203209 Re: Nvm, Daddy fixed it
Deaven posted: (1st Jun 2017, 03:15 pm)

State Givehim needs an action AddNpcText. When you use rule TalkedToNpc the action is needed or youll be stuck in the state.


Hi lily
---
#yolomoto
6 years, 47 weeks ago
Post #203210 Re: Nvm, Daddy fixed it
Avdo posted: (1st Jun 2017, 03:32 pm)

Deaven posted: (1st Jun 2017, 03:15 pm)

State Givehim needs an action AddNpcText. When you use rule TalkedToNpc the action is needed or youll be stuck in the state.


Hi lily

Hi
6 years, 47 weeks ago
Post #203211 Re: Nvm, Daddy fixed it

Did not fix no thing

6 years, 47 weeks ago
Page: << 1 >>

EOSERV Forum > EO Server Building > Nvm, Daddy fixed it