Advertisement
Guest User

poring catcher

a guest
Jan 23rd, 2013
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.86 KB | None | 0 0
  1. //=========== PORING CATCHER MADE ==============\\
  2. //=== BY: SHOGS-GFX and RAGNAROK DEVELOPERS ====\\
  3. //= Please Report if you encounter some errors =\\
  4. //===== https://www.facebook.com/ShogsGfx ======\\
  5. //==============================================\\
  6. //==FUNCTIONS===================================\\
  7. /* GM Can start the event manualy
  8. GM Can also stop the event manualy
  9. HOW: just PM this npc (npc:pcatch)
  10. The Next Guide Will Be Given by the Manager */
  11. //======= PLEASE DO NOT REMOVE CREDITS =========\\
  12. //==============================================\\
  13. //== MORE UPDATES TO COME FOR BETTER FUNCTION ==\\
  14. //===== https://www.facebook.com/ShogsGfx ======\\
  15. //==============================================\\
  16.  
  17. //====LEVEL OF GM CAN CONTROL THE EVENT=========\\
  18. //
  19. //- script GMCONTROL -1,{
  20. //OnInit:
  21. //set $gmcontrol,60;
  22. //end;
  23. //
  24. //}
  25. //---------------END OF SETUP-------------------\\
  26.  
  27. //================ON WHISPER=========================\\
  28. prontera,166,207,6 script Poring Catcher Manager 909,{
  29. if(getgroupid() >= $gmcontrol) {
  30. mes "^3399FF[Poring Catcher]^000000";
  31. mes "Hello GameMaster!";
  32. mes "What do you want to do?";
  33. switch(select("Start Event:Stop Event:Nothing"))
  34. {
  35. case 1:
  36. {
  37. next;
  38. mes "^3399FF[Poring Catcher]^000000";
  39. mes "Please confirm by typing START.";
  40. input .@confirm$;
  41. if (.@confirm$ == "START" && !agitcheck())
  42. {
  43. donpcevent "Announcer2::OnGMStart";
  44. close;
  45. }
  46. mes "Confirmation failed. Either START text is wrong or WOE is on";
  47. close;
  48. break;
  49. }
  50. case 2:
  51. {
  52. next;
  53. mes "^3399FF[Poring Catcher]^000000";
  54. mes "Please confirm by typing STOP.";
  55. input .@confirm$;
  56. if (.@confirm$ == "STOP")
  57. {
  58. donpcevent "Announcer2::OnGMStop";
  59. close;
  60. }
  61. mes "Confirmation failed";
  62. close;
  63. break;
  64.  
  65. }
  66.  
  67. case 3:
  68. {
  69. next; mes "^3399FF[Poring Catcher]^000000";
  70. mes "Good bye";
  71. close;
  72. }
  73.  
  74. }
  75. }
  76.  
  77. mes "...";
  78. close;
  79.  
  80. //====LEVEL OF GM CAN CONTROL THE EVENT=========\\
  81. OnInit:
  82. set $gmcontrol,10;
  83. end;
  84. //---------------END OF SETUP-------------------\\
  85.  
  86.  
  87. }
  88.  
  89.  
  90. //====================ANNOUNCER======================\\
  91.  
  92. - script Announcer2 -1,{
  93.  
  94.  
  95. OnGMStart:
  96. killmonster "poring_w01.gat","All";
  97. announce "(Poring Manager) : A Gamemaster started a Poring Catcher Event now.",0;
  98. sleep 3000;
  99. announce "(Poring Manager) : If you want to join, enter the warp portal at [PRONTERA 168 209].",0;
  100. enablenpc "PoringCatcher";
  101. sleep 2000;
  102. announce "(Poring Manager) : Prize: will be [3]OracleRO Cards",0;
  103. sleep 2000;
  104. announce "(Poring Manager) : The portal is going to close in one minute.",0;
  105. sleep 60000;
  106. announce "(Poring Manager) : The portal has been closed.",0;
  107. disablenpc "PoringCatcher";
  108. if(getmapusers("poring_w01") == 0)
  109. {
  110. disablenpc "Poring Banker";
  111. announce "Event Poring Catcher didn't start because there's no players.",0;
  112. end;
  113. }
  114.  
  115. donpcevent "Poring Banker::OnEnable";
  116. end;
  117.  
  118. OnGMStop:
  119.  
  120. killmonster "poring_w01.gat","All";
  121. announce "A Gamemaster has stopped the Poring Catcher Event",0;
  122. mapwarp "poring_w01.gat","prontera.gat",155,173;
  123. disablenpc "Poring Banker";
  124. disablenpc "PoringCatcher";
  125. end;
  126.  
  127.  
  128.  
  129. OnClock1200:
  130. OnClock1100:
  131. OnClock1300:
  132. OnClock2300:
  133. if (agitcheck()) end;
  134. killmonster "poring_w01.gat","All";
  135. announce "(Poring Manager) : Poring Catcher Event will start at the moment.",0;
  136. sleep 3000;
  137. announce "(Poring Manager) : If you want to join, enter the warp portal at [PRONTERA 168 209].",0;
  138. enablenpc "PoringCatcher";
  139. sleep 2000;
  140. announce "(Poring Manager) : Prize: will be [3]OracleRO Cards",0;
  141. sleep 2000;
  142. announce "(Poring Manager) : The portal is going to close in one minute.",0;
  143. sleep 60000;
  144. announce "(Poring Manager) : The portal has been closed.",0;
  145. disablenpc "PoringCatcher";
  146. if(getmapusers("poring_w01") == 0)
  147. {
  148. disablenpc "Poring Banker";
  149. announce "Event Poring Catcher didn't start because no players found in map.",0;
  150. end;
  151. }
  152.  
  153. donpcevent "Poring Banker::OnEnable";
  154. end;
  155.  
  156. OnInit:
  157. disablenpc "Poring Banker";
  158. disablenpc "PoringCatcher";
  159. }
  160. //---------All Job Registration----------------------------------------
  161. prontera,168,209,0 warp PoringCatcher 2,2,poring_w01,98,104
  162.  
  163. //---------------------------------------------------------------------
  164.  
  165.  
  166. //---------------------------------------------------------------------
  167. - script Poring Banker -1,{
  168.  
  169. OnEnable:
  170. mapannounce "poring_w01","Poring Manager: The Poring Catcher Event will start shortly",0;
  171. sleep2 10000;
  172. mapannounce "poring_w01","Poring Manager: I will be summoning 100 porings with different names kill the real poring",0;
  173. sleep2 10000;
  174. mapannounce "poring_w01","Poring Manager: What are we waiting for?..Let's Catch some Porings!!...",0;
  175. sleep2 10000;
  176. goto L_Start;
  177. end;
  178. L_Start:
  179. if(getmapusers("poring_w01") == 0) goto L_None;
  180. if(getmapusers("poring_w01") >= 1) {
  181.  
  182. mapannounce "poring_w01","Poring Manager: Get ready at the count of 5 we will start!....",0;
  183. sleep2 6000;
  184. mapannounce "poring_w01","Poring Manager: 5",0;
  185. sleep2 5000;
  186. mapannounce "poring_w01","Poring Manager: 4",0;
  187. sleep2 4000;
  188. mapannounce "poring_w01","Poring Manager: 3",0;
  189. sleep2 3000;
  190. mapannounce "poring_w01","Poring Manager: 2",0;
  191. sleep2 2000;
  192. mapannounce "poring_w01","Poring Manager: 1",0;
  193. donpcevent "Poringsummoner::OnSummon";
  194. end;
  195. }
  196.  
  197. L_None:
  198. disablenpc "Poring Banker";
  199. killmonster "poring_w01.gat","All";
  200. end;
  201. }
  202.  
  203. //==================SUMMONER OF PORINGS ======================\\
  204. - script Poringsummoner -1,{
  205.  
  206. OnSummon:
  207. if(getmapusers("poring_w01") == 0) goto L_2None;
  208. monster "poring_w01.gat",98,104,"Poring",1002,1,"poringwin::OnMobKilled";
  209. monster "poring_w01.gat",98,104,"Pouring",1002,10,"poringlose::OnMobKilled";
  210. monster "poring_w01.gat",98,104,"Proing",1002,10,"poringlose::OnMobKilled";
  211. monster "poring_w01.gat",98,104,"Poirng",1002,10,"poringlose::OnMobKilled";
  212. monster "poring_w01.gat",98,104,"Poing",1002,10,"poringlose::OnMobKilled";
  213. monster "poring_w01.gat",98,104,"I'm not a Poring",1002,5,"poringlose::OnMobKilled";
  214. monster "poring_w01.gat",98,104,"Gnirop",1002,1,"poringlose::OnMobKilled";
  215. monster "poring_w01.gat",98,104,"Poring U",1113,1,"poringlose::OnMobKilled";
  216. monster "poring_w01.gat",98,104,"Poring Me",1062,1,"poringlose::OnMobKilled";
  217. monster "poring_w01.gat",98,104,"Por|ng",1002,10,"poringlose::OnMobKilled";
  218. monster "poring_w01.gat",98,104,"Por1ng",1002,10,"poringlose::OnMobKilled";
  219. monster "poring_w01.gat",98,104,"Porong",1002,10,"poringlose::OnMobKilled";
  220. monster "poring_w01.gat",98,104,"P0ring",1002,10,"poringlose::OnMobKilled";
  221. monster "poring_w01.gat",98,104,"P@ring",1002,10,"poringlose::OnMobKilled";
  222. monster "poring_w01.gat",98,104,"Pring",1002,1,"poringlose::OnMobKilled";
  223. monster "poring_w01.gat",98,104,"Proing",1002,1,"poringlose::OnMobKilled";
  224. monster "poring_w01.gat",98,104,"Porng",1002,1,"poringlose::OnMobKilled";
  225. set $poringtimer,120;
  226. //end;
  227.  
  228. Poringtimer:
  229. sleep2 1000;
  230. set $poringtimer,$poringtimer-1;
  231. if($poringcatcherwin == 0 && $poringtimer <=0 ) goto L_2None;
  232. if($poringcatcherwin == 1 && $poringtimer <=0 ) goto L_3None;
  233. if($poringtimer == 60 ) mapannounce "poring_w01","Poring Manager: 1 min left",0;
  234. if($poringtimer <= 30 ) mapannounce "poring_w01","Poring Manager: "+$poringtimer+" seconds left",0;
  235. goto Poringtimer;
  236.  
  237.  
  238. L_2None:
  239. disablenpc "Poring Banker";
  240. killmonster "poring_w01.gat","All";
  241. mapannounce "poring_w01","Poring Manager: Nobody won. Everyone will be warped back to prontera",0;
  242. sleep2 10000;
  243. mapwarp "poring_w01","prontera",156,180;
  244. end;
  245.  
  246. L_3None:
  247. disablenpc "Poring Banker";
  248. killmonster "poring_w01.gat","All";
  249. mapannounce "poring_w01","Poring Manager: Everyone will be warped back to prontera",0;
  250. sleep2 10000;
  251. mapwarp "poring_w01","prontera",156,180;
  252. end;
  253.  
  254.  
  255. }
  256.  
  257. //==================REAL PORING FOR WIN======================\\
  258. - script poringwin -1,{
  259.  
  260. OnMobKilled:
  261. killmonster "poring_w01.gat","All";
  262. atcommand "@doommap";
  263. getitem 30000,1;
  264. // getitem 671, 10;
  265. set $poringcatcherwin,1;
  266. announce "Poring Banker: We have a winner! well done " + strcharinfo(0) + ". Players in the map will be warped back to prontera in 10 seconds..",0;
  267. //mapwarp "<from map>","<to map>",<x>,<y>;
  268. sleep2 10000;
  269. mapwarp "poring_w01","prontera",156,180;
  270. end;
  271. }
  272.  
  273. //==================DUMY PORINGS FOR LOSERS======================\\
  274. - script poringlose -1,{
  275. OnMobKilled:
  276. dispbottom "Your out of the game, You did not catch the right Poring !";
  277. percentheal -99,-99;
  278. warp "SavePoint",0,0;
  279. end;
  280. }
  281.  
  282.  
  283. //==================Mapflags========================\\
  284. poring_w01 mapflag nowarp
  285. poring_w01 mapflag nowarpto
  286. poring_w01 mapflag noteleport
  287. poring_w01 mapflag nosave
  288. poring_w01 mapflag nomemo
  289. poring_w01 mapflag nobranch
  290. poring_w01 mapflag noloot
  291. poring_w01 mapflag noskill
  292. poring_w01 mapflag nopenalty
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement