yuhsing

Untitled

Nov 15th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.68 KB | None | 0 0
  1.  
  2. prontera,155,181,5 script Bossnia Warper::bossnia 757,{
  3.  
  4. if( !getcharid(1) ){
  5. mes "You need a Party to enter Bossnia.";
  6. close;
  7. }
  8.  
  9. mes "Enter Bossnia ?";
  10. mes "Fee : ^0055FF"+.Cost+" Zeny^000000";
  11. next;
  12. set .@Room,( select( ( .RoomParty[0] == 0 || .RoomParty[0] == getcharid(1) )?"^0055FF[ May Enter ] ^000000Bossnia 1":"^FF0000[ Cant Enter ]^000000 Bossnia 1",
  13. ( .RoomParty[1] == 0 || .RoomParty[1] == getcharid(1) )?"^0055FF[ May Enter ] ^000000Bossnia 2":"^FF0000[ Cant Enter ]^000000 Bossnia 2",
  14. ( .RoomParty[2] == 0 || .RoomParty[2] == getcharid(1) )?"^0055FF[ May Enter ] ^000000Bossnia 3":"^FF0000[ Cant Enter ]^000000 Bossnia 3",
  15. ( .RoomParty[3] == 0 || .RoomParty[3] == getcharid(1) )?"^0055FF[ May Enter ] ^000000Bossnia 4":"^FF0000[ Cant Enter ]^000000 Bossnia 4" ) - 1 );
  16.  
  17. if( .RoomParty[.@Room] == getcharid(1) ){
  18. warp .Map$[.@Room],0,0;
  19. }else if( .RoomParty[.@Room] <= 0 ){
  20. if( getcharid(0) != getpartyleader( getcharid(1),2 ) ){
  21. mes "Only Party Leader are allowed to register for a Room.";
  22. }else{
  23. if( select("Rent Room for 2 Hours:Cancel") == 1 ){
  24. for( set .@i,0; .@i < 4; set .@i,.@i + 1 )
  25. if( .RoomParty[.@i] == getcharid(1) ){
  26. dispbottom "You have your own Room ( No. "+(.@i + 1)+" ) already.... auto warped to your room...";
  27. warpparty .Map$[.@i],0,0,getcharid(1);
  28. end;
  29. }
  30. if( Zeny < .Cost ){
  31. mes "You need ^FF0000"+.Cost+" Zeny^000000.";
  32. close;
  33. }
  34. set .@PartyLeader,getcharid(3);
  35. getpartymember getcharid(1);
  36. getpartymember getcharid(1),2;
  37. for( set .@i,0; .@i < $@partymembercount; set .@i,.@i + 1 )
  38. if( attachrid( $@partymemberaid[.@i] ) )
  39. if( #RoomDelay > gettimetick(2) ){
  40. set .@Cooldown,(( #RoomDelay - gettimetick(2) ) / 3600 );
  41. attachrid( .@PartyLeader );
  42. mes "Player : ^FF0000"+$@partymembername$[.@i]+"^000000 cant enter. He cant join for next ^0055FF"+.@Cooldown+" Hours^000000.";
  43. close;
  44. }
  45. attachrid( .@PartyLeader );
  46. set Zeny,Zeny - .Cost;
  47. set .RoomParty[.@Room],getcharid(1);
  48. warpparty .Map$[.@Room],0,0,getcharid(1);
  49. getpartymember getcharid(1),2;
  50. for( set .@i,0; .@i < $@partymembercount; set .@i,.@i + 1 )
  51. if( attachrid( $@partymemberaid[.@i] ) ){
  52. set #RoomDelay,gettimetick(2) + ( .DelayHour * 3600 );
  53. set .RoomTime[.@Room],gettimetick(2) + ( 2 * 3600 );
  54. }
  55. }
  56. }
  57. }else{
  58. mes "This Room is occupied by other Party now..";
  59. }
  60. close;
  61.  
  62. OnInit:
  63. // Entrance Fee
  64. set .Cost,100000;
  65. // Delay before can enter again
  66. set .DelayHour,48;
  67.  
  68.  
  69.  
  70. // Map Lists
  71. setarray .Map$[0],"bossnia_01","bossnia_02","bossnia_03","bossnia_04";
  72. // Mapflags
  73. setarray .@MF[0],0,1,2,3,4,5,13,14,22,31,32,33,34;
  74. for( set .@a,0; .@a < getarraysize(.Map$); set .@a,.@a + 1 )
  75. for( set .@b,0; .@b < getarraysize(.@MF); set .@b,.@b + 1 )
  76. setmapflag .Map$[.@a],.@MF[.@b];
  77.  
  78. while( 1 ){
  79. for( set .@x,0; .@x < getarraysize(.Map$); set .@x,.@x + 1 )
  80. if( .RoomTime[.@x] && .RoomTime[.@x] < gettimetick(2) ){
  81. mapannounce .Map$[.@x],"Time's Up",0;
  82. sleep 1000;
  83. mapwarp .Map$[.@x],"prontera",155,181;
  84. set .RoomTime[.@x],0;
  85. set .RoomParty[.@x],0;
  86. }
  87. sleep 1000;
  88. }
  89. end;
  90.  
  91. // Killed MVP Drop Items
  92. OnBossnia_01: getitem 673,1; end;
  93. OnBossnia_02: getitem 670,1; end;
  94. OnBossnia_03: getitem 677,1; end;
  95. OnBossnia_04: getitem 674,1; end;
  96. }
  97.  
  98.  
  99. //===== MVP LISTS ====== Bossnia 01 ===========
  100.  
  101. bossnia_01,0,0,0,0 boss_monster Garm 1252,1,600000,0,"bossnia::OnBossnia_01"
  102. bossnia_01,0,0,0,0 boss_monster Mistress 1059,1,600000,0,"bossnia::OnBossnia_01"
  103. bossnia_01,0,0,0,0 boss_monster Golden Thief Bug 1086,1,600000,0,"bossnia::OnBossnia_01"
  104. bossnia_01,0,0,0,0 boss_monster Drake 1112,1,600000,0,"bossnia::OnBossnia_01"
  105. bossnia_01,0,0,0,0 boss_monster Eddga 1115,1,600000,0,"bossnia::OnBossnia_01"
  106. bossnia_01,0,0,0,0 boss_monster Maya 1147,1,600000,0,"bossnia::OnBossnia_01"
  107. bossnia_01,0,0,0,0 boss_monster Moonlight Flower 1150,1,600000,0,"bossnia::OnBossnia_01"
  108. bossnia_01,0,0,0,0 boss_monster Phreeoni 1159,1,600000,0,"bossnia::OnBossnia_01"
  109. bossnia_01,0,0,0,0 boss_monster Stormy Knight 1251,1,600000,0,"bossnia::OnBossnia_01"
  110. bossnia_01,0,0,0,0 boss_monster Tao Gunka 1583,1,600000,0,"bossnia::OnBossnia_01"
  111. bossnia_01,0,0,0,0 boss_monster White Lady 1630,1,600000,0,"bossnia::OnBossnia_01"
  112. bossnia_01,0,0,0,0 boss_monster Gopinich 1885,1,600000,0,"bossnia::OnBossnia_01"
  113. bossnia_01,0,0,0,0 boss_monster Boitata 2068,1,600000,0,"bossnia::OnBossnia_01"
  114. bossnia_01,0,0,0,0 boss_monster Turtle General 1312,1,600000,0,"bossnia::OnBossnia_01"
  115. bossnia_01,0,0,0,0 boss_monster Osiris 1038,1,600000,0,"bossnia::OnBossnia_01"
  116. bossnia_01,0,0,0,0 boss_monster Orc Hero 1087,1,600000,0,"bossnia::OnBossnia_01"
  117. bossnia_01,0,0,0,0 boss_monster Pharaoh 1157,1,600000,0,"bossnia::OnBossnia_01"
  118. bossnia_01,0,0,0,0 boss_monster Egnigem Cenia 1658,1,600000,0,"bossnia::OnBossnia_01"
  119.  
  120.  
  121. //===== MVP LISTS ====== Bossnia 02 ===========
  122.  
  123. bossnia_01,0,0,0,0 boss_monster Samurai Specter 1492,1,600000,0,"bossnia::OnBossnia_02"
  124. bossnia_01,0,0,0,0 boss_monster Atros 1785,1,600000,0,"bossnia::OnBossnia_02"
  125. bossnia_01,0,0,0,0 boss_monster Hardrock Mammoth 1990,1,600000,0,"bossnia::OnBossnia_02"
  126. bossnia_01,0,0,0,0 boss_monster Tendrilion 1991,1,600000,0,"bossnia::OnBossnia_02"
  127. bossnia_01,0,0,0,0 boss_monster Gloom Under Night 1768,1,600000,0,"bossnia::OnBossnia_02"
  128. bossnia_01,0,0,0,0 boss_monster Orc Lord 1190,1,600000,0,"bossnia::OnBossnia_02"
  129. bossnia_01,0,0,0,0 boss_monster Doppelganger 1046,1,600000,0,"bossnia::OnBossnia_02"
  130. bossnia_01,0,0,0,0 boss_monster Lord of the Dead 1373,1,600000,0,"bossnia::OnBossnia_02"
  131. bossnia_01,0,0,0,0 boss_monster Dracula 1389,1,600000,0,"bossnia::OnBossnia_02"
  132. bossnia_01,0,0,0,0 boss_monster Evil Snake Lord 1418,1,600000,0,"bossnia::OnBossnia_02"
  133. bossnia_01,0,0,0,0 boss_monster Dracula 1511,1,600000,0,"bossnia::OnBossnia_02"
  134. bossnia_01,0,0,0,0 boss_monster Amon Ra 1389,1,600000,0,"bossnia::OnBossnia_02"
  135. bossnia_01,0,0,0,0 boss_monster RSX-0806 1623,1,600000,0,"bossnia::OnBossnia_02"
  136. bossnia_01,0,0,0,0 boss_monster Vesper 1685,1,600000,0,"bossnia::OnBossnia_02"
  137. bossnia_01,0,0,0,0 boss_monster Lady Tanee 1688,1,600000,0,"bossnia::OnBossnia_02"
  138. bossnia_01,0,0,0,0 boss_monster Queen Scaraba 2087,1,600000,0,"bossnia::OnBossnia_02"
  139.  
  140.  
  141. //===== MVP LISTS ====== Bossnia 03 ===========
  142.  
  143. bossnia_01,0,0,0,0 boss_monster Thanatos Phantom 1708,1,600000,0,"bossnia::OnBossnia_03"
  144. bossnia_01,0,0,0,0 boss_monster Kiel D-01 1734,1,600000,0,"bossnia::OnBossnia_03"
  145. bossnia_01,0,0,0,0 boss_monster Ktullanux 1779,1,600000,0,"bossnia::OnBossnia_03"
  146. bossnia_01,0,0,0,0 boss_monster Fallen Bishop Hibram 1871,1,600000,0,"bossnia::OnBossnia_03"
  147. bossnia_01,0,0,0,0 boss_monster Detardeurus 1719,1,600000,0,"bossnia::OnBossnia_03"
  148. bossnia_01,0,0,0,0 boss_monster Baphomet 1039,1,600000,0,"bossnia::OnBossnia_03"
  149. bossnia_01,0,0,0,0 boss_monster Dark Lord 1272,1,600000,0,"bossnia::OnBossnia_03"
  150.  
  151.  
  152. //===== MVP LISTS ====== Bossnia 04 ===========
  153.  
  154. bossnia_01,0,0,0,0 boss_monster Beelzebub 1873,1,600000,0,"bossnia::OnBossnia_04"
  155. bossnia_01,0,0,0,0 boss_monster Nidhoggr's Shadow 2022,1,600000,0,"bossnia::OnBossnia_04"
  156. bossnia_01,0,0,0,0 boss_monster Wounded Morroc 1917,1,600000,0,"bossnia::OnBossnia_04"
  157. bossnia_01,0,0,0,0 boss_monster Valkyrie Randgris 1751,1,600000,0,"bossnia::OnBossnia_04"
  158. bossnia_01,0,0,0,0 boss_monster Great Demon Baphomet 1929,1,600000,0,"bossnia::OnBossnia_04"
  159. bossnia_01,0,0,0,0 boss_monster Ifrit 1832,1,600000,0,"bossnia::OnBossnia_04"
  160. bossnia_01,0,0,0,0 boss_monster Assassin Cross Eremes 1647,1,600000,0,"bossnia::OnBossnia_04"
  161. bossnia_01,0,0,0,0 boss_monster Whitesmith Howard 1648,1,600000,0,"bossnia::OnBossnia_04"
  162. bossnia_01,0,0,0,0 boss_monster High Wizard Kathryne 1651,1,600000,0,"bossnia::OnBossnia_04"
Advertisement
Add Comment
Please, Sign In to add comment