Main
{
questname "Stranded"
version 1.0
}
State Begin
{
desc "Talk to the lost pirate"
action AddNpcText( 176, "Hello stranger, your finally awake. I got lost and have been living here for years" );
rule TalkedToNpc(176) goto State10
}
State State10
{
desc "talk to the lost pirate"
action AddNpcText( 176, "Where did you come from?" );
action AddNpcInput(176 , 1, "I dont remember anything" );
rule InputNpc(1) goto State1
}
State State1
{
desc "Collect the items from the chest"
action AddNpcText( 176, "Well, same thing happened to me. Maybe we can help eachother get off this island" );
action AddNpcText( 176, "Firstly, go to my chest over there, I have some spare gear you might find useful" );
rule GotItems(389,1) goto State2
}
State State2
{
desc "Achieve level 3"
action AddNpcText( 176, "Great. Now I want you to go gain some fighting experience" );
rule StatIs("level", 3) goto State3
}
State State3
{
desc "Talk to the lost pirate"
action AddNpcText( 176,"Wow! Your a better fighter than me" );
action AddNpcText( 176,"Hmm.. Lets look for a way off this island" );
rule TalkedToNpc(176) goto State4
}
State State4
{
desc "Look for a way off the island"
action AddNpcText( 176 ,"Have you found a way off the island yet?" );
rule EnterCoord(1, 10, 44) goto State5
}
State State5
{
desc "Talk to the lost pirate"
action ShowHint("You have found a small boat, go talk to the pirate");
action AddNpcText( 176, "You found a boat? What..." );
action AddNpcText( 176, "If its that small, I think you should go, your the one who found it. Bye!" );
rule TalkedToNpc( 176) goto State6
}
State State6
{
desc "Board the boat and leave"
action AddNpcText( 176, "Better go get on that boat." );
rule EnterCoord(1, 10, 44) goto State7
}
State State7
{
action SetCoord(1, 47, 25);
action ShowHint("You escaped the island. Now you must try to find out what happened and who you are");
action End();
}