Advertisement
Guest User

Untitled

a guest
Apr 19th, 2011
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. Main
  2. {
  3. questname "Ayla Witch Quest"
  4. version 1.0
  5. }
  6. state Begin
  7. {
  8. desc "Kill 20 rats"
  9. action AddNpcChat ( 2 , "Hellow stranger");
  10. action AddNpcText ( 2 , "Oh my. I have yet to finish my magic spell, my Witch tutor will be mad");
  11. action AddNpcText ( 2 , "Could you do me a favor and kill 20 rats so I can cast the spell?");
  12. rule KilledNpcs ( 2, 20) goto Alya
  13. }
  14. state Ayla
  15. {
  16. desc "Talk to Ayla"
  17. action ShowHint ("You should talk to Ayla again!");
  18. action AddNpcChat ( 2 , "Hellow stranger");
  19. action AddNpcText ( 2 , "Thank you! You have killed 20 rats for me, my tutor will be so pleased");
  20. action AddNpcText ( 2 , "Could you also kill 20 sheep for me and return when you are done?");
  21. rule TalkedToNpc ( 2 ) goto Sheep
  22. }
  23. state Sheep
  24. {
  25. desc "Kill 20 sheep"
  26. action AddNpcText ( 2 , "Could you also kill 20 sheep for me and return when you are done?");
  27. rule KilledNpcs ( 170, 20) goto AylaAgain
  28. }
  29. state AylaAgain
  30. {
  31. desc "Talk to Ayla"
  32. action ShowHint ("You should talk to Ayla again!");
  33. action AddNpcChat ( 2 , "Hellow stranger");
  34. 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!");
  35. rule GotItems (296,1) goto GiveTeror
  36. rule GotItems (292,1) goto GiveLove
  37.  
  38. }
  39. state GiveTeror
  40. {
  41. desc "Give a teror potion"
  42. action AddNpcText ( 2 , "Do you happen to have a terror potion for me?");
  43. action AddNpcInput ( 2 , 1 , "Here, take it ");
  44. action AddNpcInput ( 2 , 2 , "No, its mine" );
  45. rule LostItems (296,1) goto Talk2
  46. rule InputNpc ( 1 ) goto TerorEnd
  47. }
  48. state GiveLove
  49. {
  50. desc "Give a love potion"
  51. action AddNpcText ( 2 , "Do you happen to have a love potion for me?");
  52. action AddNpcInput ( 2 , 1 , "Here, take it" );
  53. action AddNpcInput ( 2 , 2 , "No, its mine" );
  54. rule LostItems (292,1) goto Talk2
  55. rule InputNpc ( 1 ) goto LoveEnd
  56. }
  57. state TerrorEnd
  58. {
  59. desc "Talk to Ayla for a reward"
  60. action RemoveItem (296);
  61. action PlaySound (68);
  62. action AddNpcText ( 2 , "You did it, thank you now i can finish my magic spell. Here is your reward");
  63. rule TalkedToNpc (2) goto Reward
  64. }
  65. state Reward
  66. {
  67. action ShowHint ("You gained 500 EXP!");
  68. action PlaySound (17);
  69. action GiveExp (500);
  70. action GiveKarma (100);
  71. action Reset ();
  72. }
  73. state LoveEnd
  74. {
  75. desc "Talk to Ayla for a reward"
  76. action RemoveItem (292);
  77. action ShowHint ("Ayla looks very angry!");
  78. action AddNpcText ( 2 , "Wait! you ruined my magic spell, for this you shall be cursed for the rest of your life");
  79. rule TalkedToNpc ( 2 ) goto Reward2
  80. }
  81. state Reward2
  82. {
  83. action ShowHint ("You gained 300 EXP!");
  84. action PlaySound (17);
  85. action GiveExp (300);
  86. action RemoveKarma (100);
  87. action Reset();
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement