Advertisement
Guest User

Hero's call (bricked)

a guest
Apr 30th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.18 KB | None | 0 0
  1. Main
  2. {
  3. questname "Heroes Call (Group)"
  4. version 1.0
  5. }
  6. state Begin
  7. {
  8. action AddNpcChat(62, "Only a Group Leader over level 100 can start the Heroes Call War Games!");
  9. if IsLeader() goto CheckLeader1
  10. elseif InParty() goto GetLeader1
  11. else goto GetParty1
  12. }
  13. state GetLeader1
  14. {
  15. action AddNpcChat(62, "You will need to get your Group Leader to talk to me [name].");
  16. action Reset();
  17. }
  18. state GetParty1
  19. {
  20. action AddNpcChat(62, "You need to be in a group for the Heroes Call War Games [name], maybe create one and lead?");
  21. action Reset();
  22. }
  23. state GetLevel1
  24. {
  25. action AddNpcChat(62, "The Group Leader becomes your teams General and must be over level 100, [name].");
  26. action Reset();
  27. }
  28. state CheckLeader1
  29. {
  30. if IsLevel(100) goto Begin1
  31. else goto GetLevel1
  32. }
  33. State NoFunds1
  34. {
  35. action AddNpcChat(62, "Insufficient funds, [name].");
  36. action Reset();
  37. }
  38. state Begin1
  39. {
  40. desc "Heroes Call (Group)"
  41. action AddNpcText(62, "Welcome to the Heroes Call War Games [name]!");
  42. action AddNpcText(62, "When you and your group are ready, I can start the Heroes Call!");
  43. action AddNpcText(62, "Each attempt will cost 50 Gold Coin, though the rewards you can acquire inside are considerable!");
  44. action AddNpcText(62, "If your fail and are unable to complete it, you must speak to the Reset NPC at the entrance to start it again.");
  45. action AddNpcText(62, "It is important that you brief your group on what to do, you will be your teams General!");
  46. action AddNpcText(62, "Once we begin, your whole team will be summoned to the battleground, to win, you must defeat 5 of the opposing teams Captains, then defeat the opposing teams General.");
  47. action AddNpcText(62, "Your team will have to fight its way through the opposing teams forces to complete the objectives, working as a team is a good idea!");
  48. action AddNpcText(62, "If you are new to the Heroes Call War Games, take this time now to explain the rules to your team members...");
  49.  
  50. action AddNpcInput(62,1,"We are ready.");
  51. action AddNpcInput(62,2,"We are not ready.");
  52.  
  53. rule InputNpc(1) goto ReadyCheck
  54. rule InputNpc(2) goto Reset
  55. }
  56. state Reset
  57. {
  58. action Reset();
  59. }
  60. state ReadyCheck
  61. {
  62. desc "HC - Kill Captains"
  63. action AddNpcText(62, "Everything is ready to go [name]! You will now be charged 50 Gold coin and your team will be mobilized for battle.");
  64. action AddNpcInput(62,1,"Begin.");
  65. rule InputNpc(1) goto PayFee1
  66. }
  67. State PayFee1
  68. {
  69. if GotItems(443, 50) goto PayFee2
  70. else SetState("NoFunds1");
  71. }
  72. State PayFee2
  73. {
  74. action RemoveItem(443, 50);
  75. action PlaySound(5);
  76. action ShowHint("Heroes Call War Games has begun!");
  77. action SetState("KillCaptains1");
  78. }
  79. state KillCaptains1
  80. {
  81. action SetCoord(48,17,79);
  82. action SpawnNpc(294,2);
  83. action SetCoord(48,13,73);
  84. action SpawnNpc(295,5);
  85. action SetCoord(48,28,86);
  86. action SpawnNpc(295,5);
  87. action SetState("KillCaptains2");
  88. }
  89. state KillCaptains2
  90. {
  91. action SetCoord(48,79,18);
  92. action SpawnNpc(294,2);
  93. action SetCoord(48,69,12);
  94. action SpawnNpc(295,5);
  95. action SetCoord(48,87,28);
  96. action SpawnNpc(295,5);
  97. action SetState("KillCaptains3");
  98. }
  99. state KillCaptains3
  100. {
  101. action SetCoord(48,71,73);
  102. action SpawnNpc(294,2);
  103. action SetCoord(48,63,78);
  104. action SpawnNpc(295,3);
  105. action SetCoord(48,77,63);
  106. action SpawnNpc(295,3);
  107. action SetState("KillCaptains4");
  108. }
  109. state KillCaptains4
  110. {
  111. action SetCoord(48,42,42);
  112. action SpawnNpc(295,5);
  113. action SetCoord(48,32,45);
  114. action SpawnNpc(293,5);
  115. action SetCoord(48,47,32);
  116. action SpawnNpc(293,5);
  117. action SetState("SummonTeam1");
  118. }
  119. state SummonTeam1
  120. {
  121. action SetCoord(48,15,15);
  122. action SetState("SummonTeam2");
  123. }
  124. state SummonTeam2
  125. {
  126. action PartyWarp(48,15,15);
  127. action SetState("KillCaptains5");
  128. }
  129. state KillCaptains5
  130. {
  131. desc "HC - Kill Captains"
  132. action ShowHint("Heroes Call War Game has begun!");
  133. rule KilledNpcs(294,5) goto SummonTeam3
  134. }
  135. state SummonTeam3
  136. {
  137. action SetCoord(48,15,15);
  138. action SetState("SummonTeam4");
  139. }
  140. state SummonTeam4
  141. {
  142. action PartyWarp(48,15,15);
  143. action SetState("KillGeneral1");
  144. }
  145. state KillGeneral1
  146. {
  147. action SetCoord(48,44,44);
  148. action SpawnNpc(296,1);
  149. action SetCoord(48,15,15);
  150. action SetState("KillGeneral2");
  151. }
  152. state KillGeneral2
  153. {
  154. desc "HC - Kill General"
  155. action ShowHint("The enemy General has come on to the battlefield!");
  156. action ShowHint("Kill the enemy General!");
  157. rule KilledNpcs(296,1) goto Win1
  158. }
  159. state Win1
  160. {
  161. action ShowHint("Your team has defeated the opposing team!");
  162. action ShowHint("Rewarding all party members now, well done!");
  163. action GivePartyItem(583, 5);
  164. action SetState("Reset");
  165. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement