Advertisement
Guest User

Untitled

a guest
Aug 29th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.56 KB | None | 0 0
  1.  
  2.  
  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 <img src='http://rathena.org/board/public/style_emoticons/<#EMO_DIR#>/tongue.png' class='bbc_emoticon' alt=':P' /> //
  10. // + Add a little bit infos for newbie users //
  11. // Completely rewrite by ~AnnieRuru~ //
  12. // + Tested with SVN14214 Trunk //
  13. /////////////////////////////////////////////////
  14.  
  15. turbo_room,122,121,3 script sRO Devil Square 737,{
  16. mes "[Devil Square Guardian]";
  17. mes "Welcome to the entrance door to ^FF0000sRO Devil Square^000000";
  18. mes "If you failed or die, the door will be closed and you have to wait until it start to open again";
  19. next;
  20. menu "Enter",-,"Info",L_info,"Cancel",L_cancel;
  21.  
  22. if ( $@DS_entry == 0 ) goto L_error;
  23. if ( Baselevel < 70 || Zeny < 20000 ) goto L_req;
  24. if ( getmapusers("ordeal_1-1") >= 10 ) goto L_toomany;
  25.  
  26. set Zeny,Zeny - 20000;
  27. announce strcharinfo(0)+" has entered the Devil Square",8;
  28. percentheal 100,100;
  29. warp "ordeal_1-1",228,229;
  30. end;
  31.  
  32. L_error:
  33. mes "[Devil Square Guardian]";
  34. mes "Devil Square is now closed";
  35. mes "It'll be open again at:";
  36. mes "00.00 , 02.00 , 04.00 , 06.00 , 08.00 , 10.00";
  37. mes "12.00 , 14.00 , 16.00 , 18.00 , 20.00 , 22.00";
  38. close;
  39.  
  40. L_req:
  41. mes "[Devil Square Guardian]";
  42. mes "Minimum base level to enter is 70";
  43. mes "The registration fee is 20,000z";
  44. close;
  45.  
  46. L_toomany:
  47. mes "[Devil Square Guardian]";
  48. mes "I'm sorry but the Devil Square is FULL";
  49. mes "Maximum users to enter is 10 players";
  50. close;
  51.  
  52. L_info:
  53. mes "[Devil Square Guardian]";
  54. mes "There are 3 level monster you'll encounter";
  55. mes "Each level the enemies will grow stronger";
  56. mes "If you succeded to win all 3 level monster, you'll get the opportunity to open Treasure Box with items, and equips, inside!!";
  57. close;
  58.  
  59. L_cancel:
  60. mes "[Devil Square Guardian]";
  61. mes "See ya";
  62. close;
  63. }
  64.  
  65. ordeal_1-1,0,0,0 script DS_HiddenNpc -1,{
  66. OnMinute00:
  67. if (gettime(3) %2 == 1) end;
  68. set $@DS_complete,0;
  69. disablenpc "Exit#DS";
  70. mapannounce "ordeal_1-1","Devil Square is now closed",0;
  71. killmonsterall "ordeal_1-1";
  72. announce "Devil Square is OPENED NOW!! 5 Minutes until it starts..!!",0;
  73. set $@DS_entry,1;
  74. sleep 60000;
  75. announce "Devil Square will begin in 4 minutes..!!",0;
  76. sleep 60000;
  77. announce "Devil Square will begin in 3 minutes..!!",0;
  78. sleep 60000;
  79. announce "Devil Square will begin in 2 minutes..!!",0;
  80. sleep 60000;
  81. announce "Devil Square will begin in 1 minutes..!!",0;
  82. sleep 60000;
  83. announce "Devil Square is STARTED NOW !!",0;
  84. initnpctimer;
  85. set $@DS_entry,0;
  86. set $@mob,6;
  87. areamonster "ordeal_1-1",183,182,246,244,"[DS] Amon Ra ",1511,1,"DS_HiddenNpc::Ondevildead";
  88. areamonster "ordeal_1-1",183,182,246,244,"[DS] Bacsojin",1630,1,"DS_HiddenNpc::Ondevildead";
  89. areamonster "ordeal_1-1",183,182,246,244,"[DS] Baphomet",1039,1,"DS_HiddenNpc::Ondevildead";
  90. areamonster "ordeal_1-1",183,182,246,244,"[DS] Dark Lord",1272,1,"DS_HiddenNpc::Ondevildead";
  91. areamonster "ordeal_1-1",183,182,246,244,"[DS] Doppelganger",1046,1,"DS_HiddenNpc::Ondevildead";
  92. areamonster "ordeal_1-1",183,182,246,244,"[DS] Dracula",1389,1,"DS_HiddenNpc::Ondevildead";
  93. end;
  94.  
  95. Ondevildead:
  96. set $@mob,$@mob - 1;
  97. if($@mob == 4) mapannounce "ordeal_1-1","Devil Square : 4 mobs to enter the 2nd round",0;
  98. if($@mob == 1) mapannounce "ordeal_1-1","Devil Square : 1 mobs to enter 2nd round",0;
  99. if($@mob == 0) {
  100. mapannounce "ordeal_1-1","Devil Square will enter to 2nd round",0;
  101. goto Ondevil2;
  102. }
  103. end;
  104.  
  105. Ondevil2:
  106. set $@mob,6;
  107. areamonster "ordeal_1-1",183,182,246,244,"[DS] Detale",1719,1,"DS_HiddenNpc::Ondevildead2";
  108. areamonster "ordeal_1-1",183,182,246,244,"[DS] Ktullanux",1779,1,"DS_HiddenNpc::Ondevildead2";
  109. areamonster "ordeal_1-1",183,182,246,244,"[DS] Thanatos",1708,1,"DS_HiddenNpc::Ondevildead2";
  110. areamonster "ordeal_1-1",183,182,246,244,"[DS] Vesper",1685,1,"DS_HiddenNpc::Ondevildead2";
  111. areamonster "ordeal_1-1",183,182,246,244,"[DS] Evil Snake Lord",1418,1,"DS_HiddenNpc::Ondevildead2";
  112. areamonster "ordeal_1-1",183,182,246,244,"[DS] RSX 0806",1623,1,"DS_HiddenNpc::Ondevildead2";
  113. end;
  114.  
  115. Ondevildead2:
  116. set $@mob,$@mob - 1;
  117. if($@mob == 4) mapannounce "ordeal_1-1","Devil Square : 4 mobs left to enter the 3rd round",0;
  118. if($@mob == 1) mapannounce "ordeal_1-1","Devil Square : 1 mobs left to enter the 3rd round",0;
  119. if($@mob == 0) {
  120. mapannounce "ordeal_1-1","Devil Square will enter to 3rd round",0;
  121. goto Ondevil3;
  122. }
  123. end;
  124.  
  125. Ondevil3:
  126. set $@mob,6;
  127. areamonster "ordeal_1-1",183,182,246,244,"[DS] Wounded Morroc",1917,1,"DS_HiddenNpc::Ondevildead3";
  128. areamonster "ordeal_1-1",183,182,246,244,"[DS] Nidhoggr's Shadow",2022,1,"DS_HiddenNpc::Ondevildead3";
  129. areamonster "ordeal_1-1",183,182,246,244,"[DS] Valkyrie Randgris",1751,1,"DS_HiddenNpc::Ondevildead3";
  130. areamonster "ordeal_1-1",183,182,246,244,"[DS] Fallen Bishop",1871,1,"DS_HiddenNpc::Ondevildead3";
  131. areamonster "ordeal_1-1",183,182,246,244,"[DS] Assassin Cross Eremes",1647,1,"DS_HiddenNpc::Ondevildead3";
  132. areamonster "ordeal_1-1",183,182,246,244,"[DS] Gloom Under Night",1768,1,"DS_HiddenNpc::Ondevildead3";
  133. end;
  134.  
  135. Ondevildead3:
  136. set $@mob,$@mob - 1;
  137. if($@mob == 4) mapannounce "ordeal_1-1","Devil Square : 4 mobs left to VICTORY",0;
  138. if($@mob == 1) mapannounce "ordeal_1-1","Devil Square : 1 mobs left to VICTORY",0;
  139. if($@mob == 0) {
  140. mapannounce "ordeal_1-1","Devil Square : CONGRATULATION - Treasure Boxs will be yours now",0;
  141. goto Ondevil4;
  142. }
  143. end;
  144.  
  145. Ondevil4:
  146. set $@DS_complete,1;
  147. set $@mob,1;
  148. monster "ordeal_1-1",235,238,"Treasure Box",1360,1,"DS_HiddenNpc::Onboxdead";
  149. end;
  150.  
  151. Onboxdead:
  152. set $@mob, $@mob - 1;
  153. announce "Devil Square : "+ strcharinfo(0) +" has opened the sRO Devil Square Box at Devil Square contains 1000x TCG 200x Event Tickets 50x Poring Coins 50x Valhalla Flower & 500x Mithril Coins",0;
  154. if ($@mob == 0) enablenpc "Exit#DS";
  155. end;
  156.  
  157. OnTimer30000:
  158. if ( $@DS_complete == 1 ) {
  159. stopnpctimer;
  160. end;
  161. } else
  162. if (getmapusers("ordeal_1-1") == 0) {
  163. announce "All players failed to survive at Devil Square",0;
  164. killmonsterall "ordeal_1-1";
  165. stopnpctimer;
  166. end;
  167. } else {
  168. mapannounce "ordeal_1-1",getmapusers("ordeal_1-1") +" players is still survive at Devil Square",0;
  169. initnpctimer;
  170. end;
  171. }
  172.  
  173. }
  174.  
  175. // -- Mapflags
  176. ordeal_1-1 mapflag nowarp
  177. ordeal_1-1 mapflag nowarpto
  178. ordeal_1-1 mapflag noteleport
  179. ordeal_1-1 mapflag nosave SavePoint
  180. ordeal_1-1 mapflag nomemo
  181. ordeal_1-1 mapflag nobranch
  182. ordeal_1-1 mapflag nopenalty
  183.  
  184. ordeal_1-1,246,245,7 script Exit#DS 51,{
  185. mes "[Exit]";
  186. mes "See ya";
  187. next;
  188. warp "SavePoint",0,0;
  189. close;
  190. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement