Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main
- {
- questname "Ayla Witch Quest"
- version 1.0
- }
- state Begin
- {
- desc "Kill 20 rats"
- action AddNpcChat ( 2 , "Hellow stranger");
- action AddNpcText ( 2 , "Oh my. I have yet to finish my magic spell, my Witch tutor will be mad");
- action AddNpcText ( 2 , "Could you do me a favor and kill 20 rats so I can cast the spell?");
- rule KilledNpcs ( 2, 20) goto Alya
- }
- state Ayla
- {
- desc "Talk to Ayla"
- action ShowHint ("You should talk to Ayla again!");
- action AddNpcChat ( 2 , "Hellow stranger");
- action AddNpcText ( 2 , "Thank you! You have killed 20 rats for me, my tutor will be so pleased");
- action AddNpcText ( 2 , "Could you also kill 20 sheep for me and return when you are done?");
- rule TalkedToNpc ( 2 ) goto Sheep
- }
- state Sheep
- {
- desc "Kill 20 sheep"
- action AddNpcText ( 2 , "Could you also kill 20 sheep for me and return when you are done?");
- rule KilledNpcs ( 170, 20) goto AylaAgain
- }
- state AylaAgain
- {
- desc "Talk to Ayla"
- action ShowHint ("You should talk to Ayla again!");
- action AddNpcChat ( 2 , "Hellow stranger");
- action AddNpcText ( 2 , "Thank you so much, however there is one last thing i need, I would need a Terror potion to finish it but make sure you don't give me a love potion!");
- rule GotItems (296,1) goto GiveTeror
- rule GotItems (292,1) goto GiveLove
- }
- state GiveTeror
- {
- desc "Give a teror potion"
- action AddNpcText ( 2 , "Do you happen to have a terror potion for me?");
- action AddNpcInput ( 2 , 1 , "Here, take it ");
- action AddNpcInput ( 2 , 2 , "No, its mine" );
- rule LostItems (296,1) goto Talk2
- rule InputNpc ( 1 ) goto TerorEnd
- }
- state GiveLove
- {
- desc "Give a love potion"
- action AddNpcText ( 2 , "Do you happen to have a love potion for me?");
- action AddNpcInput ( 2 , 1 , "Here, take it" );
- action AddNpcInput ( 2 , 2 , "No, its mine" );
- rule LostItems (292,1) goto Talk2
- rule InputNpc ( 1 ) goto LoveEnd
- }
- state TerrorEnd
- {
- desc "Talk to Ayla for a reward"
- action RemoveItem (296);
- action PlaySound (68);
- action AddNpcText ( 2 , "You did it, thank you now i can finish my magic spell. Here is your reward");
- rule TalkedToNpc (2) goto Reward
- }
- state Reward
- {
- action ShowHint ("You gained 500 EXP!");
- action PlaySound (17);
- action GiveExp (500);
- action GiveKarma (100);
- action Reset ();
- }
- state LoveEnd
- {
- desc "Talk to Ayla for a reward"
- action RemoveItem (292);
- action ShowHint ("Ayla looks very angry!");
- action AddNpcText ( 2 , "Wait! you ruined my magic spell, for this you shall be cursed for the rest of your life");
- rule TalkedToNpc ( 2 ) goto Reward2
- }
- state Reward2
- {
- action ShowHint ("You gained 300 EXP!");
- action PlaySound (17);
- action GiveExp (300);
- action RemoveKarma (100);
- action Reset();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement