Share
View previous topicGo downView next topic
Admin
Posts : 5
Eternal Gold : 8
Reputation : 0
Join date : 2017-07-18
View user profilehttp://eternal-online.forumotion.com

Rules of Using this topic

on Mon Jul 24, 2017 7:57 am
All i can say is just post your quest's you've written yourself here, it's simple. Just click the "Code" box above, and add the quest, here's an example of a quest i've written this morning..

Code:
Main
{
  questname  "The Wingo Hunter"
  version  1.0
}

state Begin
{
  desc  "Talk to Wingo Hunter"
  action  AddNpcText(129, "Hello there fellow citizen, how are you today?");
  action  AddNpcInput(129,1, "Go away");
  action  AddNpcInput(129,2, "Exploring");
  rule  InputNpc(1)goto Reset
  rule  InputNpc(2)goto Talk1
}
state Talk1
{
  desc  "Talk to Wingo Hunter"
  action  AddNpcText(129, "Well, that's great i used to be a guard for the imperial castle in aeven..");
  action  AddNpcText(129, "But i became obsessed with killing wingo's in the swamp, near the haunted house.");
  action  AddNpcText(129, "I've killed maybe hundreds of those things, and there were more showing up");
  action  AddNpcText(129, "I have an idea actually..");
  action  AddNpcText(129, "I'll give you my wingo mask from my past killing");
  action  AddNpcText(129, "IF.. you can kill some wingos for me.");
  action  AddNpcInput(129,1, "No way!");
  action  AddNpcInput(129,2, "I'm on it!");
  rule  InputNpc(1)goto Reset
  rule  InputNpc(2)goto Kill
}
state Kill
{
  desc  "Kill 30 Wingos"
  action  ShowHint("Quest Reward: 2500 exp, and a wingo mask!")
  action  AddNpcText(129, "Wonderful, now get hunting!");
  rule  KilledNpcs(20,30)goto Hunter
}
state Hunter
{
  desc  "Talk to Wingo Hunter"
  action  ShowHint("Return to the wingo hunter!")
  action  AddNpcText(129, "Wasn't hard was it? heh.");
  action  AddNpcText(129, "Now collect 15 wingo claws for me");
  action  AddNpcInput(129,1, "I give up");
  action  AddNpcInput(129,2, "I'm on it!");
  rule  InputNpc(1)goto Reset
  rule  InputNpc(2)goto Claws
}
state Claws
{
  desc  "Collect Wingo Claws"
  rule  GotItems(265,15)goto Hunter2
}
state Hunter2
{
  desc  "Talk to Wingo Hunter"
  action  ShowHint("You got the claws, return to the Wingo hunter!")
  action  AddNpcText(129, "You're an official wingo hunter!");
  action  AddNpcInput(129,1, "Thank You");
  rule  InputNpc(1)goto GetReward
}
state GetReward
{
  action  ShowHint("You gained 2500 exp and a wingo mask!")
  action  GiveItem(610,1);
  action  GiveExp(2500);
  action  RemoveItem(265,15);
  action  PlaySound(17);
  action  End();
}
state Reset
{
  action  ShowHint("The wingo hunter quest aborted..")
  action  Reset(); // requires to talk
}

Remember, what you see here is how the quest runs, and functions..
action: Is basically the action of the quest. of course..
rule: The rule function is the thing that continues the quest's, such as "Continue" "KillNpcs" etc.
I don't really know how to explain this much more, but.. Goodluck!

- Moan
View previous topicBack to topView next topic
Permissions in this forum:
You cannot reply to topics in this forum