Advertisement
iFoxkun

Game Master Event Starter

Jan 19th, 2012
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.14 KB | None | 0 0
  1. //Made by Karul
  2. prontera,155,190,3 script Events 793,{
  3. if(getgmlevel() < 1 ) end;
  4. mes "Hello there GM " + strcharinfo(0) + " !";
  5. next;
  6. set .menu$, select(.gm_menu$);
  7. switch(.menu$) {
  8. case 1: // Question & Answer
  9. next;
  10. mes "I will now create warps, announce, & warp you.";
  11. close2;
  12. warp "quiz_02",45,366;
  13. Announce "There will be a 'Question & Answer' Event Held!",bc_all | bc_blue;
  14. sleep2 5000;
  15. Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
  16. sleep2 1000;
  17. enablenpc "quizevent";
  18. initnpctimer;
  19. goto L_Timer;
  20. end;
  21. case 2: // Death by Dice
  22. next;
  23. mes "I will now create warps, announce, & warp you.";
  24. close2;
  25. warp "g_room1-1",55,91;
  26. Announce "There will be a 'Death by Dice' Event Held!",bc_all | bc_blue;
  27. sleep2 5000;
  28. Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
  29. sleep2 1000;
  30. enablenpc "diceevent";
  31. initnpctimer;
  32. goto L_Timer;
  33. end;
  34. case 3: // Bomb Porings?!
  35. next;
  36. mes "I will not create warps, announce, & warp you.";
  37. close2;
  38. warp "g_room1-1",237,270;
  39. Announce "There will be a 'Bomb Porings?!' Event Held!",bc_all | bc_blue;
  40. sleep2 5000;
  41. Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
  42. sleep2 1000;
  43. enablenpc "bombevent";
  44. initnpctimer;
  45. goto L_Timer;
  46. end;
  47. case 4: // Last Man Standing
  48. next;
  49. mes "I will now create warps, announce, & warp you.";
  50. close2;
  51. warp "g_room1-1",237,270;
  52. Announce "There will be a 'Last Man Standing' Event Held!",bc_all | bc_blue;
  53. sleep2 5000;
  54. Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
  55. sleep2 1000;
  56. enablenpc "lmsevent";
  57. initnpctimer;
  58. goto L_Timer;
  59. end;
  60. case 5: // Party vs Party
  61. next;
  62. mes "I will now create warps, announce, & warp you.";
  63. close2;
  64. warp "06guild_08",50,50;
  65. Announce "There will be a 'Party vs Party' Event Held!",bc_all | bc_blue;
  66. sleep2 5000;
  67. Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
  68. sleep2 1000;
  69. enablenpc "pvpevent";
  70. initnpctimer;
  71. goto L_Timer;
  72. end;
  73. case 6: // Go Pikachu!
  74. next;
  75. mes "I will now create warps, announce, & warp you.";
  76. close2;
  77. warp "quiz_02",249,365;
  78. Announce "There will be a 'Go Pikachu!' Event Held!",bc_all | bc_blue;
  79. sleep2 5000;
  80. Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
  81. sleep2 1000;
  82. enablenpc "pikachuevent";
  83. initnpctimer;
  84. goto L_Timer;
  85. end;
  86. case 7: // Tarot?
  87. next;
  88. mes "I will now create warps, announce, & warp you.";
  89. close2;
  90. warp "g_room1-1",230,368;
  91. Announce "There will be a 'Tarot?' Event Held!",bc_all | bc_blue;
  92. sleep2 5000;
  93. Announce "If you want to join, the warp will be open in Prontera. It will be open for 1 minute!",bc_all | bc_blue;
  94. sleep2 1000;
  95. enablenpc "tarotevent";
  96. initnpctimer;
  97. goto L_Timer;
  98. end;
  99. }
  100. L_Timer:
  101. OnTimer00000:
  102. Announce "Timer has started!",bc_all;
  103. end;
  104.  
  105. OnTimer30000:
  106. Announce "Thirty Seconds Have Passed By!",bc_all;
  107. sleep2 5000;
  108. Announce "Hurry to Prontera if you want to join!",bc_all;
  109. end;
  110.  
  111. OnTimer40000:
  112. Announce "Twenty seconds left!",bc_all;
  113. end;
  114.  
  115. OnTimer50000:
  116. Announce "Ten seconds left!",bc_all;
  117. end;
  118.  
  119. OnTimer55000:
  120. Announce "5!",bc_all;
  121. sleep2 1000;
  122. Announce "4!",bc_all;
  123. sleep2 1000;
  124. Announce "3!",bc_all;
  125. sleep2 1000;
  126. Announce "2!",bc_all;
  127. sleep2 1000;
  128. Announce "1!",bc_all;
  129. sleep2 1000;
  130. Announce "0!",bc_all;
  131. sleep2 1000;
  132. disablenpc "quizevent";
  133. disablenpc "diceevent";
  134. disablenpc "bombevent";
  135. disablenpc "lmsevent";
  136. disablenpc "pvpevent";
  137. disablenpc "pikachuevent";
  138. disablenpc "tarotevent";
  139. stopnpctimer;
  140. end;
  141.  
  142. OnInit:
  143. setarray .gmevents$,"Question & Answer","Death by Dice","Bomb Porings?!","Last Man Standing","Party vs Party!","Go Pikachu!","Tarot?";
  144. for ( set .@i, 0; .@i < getarraysize(.gmevents$); set .@i, .@i +1 )
  145. set .gm_menu$, .gm_menu$ + (.gmevents$[.@i]) +":";
  146. disablenpc "quizevent";
  147. disablenpc "diceevent";
  148. disablenpc "bombevent";
  149. disablenpc "lmsevent";
  150. disablenpc "pvpevent";
  151. disablenpc "pikachuevent";
  152. disablenpc "tarotevent";
  153. end;
  154. }
  155.  
  156.  
  157.  
  158.  
  159. // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  160. // To -> Event Warps
  161. //== Question & Answer
  162. prontera,155,180,0 warp quizevent 2,2,quiz_02,45,366
  163.  
  164. //== Death by Dice
  165. prontera,155,180,0 warp diceevent 2,2,g_room1-1,55,91
  166.  
  167. //== Bomb Porings?!
  168. prontera,155,180,0 warp bombevent 2,2,g_room1-1,237,270
  169.  
  170. //== Player vs Player
  171. prontera,155,180,0 warp lmsevent 2,2,g_room1-1,237,270
  172.  
  173. //== Party vs Party
  174. prontera,155,180,0 warp pvpevent 2,2,06guild_08,50,50;
  175.  
  176. //== Go Pikachu!
  177. prontera,155,180,0 warp pikachuevent 2,2,quiz_02,249,371
  178.  
  179. //== Tarot?
  180. prontera,155,180,0 warp tarotevent 2,2,g_room1-1,230,368
  181.  
  182.  
  183.  
  184.  
  185.  
  186. // ~~~~~~~~~~~~~~~~~~~~~~~~~~
  187. // In-Event
  188. //== Question & Answer
  189. // "True"
  190. quiz_02,32,362,0 warp quizeventroom1 2,2,quiz_02,32,357
  191. // "False"
  192. quiz_02,59,362,0 warp quizeventroom2 2,2,quiz_02,59,357
  193.  
  194. //== Death by Dice
  195. // Number 1~
  196. g_room1-1,37,84,0 warp diceeventroom1 2,2,g_room1-1,38,73
  197. // Number 2~
  198. g_room1-1,49,84,0 warp diceeventroom2 2,2,g_room1-1,49,73
  199. // Number 3~
  200. g_room1-1,61,84,0 warp diceeventroom3 2,2,g_room1-1,61,73
  201. // Number 4~
  202. g_room1-1,73,84,0 warp diceeventroom4 2,2,g_room1-1,73,73
  203.  
  204. //== Bomb Poring
  205. // Bomb Spammer
  206. g_room1-1,236,276,4 script Spammer 793,{
  207.  
  208. if(getgmlevel() < 1) end;
  209. switch(select("Bomb Porings:Guardians:None")) {
  210. case 1:
  211. areamonster "g_room1-1",221,292,233,280,"Bomb Poring",1904,10,"Spammer::OnEvent";
  212. areamonster "g_room1-1",221,261,233,273,"Bomb Poring",1904,10,"Spammer::OnEvent";
  213. areamonster "g_room1-1",252,292,240,280,"Bomb Poring",1904,10,"Spammer::OnEvent";
  214. areamonster "g_room1-1",252,261,240,273,"Bomb Poring",1904,10,"Spammer::OnEvent";
  215. close;
  216. case 2:
  217. set .@randvar, rand(1,4);
  218. if(.@randvar == 1) {
  219. areamonster "g_room1-1",221,292,233,280,"Sword Guardian",1829,1,"Spammer::OnEvent";
  220. } else if(.@randvar == 2) {
  221. areamonster "g_room1-1",221,261,233,273,"Sword Guardian",1829,1,"Spammer::OnEvent";
  222. } else if(.@randvar == 3) {
  223. areamonster "g_room1-1",252,292,240,280,"Sword Guardian",1829,1,"Spammer::OnEvent";
  224. } else if(.@randvar == 4) {
  225. areamonster "g_room1-1",252,261,240,273,"Sword Guardian",1829,1,"Spammer::OnEvent";
  226. }
  227. close;
  228. case 3:
  229. close;
  230. }
  231. OnEvent:
  232. end;
  233. }
  234.  
  235. //== Go Pikachu!
  236. - script Pokemon Field 793,{
  237. OnInit:
  238. setcell "quiz_02",240,367,259,367,cell_walkable,0;
  239. setcell "quiz_02",240,367,240,364,cell_walkable,0;
  240. setcell "quiz_02",259,364,259,367,cell_walkable,0;
  241. end;
  242. }
  243. // "Win"
  244. quiz_02,236,364,0 warp pikachueventroom1 2,2,quiz_02,236,346
  245. // "Lose"
  246. quiz_02,263,364,0 warp pikachueventroom2 2,2,quiz_02,263,346
  247.  
  248.  
  249. // == Mapflags
  250. // <Add Here>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement