Advertisement
Guest User

Untitled

a guest
Oct 17th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. Main
  2. {
  3. questname "Fishing Quest"
  4. version 1.0
  5. }
  6. state Begin
  7. {
  8. desc "Talk to Dan"
  9. action AddNpcText(7, "Hello,[c-name] i am here to sell you baits. Would you like to buy some?");
  10.  
  11. action AddNpcInput(7,1,"Sure");
  12. action AddNpcInput(7,2,"No thanks");
  13. action AddNpcInput(7,3,"Milestone");
  14.  
  15. rule InputNpc(1) goto Bait
  16. rule InputNpc(2) goto Reset
  17. rule InputNpc(3) goto Milestone
  18. }
  19. state Bait
  20. {
  21. desc "Buying Bait"
  22. action AddNpcText(7, "How many baits would you like to buy?");
  23.  
  24. action AddNpcInput(7,1,"Sell me 500");
  25. action AddNpcInput(7,2,"Sell me 1k");
  26. action AddNpcInput(7,3,"Sell me 5k");
  27. action AddNpcInput(7,4,"Sell me 10k");
  28.  
  29. rule InputNpc(1) goto Fivehun
  30. rule InputNpc(2) goto Onek
  31. rule InputNpc(3) goto Fivek
  32. rule InputNpc(4) goto Tenk
  33. }
  34. state Fivehun
  35. {
  36. action AddNpcText(7, "Please get 500 golds to purchase.");
  37.  
  38. rule GotItems(1,500) goto GiveFive
  39. }
  40. state GiveFive
  41. {
  42. action RemoveItem(1,500);
  43. action GiveItem(680,500);
  44. action ShowHint("You have bought 500 Fishing Baits.");
  45. action Reset();
  46. }
  47. state Onek
  48. {
  49. action AddNpcText(7, "Please get 1000 golds to purchase.");
  50.  
  51. rule GotItems(1,1000) goto GiveOnek
  52. }
  53. state GiveOnek
  54. {
  55. action RemoveItem(1,1000);
  56. action GiveItem(680,1000);
  57. action ShowHint("You have bought 1000 Fishing Baits.");
  58. action Reset();
  59. }
  60. state Fivek
  61. {
  62. action AddNpcText(7, "Please get 5000 golds to purchase.");
  63.  
  64. rule GotItems(1,5000) goto GiveFivek
  65. }
  66. state GiveFivek
  67. {
  68. action RemoveItem(1,5000);
  69. action GiveItem(680,5000);
  70. action ShowHint("You have bought 5000 Fishing Baits.");
  71. action Reset();
  72. }
  73. state Tenk
  74. {
  75. action AddNpcText(7, "Please get 10000 golds to purchase.");
  76.  
  77. rule GotItems(1,10000) goto GiveTenk
  78. }
  79. state GiveTenk
  80. {
  81. action RemoveItem(1,10000);
  82. action GiveItem(680,10000);
  83. action ShowHint("You have bought 10000 Fishing Baits.");
  84. action Reset();
  85. }
  86. state Reset
  87. {
  88. action Reset();
  89. }
  90. State Milestone
  91. {
  92. desc "Talk to Dan the fisherman"
  93. action AddNpcText(7, "Hello, if you get level 100 in fishing, then you will get a costume having 5k hp");
  94. action AddNpcInput(7, 1, "oh i see");
  95.  
  96. rule InputNpc(1) goto Reset
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement