Advertisement
Guest User

EO+ Heroes Call War Games

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