Main
{
questname "Wiseman Quest"
version 1.0
}
State Begin
{
action AddNpcText(4, "Hellow there, I am tired of changing classes for just anyone");
rule TalkedToNpc(4) goto KillRats
}
State KillRats
{
desc "Kill 5 Rats"
action AddNpcText(4, "Prove you aren\'t lazy, Kill 5 Rats.");
rule KilledNpcs(2, 5) goto Wiseman1
}
State Wiseman1
{
desc "Talk to Wiseman"
action AddNpcText(4, "Ok, but I have a request of you");
rule TalkedToNpc(4) goto TileStep
}
State TileStep
{
desc "Check the Boat Door"
action AddNpcText(4, "Check that boat that sails to Newb Land to ensure the door to the captain\'s chamber is locked");
rule EnterCoord(1,6,21) goto Wiseman2
}
State Wiseman2
{
desc "Talk to Wiseman"
action ShowHint("Door is locked! Check back with Wiseman");
action AddNpcText(4, "Good, now I am hungry. Go fetch about 5 Penguin meat for my dinner");
rule TalkedToNpc(4) goto GetPenguinMeat
}
State GetPenguinMeat
{
desc "Find 5 Penguin Meat"
rule GotItems(259,5) goto Wiseman 3
}
State Wiseman3
{
desc "Talk to Wiseman"
action AddNpcText(4, "Did you get 5 penquin meat?");
rule LostItems(259,5) goto Wiseman2
rule TalkedToNpc(4) goto TalkToPigFarmer
}
State TalkToPigFarmer
{
desc "Talk to Pig Farmer"
action AddNpcText(4, "Invite the Pig Farmer to Town Square to share this meal with me");
action AddNpcText(24, "Wiseman, eh? Tell that old fart I am fat enough. I will pass");
rule TalkedToNpc(24) goto Wiseman4
}
State Wiseman4
{
desc "Talk to Wiseman"
action AddNpcText(4, "He refused? How rude! Go take out my anger on another player");
rule TalkedToNpc(4) goto KillPlayer
}
State KillPlayer
{
desc "Kill 1 Player in PK"
rule KilledPlayers(1) goto ClassMenu
}
State ClassMenu
{
desc "Talk to Wiseman"
action AddNpcText(4, "You look like you could use a class change. What class would you like?");
action AddNpcInput(4, 2, "Priest");
action AddNpcInput(4, 3, "Magician");
action AddNpcInput(4, 4, "Rogue");
action AddNpcInput(4, 5, "Archer");
action AddNpcInput(4, 6, "Warrior");
rule InputNpc(2) goto Priest
rule InputNpc(3) goto Magician
rule InputNpc(4) goto Rogue
rule InputNpc(5) goto Archer
rule InputNpc(6) goto Warrior
}
State Priest
{
action SetClass(2);
action SetState("ClassMenu");
}
State Magician
{
action SetClass(3);
action SetState("ClassMenu");
}
State Rogue
{
action SetClass(4);
action SetState("ClassMenu");
}
State Archer
{
action SetClass(5);
action SetState("ClassMenu");
}
State Warrior
{
action SetClass(6);
action SetState("ClassMenu");
}