so i am using vodkaEO but in the middle when i kill the 10th of the 10 goats my server crashes and i get a rollback can sumeone help mee?
Main
{
questname "Hunter Quest"
version 1.0
}
State Begin
{
desc "Goat hunter"
action AddNpcText( 5 , "Hey there do you have the courage to eleminate those damn goats?" );
action AddNpcInput( 5 , 1 , "Ya i have");
action AddNpcInput( 5 , 2 , "No i dont");
rule InputNpc( 1 ) goto Goat
rule InputNpc( 2 ) goto Loser
}
State Goat
{
desc "Hunter menu"
action ShowHint("Hunter menu has opened");
action AddNpcText( 5 , "Which challenge do you want?" );
action AddNpcInput( 5 , 1 , "Kill 10 goats");
action AddNpcInput( 5 , 2 , "Kill 50 goats");
action AddNpcInput( 5 , 3 , "Kill 75 goats");
action AddNpcInput( 5 , 4 , "Kill 150 goats");
rule InputNpc( 1 ) goto Goat1
rule InputNpc( 2 ) goto Goat2
rule InputNpc( 3 ) goto Goat3
rule InputNpc( 4 ) goto Goat4
}
state Goat1
{
desc "Kill goats"
action AddNpcText( 5 , "Ok thanks! Go kill 10 goats for me and return back when you killed them all ok?" );
rule KilledNpcs(7, 10) goto Hunter1
}
state Goat2
{
desc "Kill goats"
action AddNpcText( 5 , "Ok thanks! Go kill 50 goats for me and return back when you killed them all ok?" );
rule KilledNpcs(7, 50) goto Hunter2
}
state Goat3
{
desc "Kill goats"
action AddNpcText( 5 , "Ok thanks! Go kill 75 goats for me and return back when you killed them all ok?" );
rule KilledNpcs(7, 75) goto Hunter3
}
state Goat4
{
desc "Kill goats"
action AddNpcText( 5 , "Ok thanks! Go kill 150 goats for me and return back when you killed them all ok?" );
rule KilledNpcs(7, 150) goto Hunter4
}
State Hunter1
{
desc "Hunt reward"
action AddNpcText( 5 , "Good job! you killed 10 goats. you can always come back and do more hunt quests, For now take your reward and go!" );
action GiveExp(500);
action GiveItem(1, 300);
action Reset();
}
State Hunter2
{
desc "Hunt reward"
action AddNpcText( 5 , "Good job! you killed 50 goats. you can always come back and do more hunt quests, For now take your reward and go!" );
action GiveExp(250);
action GiveItem(21, 1);
action GiveItem(1, 5000);
action Reset();
}
State Hunter3
{
desc "Hunt reward"
action AddNpcText( 5 , "Good job! you killed 75 goats. you can always come back and do more hunt quests, For now take your reward and go!" );
action GiveExp(10000);
action GiveItem(1, 10000);
action Reset();
}
State Hunter4
{
desc "Hunt reward"
action AddNpcText( 5 , "Good job! you killed 150 goats. you can always come back and do more hunt quests, For now take your reward and go!" );
action GiveExp(25000);
action GiveItem(1, 25000);
action GiveItem(22, 1);
action Reset();
}
State Loser
{
action AddNpcText( 5 , "Aww.. You dont want to? I hope you want to help me later with killing those annoying goats." );
action Reset();
}