Baru Supplies Quest (With Roll/Rolled)

Post your quests here!
Moan
Junior
Junior
Posts: 7
Joined: Mon Nov 21, 2016 12:04 am

Baru Supplies Quest (With Roll/Rolled)

Postby Moan » Tue Nov 22, 2016 1:31 pm

Hey guys, I decided to write this quest, same as EOSERV Main, where Sausage has it set Daily, and roll's the ing's every day, as in "Switches the ingridents daily", I know i never made the NPC text exactly like EO Main's, because i've never done this quest once.
But i know quite a few people will look for this quest, so here it is.

Code: Select all

Main
{
    questname     "Baru Supplies (daily)"
   version        1.0
}

state Begin
{
    desc    "Talk to baru shepherd."
   action    Roll(5)
   rule      DoneDaily(1)goto EndWithoutReset // once a day (1)
   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
{
    desc    "Find 10 Cranes"
   action    AddNpcText(56, "Oh dear, i seem to haved dropped something down the drain, if only I had something to grab it with.");
   action    AddNpcText(56, "Can you find get me some cranes?");
   action    AddNpcInput(56,1, "No way");
   action    AddNpcInput(56,2, "I'm workin on it");
   rule      DoneDaily(1)goto EndWithoutReset // once a day (1)
   rule      InputNpc(1)goto Reset
   rule      GotItems(398,10)goto Shepherd
}
state Shepherd
{
    desc    "Talk to baru shepherd."
   action    AddNpcText(56, "Thank you");
   action    AddNpcText(56, "I'm kind of thirsty, can you get me some Aqua hands?");
   action    AddNpcInput(56,1, "No way");
   action    AddNpcInput(56,2, "I'm working on it");
   rule      DoneDaily(1)goto EndWithoutReset // once a day (1)
   rule      InputNpc(1)goto Reset
   rule      InputNpc(2)goto Ing2
}
state Ing2
{
    desc    "Find 10 Aqua Hands"
   action    RemoveItem(398,10);
   rule      GotItems(474,10)goto Limbo
}
state Limbo
{
    desc    "Talk to baru shepherd."
   action    AddNpcText(56, "Thank you");
   action    AddNpcText(56, "Now i seem a little too hot.");
   action    AddNpcText(56, "Can you get me some ice cubes?");
   action    AddNpcInput(56,1, "No way");
   action    AddNpcInput(56,2, "I'm workin on it");
   rule      DoneDaily(1)goto EndWithoutReset // once a day (1)
   rule      InputNpc(1)goto Reset
   rule      InputNpc(2)goto Ing3
}
state Ing3
{
    desc    "Find 10 Ice Cubes"
   action    RemoveItem(474,10);
   rule    GotItems(338,10)goto BaruTalk
}
state BaruTalk
{
    desc     "Talk to baru shepherd."
   action     AddNpcText(56, "Wonderful, now i'll need Ice gems for my drinks");
   action     AddNpcInput(56,1, "No way");
   action     AddNpcInput(56,2, "I'm workin on it");
   rule       DoneDaily(1)goto EndWithoutReset // once a day (1)
   rule       InputNpc(1)goto Reset
   rule       InputNpc(2)goto Ing4
}
state Ing4
{
    desc    "Find 10 Ice Gems"
   action    RemoveItem(338,10);
   rule      GotItems(337,10)goto TalkBaru
}
state TalkBaru
{
    desc    "Talk to baru shepherd."
   action    AddNpcText(56, "Now i'm gonna need some springs");
   action    AddNpcInput(56,1, "No way");
   action    AddNpcInput(56,2, "I'm workin on it");
   rule      DoneDaily(1)goto EndWithoutReset // once a day (1)
   rule      InputNpc(1)goto Reset
   rule      InputNpc(2)goto Ing5
}
state Ing5
{
    desc    "Find 10 Springs"
   action    RemoveItem(337,10)
   rule      GotItems(478,10)goto Final
}
state Final
{
    desc    "Talk to baru shepherd."
   action    AddNpcText(56, "Wonderful, everything is fixed, and set.");
   action    AddNpcText(56, "Now i ain't so hot, thanks to these cubes.");
   action    AddNpcText(56, "And everything else just helped so much.");
   action    AddNpcText(56, "Take this as an reward.");
   rule      TalkedToNpc(56)goto GetReward
}
state GetReward
{
    action    ShowHint("You gained 2600 exp, and a baru flock!")
    action    GiveExp(2600);
   action    PlaySound(17);
   action    GiveItem(491,1);
   action    ResetDaily();
}
state EndWithoutReset
{
    desc    "Talk to baru shepherd."
   action    AddNpcText(56, "I don't need anything else today.");
   action    AddNpcText(56, "You've finished this quest for today, come back tomorrow.");
   rule      TalkedToNpc(56)goto Reset // requires to talk
}
state Reset
{
    action    Reset();
}

For those who use this, please help me out with some credit, as i'm new to Quest Writing, i've tested this quest on a blank server, and it works fine.

EDIT: I also forgot to mention, i'll take quest requests, anytime. Just let me know what kind of quest you want done.

- Moan

Return to “Quests”

Who is online

Users browsing this forum: No registered users and 2 guests