Advertisement
Guest User

Untitled

a guest
Apr 19th, 2011
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. main
  2. {
  3. questname "PeriPeri quest"
  4. version 1.0
  5. }
  6. state begin
  7. {
  8. desc "PeriPeri quest"
  9.  
  10. action AddNpcText(23, "Oh my,since those angry moles appeared our harvest is wasted..");
  11. action AddNpcText(23, "would you be so kind as to stop those moles for me?");
  12.  
  13. action AddNpcInput(23, 1, "not interested");
  14. action AddNpcInput(23, 2, "I will help you");
  15.  
  16. rule InputNpc( 1 ) goto Lose
  17. rule InputNpc( 2 ) goto TalkWithPeri
  18. }
  19. state TalkWithPeri
  20. {
  21. desc "PeriPeri quest"
  22. action AddNpcText(23, "Please kill 50 moles for me and I will reward you with experiance!");
  23.  
  24. action AddNpcInput(23, 1, "Sorry i give up");
  25. action AddNpcInput(23, 2, "I am working on it!");
  26.  
  27. rule InputNpc( 1 ) goto Lose
  28. rule InputNpc( 2 ) goto KillMoles
  29. }
  30. state KillMoles
  31. {
  32. desc "PeriPeri quest"
  33.  
  34. rule KilledNpcs(241, 50) goto TalkWithPeri1
  35. }
  36. state TalkWithPeri1
  37. {
  38. action AddNpcText(23, "Thank you so much,I can see you worked hard. Please accept my humble reward.");
  39.  
  40. rule TalkedWithNpc(23) goto Reward
  41. }
  42. state Reward
  43. {
  44. action GiveExp(5000);
  45. action Reset();
  46. }
  47. state Lose
  48. {
  49.  
  50. action AddNpcText(23, "I am ashamed of you");
  51. action Reset();
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement