//EO-Red / Worlds Apart Questfile
//Redrocco 3/21/2012
//Otto the Sentry NPC/quest ID 406/10
//=======================================
Main
{
questname "Vodian's Lair"
version 2.1
}
State Begin
{
desc "Talk to Otto"
action AddNpcText(10, "Hello buddy, I am the sentry assigned to guard Skarpina. We have been protecting this land from ages. But we are not able to protect it from the monster known as Vodian.");
action AddNpcText(10, "Vodian demands constant sacrifice. Each month we must provide him with a feast, or he will emerge and start taking townspeople. Would you like to help me?");
action addnpcinput(10,1, "What can I do for you?");
action AddNpcInput(10,2, "I am busy right now");
rule InputNpc(1) goto Guard
rule inputnpc(2) goto rst
}
State Guard
{
desc "Talk to Otto"
action addnpctext(10, "You can gather the sacrifice, usually it is 50 goat meat and 50 milk.");
action AddNpcInput(10,1, "Screw that, I'll just kill it.");
action AddNpcInput(10,2, "I guess I should get started");
action addnpcinput(10,3, "Skarpina's problems are not mine");
rule InputNpc(1) goto Octopus
rule InputNpc(2) goto Food
rule InputNpc(2) goto badk
}
state rst
{
action reset();
}
state badk
{
action removekarma(25);
action reset();
}
State Octopus
{
action AddNpcText(10, "You are a brave one. Vodian has killed many adventurers. If he was easy to kill, we would have killed him long ago.");
action AddNpcText(10, "well Now i will take you there, so that you may fight with it");
action AddNpcText(10, "May the Gods be with you, you are going to need them.");
rule TalkedToNpc(10) goto kill.easy
}
State KillOctopus
{
action SetCoord (1163,17,17);
rule entercoord(1163,16,17) goto kill
rule entercoord(1163,18,17) goto kill
rule entercoord(1163,17,16) goto kill
rule entercoord(1163,17,18) goto kill
}
State kill
{
desc "Kill Vodian"
rule leavemap(1163) goto rst
rule KilledNpcs(407,1) goto reward1
}
state reward1
{
action SetCoord (1142,42,3);
action setstate(Reward);
}
State Reward
{
desc "Talk to Otto"
action ShowHint("Good");
action AddNpcText(10, "I can't believe you managed to kill Vodian. Now we can live free from fear. Thanks for helping us. Happy Journey!");
rule talkedtonpc(10) goto payout
}
state payout
{
action GiveExp(4000);
action ShowHint("You have Rewarded 4000 EXP");
action playsound(78);
action givekarma(25);
action reset();
}
State Food
{
desc "Talk to Otto"
action AddNpcText(10, "If you are to gather the sacrifice, you need to get started. Vodian is ancient and quite large. He requires a large amount of food.");
rule talkedtonpc(10) goto Bring
}
State Bring
{
desc "Bring 50 Goat Meat"
rule GotItems (663,50) goto AgainGuard
}
State AgainGuard
{
desc "Return to Otto"
action AddNpcText(10, "You have returned with the Goat Meat, nice work.");
rule LostItems(663,50) goto Food
rule talkedtonpc(10) goto BreadEnd
}
State BreadEnd
{
desc "Bring 50 Cactus Juice"
action RemoveItems(663,50);
action AddNpcText(10,"Now we need to weaken him with poison. 50 Cactus Juice from the desert near Lizard Lick should do it.");
rule GotItems (577,50) goto poison
}
State poison
{
desc "Return To Otto"
action AddNpcText(10,"Excellent, the Cactus Juice should slow him enough to give you a pretty good chance of victory.");
action addnpctext(10,"It is a really brave thing you are doing, if you succeed they will sing songs in your honor in this town forever.");
rule LostItems (577,50) goto BreadEnd
rule talkedtonpc(10) goto poison2
}
State poison2
{
desc "Slay Vodian"
action RemoveItems (577,50);
action addnpctext(10,"Good Luck!!!");
rule talkedtonpc(10) goto kill.easy
}
State kill.easy
{
action SetCoord (1150,17,17);
rule entercoord(1150,16,17) goto kill2
rule entercoord(1150,18,17) goto kill2
rule entercoord(1150,17,16) goto kill2
rule entercoord(1150,17,18) goto kill2
}
State kill2
{
desc "Kill Vodian"
rule leavemap(1150) goto rst
rule KilledNpcs(407,1) goto rwd.easy
}
state rwd.easy
{
action SetCoord (1142,42,3);
action setstate(rwd.easy);
}
State rwd.easy
{
desc "Talk to Otto"
action ShowHint("Good");
action AddNpcText(10, "I can't believe you managed to kill Vodian. Now we can live free from fear. Thanks for helping us. Happy Journey!");
rule talkedtonpc(10) goto payout2
}
state payout2
{
action GiveExp(8000);
action ShowHint("You have Rewarded 8000 EXP");
action playsound(78);
action givekarma(25);
action reset();
}