Advertisement
Guest User

Untitled

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