Main
{
questname "Pig Slayer"
version 1.0
}
state Begin
{
action AddNpcText(1, "Hey, I have my hands tied at the moment and it is almost dinner time! Do you think you can go collect 2 piggys from my farm outside for my wife and I?");
action AddNpcInput(1,1,"Sure");
action AddNpcInput(1,2,"No");
rule InputNpc(1) goto CollectPiggy
rule InputNpc(2) goto Reset
}
state CollectPiggy
{
desc "Collect 2 Piggys"
rule GotItems(483,2) goto Reward
}
state Reward
{
action AddNpcText(1, "Thank you! Now my wife and I can eat on time. Here is your reward.");
action GiveExp(1000);
action GiveItem(1,1500);
action RemoveItem(483,2);
rule TalkedToNpc(1) goto End
}
state Reset
{
action AddNpcText(1, "Come back when you are ready.");
action Reset();
}
state End
{
action AddNpcText(1, "Thanks a lot!");
action End();
}