Main
{
questname "Player vs Player Coordinator"
version 1.0
}
State Begin
{
desc "Speak with a coordinator"
action AddNpcChat(1, "Anyone need to earn some cash?");
action AddNpcText(1, "Hello. I am a Player vs Player Coordinator here in the Guild Section of Aeven.");
action AddNpcText(1, "I am willing to pay anyone who gets kills in the Player vs Player Area.");
action AddNpcText(1, "Are you interested in Player vs Player?");
action AddNpcInput(1, 1, "Yes, I am.");
action AddNpcINput(1, 2, "No, I am not.);
rule InputNpc( 1 ) goto Approve
rule InputNpc( 2 ) goto Deny
}
State Approve
{
desc "Select the number of kills to do."
action AddNpcChat(1, "Great. Let me assist you.");
action AddNpcText(1, "Please select a ratio.");
action AddNpcInput(1, 1, "Pay me 50 gold for 5 kills.");
action AddNpcInput(1, 2, "Pay me 100 gold for 10 kills.");
action AddNpcInput(1, 3, "Pay me 150 gold for 15 kills.");
action AddNpcInput(1, 4, "Pay me 200 gold for 20 kills.");
rule InputNpc( 1 ) goto Five
rule InputNpc( 2 ) goto Ten
rule InputNpc( 3 ) goto Fifteen
rule InputNpc( 4 ) goto Twenty
}
State Five
{
desc "Get 5 Kills in Player vs Player"
action AddNpcText(1, "Your objective is to kill 5 players. I will pay you 50 gold.");
rule KilledPlayers( 5 ) goto FiveComplete
}
State Ten
{
desc "Get 10 Kills in Player vs Player"
action AddNpcText(1, "Your objective is to kill 10 players. I will pay you 100 gold.");
rule KilledPlayers( 10 ) goto TenComplete
}
State Fifteen
{
desc "Get 15 Kills in Player vs Player"
action AddNpcText(1, "Your objective is to kill 15 players. I will pay you 150 gold.");
rule KilledPlayers( 15 ) goto FifteenComplete
}
State Twenty
{
desc "Get 20 Kills in Player vs Player"
action AddNpcText(1, "Your objective is to kill 20 players. I will pay you 200 gold.");
rule KilledPlayers( 20 ) goto TwentyComplete
}
State FiveComplete
{
desc "Return to a Coordinator"
action AddNpcChat(1, "Thanks for helping me!");
action AddNpcText(1, "Thank you for completing your objective. Here is your gold.");
action GiveItem( 1, 50 );
action Reset();
}
State TenComplete
{
desc "Return to a Coordinator"
action AddNpcChat(1, "Thanks for helping me!");
action AddNpcText(1, "Thank you for completing your objective. Here is your gold.");
action GiveItem( 1, 100 );
action Reset();
}
State FifteenComplete
{
desc "Return to a Coordinator"
action AddNpcChat(1, "Thanks for helping me!");
action AddNpcText(1, "Thank you for completing your objective. Here is your gold.");
action GiveItem( 1, 150 );
action Reset();
}
State TwentyComplete
{
desc "Return to a Coordinator"
action AddNpcChat(1, "Thanks for helping me!");
action AddNpcText(1, "Thank you for completing your objective. Here is your gold.");
action GiveItem( 1, 200 );
action Reset();
}
State Deny
{
action AddNpcChat(1, "Nevermind then.");
action AddNpcText(1, "If you do not wish to gain some gold, do not speak to me. I am very busy.");
action Reset();
}