Guest User

Untitled

a guest
Aug 2nd, 2010
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. main
  2. {
  3. questname "Getting a fishingpole!"
  4. version 1.0
  5. }
  6. State Begin
  7. {
  8. desc "Talk to The Fisher Bob!"
  9. action AddNpcText(1, "Hello! Can you do favor? I give you my old fishingpole if you complete my task!");
  10.  
  11. action AddNpcInput(1, 1, "I will do it!");
  12. action AddNpcInput(1, 2, "No, I am not doing it!");
  13.  
  14. rule InputNpc(1) goto GetWormsFromJerald
  15. }
  16. State GetWormsFromJerald
  17. {
  18. desc "Go get some worms from Jerald!"
  19. action AddNpcText(1, "I am out of baits, go get some worms to me from Jerald, will ya? He sells some baits! or his son, Jr. Jerald.");
  20. action AddNpcText(2, "Hello, what you need?");
  21. action AddNpcInput(2, 1, "I need some baits!");
  22. action AddNpcInput(2, 2, "Nothing, bye!");
  23.  
  24. rule InputNpc(1) goto GetWorms
  25. }
  26. State GetWorms
  27. {
  28. desc "Get 10 Worms!"
  29. action AddNpcText(2, "I do not have any at the moment, but I know where you can get some!");
  30. action AddNpcText(2, "There is house which is occupied by worms, kill them and you get some baits!" );
  31.  
  32. rule GotItems(3,10) goto GiveWorms
  33. }
  34. State GiveWorms
  35. {
  36. desc "Give 10 baits to Fisher Bob!"
  37. action AddNpcText(1, "Hello, matey, did you got some baits for me?");
  38. action AddNpcText(1, "Oh you have some! Can you give me those!?");
  39.  
  40. action AddNpcInput(1, 2, "Okay, here you go!");
  41. action AddNpcInput(1, 1, "I won't give these, sorry!");
  42.  
  43. rule InputNpc(2) goto Thanks
  44. rule LostItems(3,10) goto GetWorms
  45. }
  46. State Thanks
  47. {
  48. desc "Get fishingpole from Fishing Bob!"
  49. action RemoveItem(3,10);
  50. action AddNpcText(1, "Hey, thanks, Now I will give you my old fishing pole, its my lucky fishing pole, so use it carefully, maybe you will get that luck what I had. Do not lose it, I do not have another one if you lose that!");
  51.  
  52. rule TalkedToNpc(1) goto Reward
  53. }
  54. State Reward
  55. {
  56. action GiveExp(1000);
  57. action GiveItem(22, 1);
  58. action End();
  59. }
Advertisement
Add Comment
Please, Sign In to add comment