EOSERV Forum > Programming > Quest Help please
Topic is locked.
Page: << 1 >>
Quest Help please
Author Message
Post #140568 Quest Help please

I'm trying to aim this for the adventurer on the newbie map who roams outside near the piggys.  But for some reason I can't seem to get the quest to open up when I talk to her >_> Anyone wannahelp me out on this one please?



Main

{

questname "The Adventure Begins!"

version 1.0

}


State Begin

{

        desc    "Kill 10 Goat"

    action  AddNpcChat ( 154 , "Hellow stranger, Would you be a dear and kill 10 goats for me please? I'll give you a nice amount of gold!");

    rule    KilledNpcs ( 7, 10) goto Advent

}


State Advent

{

    desc    "Talk to the Adventurer"

    action  ShowHint ("You should talk to the Adventurer again!");

    action  AddNpcText ( 154 , "Thank you! You have killed 10 goats for me, that'll show them pesky goats!");

    action  AddNpcText ( 154 , "Now for the piggys! They're everywhere! Could you kill 10 of them for me?");

    rule    TalkedToNpc ( 154 ) goto Piggy

}


State Piggy

{

    desc    "Kill 10 Piggys"

    rule    KilledNpcs ( 231, 10) goto Reward

}


State Reward

{

    action  AddNpcText ( 154 , "Thank you so much for clearing up this place! Talk to me again and we'll see about getting rid of some more!");

    action  ShowHint ("You gained 2000 EXP and 200 GOLD!!");

    action  PlaySound (17);

        action  GiveExp (2000);

action GiveItem(1, 200);

    action  Reset ();

}

14 years, 10 weeks ago
Post #140570 Re: Quest Help please

Is your quest number 154? or the NPC ID is that number?

---
Always remember you're unique, just like everyone else. lol
14 years, 10 weeks ago
Post #140573 Re: Quest Help please

154 is the NPC ID ._.


>_> SO I changed the NPC Quest ID so that it matches but it's not workin v_v

14 years, 10 weeks ago
Post #140574 Re: Quest Help please

Ok, first the number you used there should be the quest ID number not the Npc Id. Don't forget to add the quest script on the edit pub on the NPC you chose to hOst your quest


Edit: Would someone explain me why am I getting -1 in every post I make??

---
Always remember you're unique, just like everyone else. lol
14 years, 10 weeks ago
Post #140853 Re: Quest Help please

Well, see. Okay.. The Adventurer in my pub files wasn't normally a quest. So I had to make her a Quest NPC, then I gave her the Quest Script ID 41.

Main

{

questname "The Adventure Begins!"

version 1.0

}


State Begin

{

        desc    "Kill 10 Goat"

    action  AddNpcChat ( 41, "Hellow stranger, Would you be a dear and kill 10 goats for me please? I'll give you a nice amount of gold!");

    rule    KilledNpcs ( 7, 10) goto Advent

}


State Advent

{

    desc    "Talk to the Adventurer"

    action  ShowHint ("You should talk to the Adventurer again!");

    action  AddNpcText ( 41, "Thank you! You have killed 10 goats for me, that'll show them pesky goats!");

    action  AddNpcText ( 41, "Now for the piggys! They're everywhere! Could you kill 10 of them for me?");

    rule    TalkedToNpc ( 41 ) goto Piggy

}


State Piggy

{

    desc    "Kill 10 Piggys"

    rule    KilledNpcs ( 231, 10) goto Reward

}


State Reward

{

    action  AddNpcText ( 41, "Thank you so much for clearing up this place! Talk to me again and we'll see about getting rid of some more!");

    action  ShowHint ("You gained 2000 EXP and 200 GOLD!!");

    action  PlaySound (17);

        action  GiveExp (2000);

action GiveItem(1, 200);

    action  Reset ();

}

This as you can see >_> matches every bit of it.  So, it should be working right? But it's not :<

14 years, 9 weeks ago
Post #140858 Re: Quest Help please

The problem you have is simple, you have no dialog for the Begin state. AddNpcChat is a speech bubble that will appear when the NPC has visual map chatter. What you need is AddNpcText. 

I would suggest building your first quest with this tutorial:

 http://www.endless-edge.com/eoplus.htm

14 years, 9 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Programming > Quest Help please