//Original Quest engine and original quest - Vult-r //Ayla quest re-done - Meone Main { questname "Ayla's Witch Quest" version 1.0 } State Begin { desc "Talk to Ayla" action AddNpcText(2, "Oh my i havnt finished my magic spell my witch tutor will be mad"); rule TalkedToNpc(2) goto KillRats } State KillRats { desc "Kill 20 Rats" action AddNpcText(2, "Could you do me a favor and kill 20 rats so i can cast a spell"); rule KilledNpcs(2, 20) goto TalkWithAyla } State TalkWithAyla { desc "Kill 20 Sheep" action ShowHint("Go see Ayla"); action AddNpcText(2, "Just one more thing could you please kill 20 sheep for me?"); rule TalkedToNpc(2) goto KillSheep } State KillSheep { desc "Kill 20 Sheep" action AddNpcText(2, "Kill 20 sheep"); rule KilledNpcs(170, 20) goto GetTerrorPotion } State GetTerrorPotion { desc "Find one terror potion" action ShowHint("Go seel Ayla"); action AddNpcText(2, "Thank you so much however there is one last thing i need"); action AddNpcText(2, "I would need a terror potion to finish it"); action AddNpcText(2, "but make sure you dont give me a love potion!"); rule GotItems(296, 1) goto GivePotion } State GivePotion { desc "Give 1 Terror Potion" action AddNpcText(2, "Thank you so much now i can finish my spell"); action AddNpcText(2, "Will you give me the Terror Potion?"); action AddNpcInput(2, 2, "Ok, here you are"); action AddNpcInput(2, 1, "No, it is mine"); rule InputNpc(2, 2) goto Reward rule InputNpc(2, 1) goto Lose } State Reward { action RemoveItem(296,1); action GiveExp(500); action GiveItem(1, 500); action ShowHint("You gained 500 exp"); action ShowHint("You gained 500 gold"); action Reset(); } State Lose { action ShowHint("You are a coward"); action Reset(); }