Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.63 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. prt_in.gat,44,113,3 script Devil Square Guard 734,{
  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 < 99) goto LReq;
  30. if(Zeny < 2000000) 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 99.";
  37. mes "The registration fee is 2,000,000z.";
  38. close;
  39.  
  40. L_go:
  41. if (getmapusers("ordeal_1-1.gat")==30) goto toomany;
  42. set Zeny,Zeny - 2000000;
  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, 12mn, 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 30 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. OnClock0800:
  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. OnClock1000:
  106. Announce "Devil Square is now open! 5 Minutes until it start...",8;
  107. disablenpc "Exit";
  108. initnpctimer;
  109. set $inf,1;
  110. set $status,0;
  111. killmonsterall "ordeal_1-1.gat";
  112. end;
  113.  
  114. OnClock1200:
  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. OnClock1400:
  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. OnClock1600:
  133. Announce "Devil Square is now open! 5 Minutes until it starts...",8;
  134. disablenpc "Exit";
  135. initnpctimer;
  136. set $inf,1;
  137. set $status,0;
  138. killmonsterall "ordeal_1-1.gat";
  139. end;
  140.  
  141. OnClock1800:
  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. OnClock2000:
  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. OnClock2200:
  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. OnClock2400:
  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. OnClock0200:
  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. OnClock0400:
  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. OnClock0600:
  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] Soldier Skeleton",1028,10,"HiddenNpc::Ondevildead";
  226. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Orc Archer",1189,15,"HiddenNpc::Ondevildead";
  227. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Sandman",1165,10,"HiddenNpc::Ondevildead";
  228. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Archer Skeleton",1016,15,"HiddenNpc::Ondevildead";
  229. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Minorus",1149,15,"HiddenNpc::Ondevildead";
  230. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Requiem",1164,9,"HiddenNpc::Ondevildead";
  231. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Phreeoni",1159,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] Gargoyle",1253,15,"HiddenNpc::Ondevildead2";
  246. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Alarm",1193,10,"HiddenNpc::Ondevildead2";
  247. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] High Orc",1213,10,"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] Mimic",1191,15,"HiddenNpc::Ondevildead2";
  250. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Wraith",1192,9,"HiddenNpc::Ondevildead2";
  251. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Stormy Knight",1251,1,"HiddenNpc::Ondevildead2";
  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!",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] Anolian",1206,15,"HiddenNpc::Ondevildead3";
  266. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Wanderer",1208,15,"HiddenNpc::Ondevildead3";
  267. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Deviruchi",1109,10,"HiddenNpc::Ondevildead3";
  268. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Joker",1131,14,"HiddenNpc::Ondevildead3";
  269. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Moonlight",1150,2,"HiddenNpc::Ondevildead3";
  270. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Dark Illusion",1302,1,"HiddenNpc::Ondevildead3";
  271. areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Turtle General",1312,1,"HiddenNpc::Ondevildead3";
  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",225,249,"Treasure Box",1324,1,"HiddenNpc::Onboxdead";
  286. monster "ordeal_1-1.gat",235,242,"Treasure Box",1340,1,"HiddenNpc::Onboxdead";
  287. monster "ordeal_1-1.gat",252,232,"Treasure Box",1360,1,"HiddenNpc::Onboxdead";
  288. end;
  289.  
  290. Onboxdead:
  291. if ($status == 1) end;
  292. set $mob, $mob - 1;
  293. Announce "Devil Square : " + strcharinfo(0) +" has opened the treasure box at Devil Square!",8;
  294. if($mob == 0) enablenpc "Exit";
  295. set $inf,0;
  296. end;
  297.  
  298. }
  299.  
  300. // -- Mapflags
  301. ordeal_1-1.gat mapflag nowarp
  302. ordeal_1-1.gat mapflag nowarpto
  303. ordeal_1-1.gat mapflag noteleport
  304. ordeal_1-1.gat mapflag nosave SavePoint
  305. ordeal_1-1.gat mapflag nomemo
  306. //ordeal_1-1.gat mapflag gvg
  307. ordeal_1-1.gat mapflag nobranch
  308. ordeal_1-1.gat mapflag nopenalty
  309. // -- End of Mapflags
  310.  
  311. ordeal_1-1.gat,246,245,3 script Exit 734,{
  312. mes "[Exit Devil Square]";
  313. mes "Are you sure you want to leave the Devil Square?";
  314. next;
  315. menu "No.",-,"Yes.",Yes;
  316. close;
  317. Yes:
  318. warp "prontera.gat",155,179;
  319. close;
  320. }
  321.  
  322. //------------------------------------------------------------
  323. //End of Devil Square =================================
  324. //------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement