TravelBob Quest [free to use]

Post your quests here!
sevenfold
General
General
Posts: 80
Joined: Thu Aug 07, 2014 6:16 pm

TravelBob Quest [free to use]

Postby sevenfold » Mon Sep 21, 2015 9:38 pm

Code: Select all

Main
{
    questname  "Traveler"
    version    1.0
}
state Begin
{
    desc    "Select an Option"
    action  AddNpcText(4, "Hello wanderer, where can i take you? it may cost 100g");
    action  AddNpcInput(4,1,"Breeze");
    action  AddNpcInput(4,2,"Mining - LVL10");
    action  AddNpcInput(4,3,"Beach - LVL15");
    rule    InputNpc(1) goto Breeze
    rule    InputNpc(2) goto Mining
    rule    InputNpc(3) goto Beach
}
state Breeze
{
    rule    GotItems(1,100) goto Success
    action  AddNpcText(4, "You need 100g to travel here.");
    rule    TalkedToNpc(4) goto Reset
}
state Success
{
    action  RemoveItem(1,100);
    action  SetCoord(1,7,3);
    action  Reset();
}
state Mining
{
    rule    IsLevel(10) goto CheckGold
    action  AddNpcText(4, "You need to be LVL10 to travel here.");
    rule    TalkedToNpc(4) goto Reset
}

state CheckGold
{
    rule    GotItems(1,100) goto Success2
    action  AddNpcText(4, "You need 100g to travel here.");
    rule    TalkedToNpc(4) goto Reset
}
state Reset
{
    action  Reset();
}
state Success2
{
    action  RemoveItem(1,100);
    action  SetCoord(7,9,6);
    action  Reset();
}
state Beach
{
    rule    IsLevel(15) goto CheckGold2
    action  AddNpcText(4, "You need to be LVL15 to travel here.");
    rule    TalkedToNpc(4) goto Reset
}

state CheckGold2
{
    rule    GotItems(1,100) goto Success3
    action  AddNpcText(4, "You need 100g to travel here.");
    rule    TalkedToNpc(4) goto Reset
}
state Success3
{
    action  RemoveItem(1,100);
    action  SetCoord(10,24,3 8) ;
    action  Reset();
}

You can edit if you like :)    Make sure you set this quest saved as 00004.eqf. Have fun

Return to “Quests”

Who is online

Users browsing this forum: No registered users and 1 guest