Advertisement
Guest User

Devil Square Arena

a guest
Oct 11th, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.85 KB | None | 0 0
  1. //------------------------------------------------------------
  2. //Start of Devil Square =================================
  3. //------------------------------------------------------------
  4. // Made:By Kirlein (Tyirial Script Concept) //
  5. // Devil Square based off the mmorpg Muonline //
  6. // Have Fun and feel free to leave suggestions //
  7. // Leave This intacted //
  8. // + Translated by Stillhard aka Dewa //
  9. // + Add times for 24 hours of play :p //
  10. // + Add a little bit infos for newbie users //
  11. //==========================//
  12. // == Minor edits by Janice of LoadedRO.com == //
  13. // -- Fixed some typo and grammatical error -- //
  14. // -- Added MvPs in the mobs -- //
  15. // -- Lessen the Treasure Boxes -- //
  16. // -- Changed the required Zeny and level to enter -- //
  17. /////////////////////////////////////////////////
  18.  
  19. mid_camp.gat,217,217,1 script Devil Square::Devil Square 738,{
  20.  
  21. mes "[Devil Square Guard]";
  22. mes "Welcome to the entrance door to ^FF0000Devil Square^000000!";
  23. next;
  24. mes "[Devil Square Guard]";
  25. mes "If you failed or die, the door will be closed and you have to wait until it opens again.";
  26. next;
  27. menu "Enter",-,"Info",Info,"Cancel",Cancel;
  28.  
  29. if(Baselevel < 250) goto LReq;
  30. if(Zeny < 50000000) goto LReq;
  31. if($inf == 1) goto L_go;
  32. goto L_error;
  33.  
  34. LReq:
  35. mes "[Devil Square Guard]";
  36. mes "Minimum base level to enter is 250.";
  37. mes "The registration fee is 50,000,000z.";
  38. close;
  39.  
  40. L_go:
  41. if (getmapusers("ordeal_1-1.gat")==10) goto toomany;
  42. set Zeny,Zeny - 50000000;
  43. announce ""+strcharinfo(0)+" has entered the Devil Square!",8;
  44. percentheal 100,100;
  45. warp "ordeal_1-1.gat",182,182;
  46. end;
  47.  
  48. L_error:
  49. mes "[Devil Square Guard]";
  50. mes "Devil Square is now closed.";
  51. mes "It'll be open again at:";
  52. mes "10am, 12pm, 2pm, 4pm, 6pm, 8pm,";
  53. mes "10pm, 12am, 2am, 4am, 6am, 8am.";
  54. close;
  55.  
  56. Info:
  57. mes "[Devil Square Guard]";
  58. mes "There are 3 level monster you'll encounter.";
  59. mes "Each level the enemies will grow stronger.";
  60. mes "If you succeded to win all the 3 levels, you'll get the opportunity to open 5 Treasure Boxes with items, equips, and rare cards inside!!";
  61. close;
  62. end;
  63.  
  64. toomany:
  65. mes "[Devil Square Guard]";
  66. mes "I'm sorry but the Devil Square is FULL.";
  67. mes "Maximum users to enter is 10 players.";
  68. set $inf,0;
  69. close;
  70. end;
  71.  
  72. Cancel:
  73. mes "[Devil Square Guard]";
  74. mes "See ya!";
  75. close;
  76. end;
  77. }
  78.  
  79. ////End Of Devil Square Entrance
  80.  
  81. ordeal_1-1.gat,182,183,5 script Cek -1,{
  82.  
  83. OnTimer30000:
  84. if (getmapusers("ordeal_1-1.gat") == 0) Announce "All players failed to survive at the Devil Square!",8;
  85. if (getmapusers("ordeal_1-1.gat") == 0) set $status,1;
  86. if (getmapusers("ordeal_1-1.gat") == 0) killmonsterall "ordeal_1-1.gat";
  87. if (getmapusers("ordeal_1-1.gat") == 0) end;
  88. Announce "There are still [" + getmapusers("ordeal_1-1.gat") + "] player(s) trying to survive at the Devil Square!",8;
  89. initnpctimer;
  90. end;
  91.  
  92. }
  93.  
  94. ordeal_1-1.gat,182,183,5 script HiddenNpc -1,{
  95.  
  96. OnClock0206:
  97. Announce "Devil Square is now open! 5 Minutes until it starts...",8;
  98. disablenpc "Exit";
  99. initnpctimer;
  100. set $inf,1;
  101. set $status,0;
  102. killmonsterall "ordeal_1-1.gat";
  103. end;
  104.  
  105. OnClock0400:
  106. Announce "Devil Square is now open! 5 Minutes until it starts...",8;
  107. disablenpc "Exit";
  108. initnpctimer;
  109. set $inf,1;
  110. set $status,0;
  111. killmonsterall "ordeal_1-1.gat";
  112. end;
  113.  
  114. OnClock0600:
  115. Announce "Devil Square is now open! 5 Minutes until it starts...",8;
  116. disablenpc "Exit";
  117. initnpctimer;
  118. set $inf,1;
  119. set $status,0;
  120. killmonsterall "ordeal_1-1.gat";
  121. end;
  122.  
  123. OnClock0800:
  124. Announce "Devil Square is now open! 5 Minutes until it starts...",8;
  125. disablenpc "Exit";
  126. initnpctimer;
  127. set $inf,1;
  128. set $status,0;
  129. killmonsterall "ordeal_1-1.gat";
  130. end;
  131.  
  132. OnClock1000:
  133. Announce "Devil Square is now open! 5 Minutes until it start...",8;
  134. disablenpc "Exit";
  135. initnpctimer;
  136. set $inf,1;
  137. set $status,0;
  138. killmonsterall "ordeal_1-1.gat";
  139. end;
  140.  
  141. OnClock1200:
  142. Announce "Devil Square is now open! 5 Minutes until it starts...",8;
  143. disablenpc "Exit";
  144. initnpctimer;
  145. set $inf,1;
  146. set $status,0;
  147. killmonsterall "ordeal_1-1.gat";
  148. end;
  149.  
  150. OnClock1400:
  151. Announce "Devil Square is now open! 5 Minutes until it starts...",8;
  152. disablenpc "Exit";
  153. initnpctimer;
  154. set $inf,1;
  155. set $status,0;
  156. killmonsterall "ordeal_1-1.gat";
  157. end;
  158.  
  159. OnClock1600:
  160. Announce "Devil Square is now open! 5 Minutes until it starts...",8;
  161. disablenpc "Exit";
  162. initnpctimer;
  163. set $inf,1;
  164. set $status,0;
  165. killmonsterall "ordeal_1-1.gat";
  166. end;
  167.  
  168. OnClock1800:
  169. Announce "Devil Square is now open! 5 Minutes until it starts...",8;
  170. disablenpc "Exit";
  171. initnpctimer;
  172. set $inf,1;
  173. set $status,0;
  174. killmonsterall "ordeal_1-1.gat";
  175. end;
  176.  
  177. OnClock2000:
  178. Announce "Devil Square is now open! 5 Minutes until it starts...",8;
  179. disablenpc "Exit";
  180. initnpctimer;
  181. set $inf,1;
  182. set $status,0;
  183. killmonsterall "ordeal_1-1.gat";
  184. end;
  185.  
  186. OnClock2200:
  187. Announce "Devil Square is now open! 5 Minutes until it starts...",8;
  188. disablenpc "Exit";
  189. initnpctimer;
  190. set $inf,1;
  191. set $status,0;
  192. killmonsterall "ordeal_1-1.gat";
  193. end;
  194.  
  195. OnClock2400:
  196. Announce "Devil Square is now open! 5 Minutes until it starts...",8;
  197. disablenpc "Exit";
  198. initnpctimer;
  199. set $inf,1;
  200. set $status,0;
  201. killmonsterall "ordeal_1-1.gat";
  202. end;
  203.  
  204. OnTimer60000:
  205. Announce "Devil Square will begin in 4 minutes...",8;
  206. end;
  207.  
  208. OnTimer120000:
  209. Announce "Devil Square will begin in 3 minutes...",8;
  210. end;
  211.  
  212. OnTimer180000:
  213. Announce "Devil Square will begin in 2 minutes...",8;
  214. end;
  215.  
  216. OnTimer240000:
  217. Announce "Devil Square will begin in 1 minute...",8;
  218. end;
  219.  
  220. OnTimer300000:
  221. Announce "The Devil Square has begun!",8;
  222. initnpctimer "Cek";
  223. set $inf,0;
  224. set $mob,75;
  225. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Duneyrr",2018,30,"HiddenNpc::Ondevildead";
  226. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Archer Guardian",1285,35,"HiddenNpc::Ondevildead";
  227. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Majorous",1310,30,"HiddenNpc::Ondevildead";
  228. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Giant Spider",1304,45,"HiddenNpc::Ondevildead";
  229. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Wind Ghost",1263,45,"HiddenNpc::Ondevildead";
  230. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Mutant Dragon",1262,40,"HiddenNpc::Ondevildead";
  231. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Flying Bear",2176,1,"HiddenNpc::Ondevildead";
  232. end;
  233.  
  234. Ondevildead:
  235. if ($status == 1) end;
  236. set $mob,$mob-1;
  237. if($mob == 25) Announce "Devil Square : 25 mobs to go before the 2nd round!",8;
  238. if($mob == 5) Announce "Devil Square : 5 mobs to go before the 2nd round!",8;
  239. if($mob == 0) Announce "Devil Square will now enter the 2nd round!",8;
  240. if($mob == 0) goto Ondevil2;
  241. end;
  242.  
  243. Ondevil2:
  244. set $mob,70;
  245. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Bloody Knight",1268,45,"HiddenNpc::Ondevildead2";
  246. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Knight Guardian",1286,45,"HiddenNpc::Ondevildead2";
  247. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Soldier Guardian",1287,45,"HiddenNpc::Ondevildead2";
  248. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Injustice",1257,10,"HiddenNpc::Ondevildead2";
  249. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Dark Illusion",1302,40,"HiddenNpc::Ondevildead2";
  250. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Violy",1390,60,"HiddenNpc::Ondevildead2";
  251. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Ancient Pan",2175,1,"HiddenNpc::Ondevildead";
  252. end;
  253.  
  254. Ondevildead2:
  255. if ($status == 1) end;
  256. set $mob,$mob-1;
  257. if($mob == 25) Announce "Devil Square : 25 mobs to go before the 3rd round!",8;
  258. if($mob == 5) Announce "Devil Square : 5 mobs to go before the 3rd round!",8;
  259. if($mob == 0) Announce "Devil Square will now enter the 3rd round! Watch out for the Final BOSS!!",8;
  260. if($mob == 0) goto Ondevil3;
  261. end;
  262.  
  263. Ondevil3:
  264. set $mob,58;
  265. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Seyren Windsor",1640,5,"HiddenNpc::Ondevildead3";
  266. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Margarethr",1643,5,"HiddenNpc::Ondevildead3";
  267. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Shecil",1644,5,"HiddenNpc::Ondevildead3";
  268. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Katrinn",1645,5,"HiddenNpc::Ondevildead3";
  269. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Eremes",1641,5,"HiddenNpc::Ondevildead3";
  270. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Harword",1642,5,"HiddenNpc::Ondevildead3";
  271. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] King CROW",2168,1,"HiddenNpc::Ondevildead";
  272. end;
  273.  
  274. Ondevildead3:
  275. if ($status == 1) end;
  276. set $mob,$mob-1;
  277. if($mob == 25) Announce "Devil Square : 25 mobs left to VICTORY!",8;
  278. if($mob == 5) Announce "Devil Square : 5 mobs left to VICTORY!",8;
  279. if($mob == 0) Announce "Devil Square : CONGRATULATIONS - 3 Treasure Boxes can now be yours!",8;
  280. if($mob == 0) goto Ondevil4;
  281. end;
  282.  
  283. Ondevil4:
  284. set $mob,10;
  285. monster "ordeal_1-1.gat",233,245,"Treasure Box",673,3,"HiddenNpc::Onboxdead";
  286. monster "ordeal_1-1.gat",236,242,"Treasure Box",13995,10,"HiddenNpc::Onboxdead";
  287. monster "ordeal_1-1.gat",239,239,"Treasure Box",14232,10,"HiddenNpc::Onboxdead";
  288. monster "ordeal_1-1.gat",242,236,"Treasure Box",7539,30,"HiddenNpc::Onboxdead";
  289. monster "ordeal_1-1.gat",245,233,"Treasure Box",12103,5,"HiddenNpc::Onboxdead";
  290. end;
  291.  
  292. Onboxdead:
  293. if ($status == 1) end;
  294. set $mob, $mob - 1;
  295. Announce "Devil Square : " + strcharinfo(0) +" has opened the treasure box at Devil Square!",8;
  296. if($mob == 0) enablenpc "Exit";
  297. set $inf,0;
  298. end;
  299.  
  300. }
  301.  
  302. // -- Mapflags
  303. ordeal_1-1.gat mapflag nowarp
  304. ordeal_1-1.gat mapflag nowarpto
  305. ordeal_1-1.gat mapflag noteleport
  306. ordeal_1-1.gat mapflag nosave SavePoint
  307. ordeal_1-1.gat mapflag nomemo
  308. //ordeal_1-1.gat mapflag gvg
  309. ordeal_1-1.gat mapflag nobranch
  310. ordeal_1-1.gat mapflag nopenalty
  311. // -- End of Mapflags
  312.  
  313. ordeal_1-1.gat,246,245,3 script Exit 734,{
  314. mes "[Exit Devil Square]";
  315. mes "Are you sure you want to leave the Devil Square?";
  316. next;
  317. menu "No.",-,"Yes.",Yes;
  318. close;
  319. Yes:
  320. warp "mid_camp.gat",208,230;
  321. close;
  322. }
  323.  
  324. //------------------------------------------------------------
  325. //End of Devil Square =================================
  326. //------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement