Advertisement
Guest User

Untitled

a guest
Oct 17th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.34 KB | None | 0 0
  1. Main
  2. {
  3. questname "PK Quest 1"
  4. version 1.0
  5. }
  6. State Begin
  7. {
  8. desc "Talk to PK Master"
  9.  
  10. action AddNpcText(37, "Hello [c-name], i am the PK master. I can give you the better gears which can be used in PK.");
  11. action AddNpcText(37, "Would you like to get it?");
  12. action AddNpcInput(37, 1, "Ocfourse");
  13. action AddNpcInput(37, 2, "No, Thanks");
  14. rule InputNpc(1) goto Sure
  15. rule InputNpc(2) goto Reset
  16. }
  17. State Reset
  18. {
  19. action Reset();
  20. }
  21. State Sure
  22. {
  23. desc "Selection"
  24.  
  25. action AddNpcText(37, "Okay, Choose your gender");
  26. action AddNpcInput(37, 1, "Male");
  27. action AddNpcInput(37, 2, "Female");
  28. rule InputNpc(1) goto Check
  29. rule InputNpc(2) goto Check
  30. }
  31. State Check
  32. {
  33. desc "Checking Gender"
  34.  
  35. rule IsGender(1) goto Male
  36. rule IsGender(0) goto Female
  37. }
  38. State Male
  39. {
  40. desc "Talk to PK Master"
  41.  
  42. action AddNpcText(37, "You have Selected Priest Robes Quest, To get this armor you will have to kill 200 Humans.");
  43. action AddNpcText(37, "Would you like to Proceed?.");
  44. action AddNpcInput(37, 1, "Yes");
  45. action AddNpcInput(37, 2, "No");
  46. rule InputNpc(1) goto Priest
  47. rule InputNpc(2) goto Reset
  48. }
  49. State Priest
  50. {
  51. desc "Kill 200 Humans"
  52.  
  53. action AddNpcText(37, "Kill 200 Human Beings to receive Priest Robes");
  54.  
  55. rule KilledPlayers(200) goto Killed2k
  56. }
  57. State Killed2k
  58. {
  59. desc "Talk to PK Master"
  60. action SetCoord(188,8,15);
  61. action AddNpcText(37, "Congratulations!!! You have Killed 200 Players, Here's Your Reward.");
  62. action AddNpcText(37, "Warning!! Do not try to use this armor except in PK. You can Leave pk by using cure potion.");
  63. rule TalkedToNpc(37) goto GivePriest
  64. }
  65. State GivePriest
  66. {
  67. action GiveItem(139,1);
  68. action GiveItem(13,1);
  69. rule GotItems(13,1) goto WearPriest
  70. }
  71. State WearPriest
  72. {
  73. desc "Talk to PK Master"
  74. action AddNpcText(37, "Wear the Armor");
  75. rule IsWearing(139) goto WorePriest
  76. rule LeaveMap(188) goto WarpBack
  77. }
  78. State WarpBack
  79. {
  80. action SetCoord(188,10,7);
  81. rule EnterMap(188) goto WearPriest
  82. }
  83. State WorePriest
  84. {
  85. desc "Use Cure Potion"
  86. action AddNpcText(37, "Use Cure Potion to leave");
  87. action SetCoord(245,100,70);
  88.  
  89. rule LeaveMap(245) goto Leave
  90. rule UsedItem(13, 1) goto Aeven
  91. }
  92. State Leave
  93. {
  94. desc "Use Cure Potion to Leave"
  95. action AddNpcText(37, "Use Cure Potion");
  96. action SetCoord(245,101,84);
  97. rule LeaveMap(245) goto WorePriest
  98. rule UsedItem(13, 1) goto Aeven
  99. }
  100. State Aeven
  101. {
  102. desc "Talk to PK Master"
  103. action AddNpcText(37, "Welcome Back");
  104. action SetCoord(5,45,42);
  105. rule TalkedToNpc(37) goto GivePriest
  106. }
  107.  
  108.  
  109. State Female
  110. {
  111. desc "Talk to PK Master"
  112.  
  113. action AddNpcText(37, "You have Selected Holy Robes Quest, To get this armor you will have to kill 200 Humans.");
  114. action AddNpcText(37, "Would you like to Proceed?.");
  115. action AddNpcInput(37, 1, "Yes");
  116. action AddNpcInput(37, 2, "No");
  117. rule InputNpc(1) goto Holly
  118. rule InputNpc(2) goto Reset
  119. }
  120. State Holly
  121. {
  122. desc "Kill 200 Humans"
  123.  
  124. action AddNpcText(37, "Kill 200 Human Beings to receive Holy Robes");
  125.  
  126. rule KilledPlayers(200) goto KilledF2k
  127. }
  128. State KilledF2k
  129. {
  130. desc "Talk to PK Master"
  131. action SetCoord(188,8,15);
  132. action AddNpcText(37, "Congratulations!!! You have Killed 200 Players, Here's Your Reward.");
  133. action AddNpcText(37, "Warning!! Do not try to use this armor except in PK. You can Leave pk by using cure potion.");
  134. rule TalkedToNpc(37) goto GiveHolly
  135. }
  136. State GiveHolly
  137. {
  138. action GiveItem(149,1);
  139. action GiveItem(13,1);
  140. rule GotItems(13,1) goto WearHoly
  141. }
  142. State WearHoly
  143. {
  144. desc "Talk to PK Master"
  145. action AddNpcText(37, "Wear the Armor");
  146. rule IsWearing(149) goto WoreHoly
  147. rule LeaveMap(188) goto WarpFBack
  148. }
  149. State WarpFBack
  150. {
  151. action SetCoord(188,10,7);
  152. rule EnterMap(188) goto WearHoly
  153. }
  154. State WoreHoly
  155. {
  156. desc "Use Cure Potion"
  157. action AddNpcText(37, "Use Cure Potion to leave");
  158. action SetCoord(245,100,70);
  159.  
  160. rule LeaveMap(245) goto LeaveF
  161. rule UsedItem(13, 1) goto AevenF
  162. }
  163. State LeaveF
  164. {
  165. desc "Use Cure Potion to Leave"
  166. action AddNpcText(37, "Use Cure Potion");
  167. action SetCoord(245,101,84);
  168. rule LeaveMap(245) goto WoreHoly
  169. rule UsedItem(13, 1) goto AevenF
  170. }
  171. State AevenF
  172. {
  173. desc "Talk to PK Master"
  174. action AddNpcText(37, "Welcome Back");
  175. action SetCoord(5,45,42);
  176. rule TalkedToNpc(37) goto GiveHolly
  177. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement