yuhsing

Untitled

Jan 30th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.18 KB | None | 0 0
  1.  
  2.  
  3.  
  4. //_______ _______ ______
  5. //| __| __| __ \
  6. //| | | | | __ <
  7. //|_______|_______|______/
  8. //Good German Bread
  9.  
  10.  
  11. turbo_room,88,117,5 script War Event Warper 780,{
  12.  
  13.  
  14. if( Class == 4049 ){
  15. mes "[^00FF00War Event Warper^000000]";
  16. mes "Soul Linkers are not allowed to watch. Please change your avatar.";
  17. close;
  18. end;
  19. }
  20.  
  21. set .@n$,"[^00FF00War Event Warper^000000]";
  22.  
  23. setarray .@menu$[0],"GvG Map 1",
  24. "GvG Map 2",
  25. "GvG Map 3",
  26. "GvG Map 4",
  27. "GvG Map 5",
  28. "GvG Map 6",
  29. "GvG Map 7",
  30. "PvP Map - A (No1PK)",
  31. "PvP Map - B (No1PK)";
  32.  
  33. //added by me
  34.  
  35. if (gettimetick(2) - OB_time < 43200) goto free_ent;
  36.  
  37. mes .@n$;
  38. mes "Hello, I can warp you to any Event Map you choose to watch.";
  39. mes "Once inside you will be in ^0000FFOBSERVER MODE^000000 in complete hide, muted and some other capabilities disabled.";
  40. next;
  41. mes .@n$;
  42. mes "^FF0000NOTE:^000000 You must be without a ^FF0000Cart^000000, ^FF0000Falcon^000000, ^FF0000Guild^000000, ^FF0000Party^000000 and must have ^FF0000no item equipped^000000 or in ^FF0000inventory^000000 except for POD/s to enter.";
  43. next;
  44. mes .@n$;
  45. mes "Though going inside is not for free of course.";
  46. mes "I will need ^0000FFOne (1) POD Ticket^000000 as entrance fee valid for ^0000FFTwelve (12) hours^000000.";
  47. next;
  48. mes .@n$;
  49. mes "You can enter unlimited times and to different event maps but only within ^0000FFTwelve (12) hours^000000 or you must pay again. Just be sure to use the same character that paid the entrance fee or you will be charged once more.";
  50. mes "You will be kicked out of the map every one (1) hour to refresh but never worry, you may just re-enter again through me for free just as long as its within your ^0000FFtwelve (12) hour window^000000.";
  51. next;
  52. goto entobserve;
  53.  
  54. free_ent:
  55. mes .@n$;
  56. mes "Welcome back...";
  57. mes "Entrance is ^0000FFFREE^000000 for you for twelve (12) hours from the time you paid.";
  58. next;
  59.  
  60. entobserve:
  61. mes .@n$;
  62. mes "Let's go...";
  63. mes "Please choose the map you wish to enter to...";
  64. next;
  65. set .@menu_d$,"";
  66. for (set .@i,0; .@i < getarraysize($maps$); set .@i, .@i +1 )
  67. set .@menu_d$, .@menu_d$ +":^0000FF?^000000 "+ .@menu$[.@i] + "(^FF0000" + getmapusers($maps$[.@i]) + "^000000)";
  68. set .@menu_d$,.@menu_d$ +":^FF0000?^000000 Close";
  69. set .@m, select ( .@menu_d$ ) - 2;
  70.  
  71. if (.@m == (getarraysize(.@menu$))) close;
  72.  
  73. //if a player is in a party or guild he can not enter
  74. if (strcharinfo(1) != "" || strcharinfo(2) != "") {
  75. mes .@n$;
  76. mes (strcharinfo(1) != "") ? "I'm sorry, but you need to ^FF0000leave your Party^000000 to enter." : "I'm sorry, but you need to ^FF0000leave your Guild^000000 to enter.";
  77. close;
  78. }
  79.  
  80. if (checkcart() != 0) {
  81. mes .@n$;
  82. mes "I'm sorry, but you need to ^FF0000turn off your Cart^000000 to enter.";
  83. close;
  84. }
  85.  
  86. //pet check
  87. if (petstat(PET_LEVEL) != 0) {
  88. mes .@n$;
  89. mes "Sorry, pets are not allowed inside the areana.";
  90. close;
  91. }
  92.  
  93. if (Weight > 0) {
  94. mes .@n$;
  95. mes "You are heavy, please get rid of ALL your ^FF0000Equipped Items and Inventory^000000 except for ^FF0000POD/s^000000 to enter.";
  96. close;
  97. }
  98.  
  99. if (checkfalcon() != 0) {
  100. mes .@n$;
  101. mes "I'm sorry, but you need to get rid of your ^FF0000Falcon^000000 to enter.";
  102. close;
  103. }
  104.  
  105. // my addition
  106. if( (getcharid(3) == 2320617) || (getcharid(3) == 2018036) || (getcharid(3) == 2087421)) goto closed2;
  107.  
  108. if (gettimetick(2) - OB_time > 43200) {
  109.  
  110. mes .@n$;
  111. mes "Do you want to enter into: ^FF0000" + .@menu$[.@m] + "^000000?";
  112. mes "You will need a ^FF0000100,000,000 Zeny^000000 to enter.";
  113. next;
  114.  
  115. if (select("^FF0000?^000000 No, what a rip-off!","^00FF00?^000000 Sure I'll pay, I wanna watch!") == 2 ) {
  116.  
  117. if ( Zeny < 100000000 && gettimetick(2) - OB_time > 43200) {
  118. mes .@n$;
  119. mes "I'm sorry, but you will need a ^FF0000100,000,000 Zeny^000000 to enter.";
  120. close;
  121. }
  122.  
  123. set Zeny,Zeny - 100000000;
  124. mes .@n$;
  125. mes "Paid...";
  126. mes "You still have ^777777"+Zeny+" Zeny^000000 remaining in inventory.";
  127. mes "Please hit 'Close'.";
  128. logmes strcharinfo(0)+ " HAS PAID TO ENTER THE ARENA " + .@menu$[.@m];
  129. set OB_time,gettimetick(2);
  130.  
  131. } else {
  132. mes .@n$;
  133. mes "Ok. bye then.";
  134. close;
  135.  
  136. }
  137. }
  138.  
  139. closed2:
  140. close2;
  141. warp $maps$[.@m],0,0;
  142. set OS_warp,1;
  143. sleep2 3600000;
  144. getmapxy(.@current_map$,.@current_x,.@current_y,0);
  145. for (set .@i,0; .@i < getarraysize($maps$); set .@i, .@i +1 )
  146.  
  147. if (.@current_map$ == $maps$[.@i]) goto L_warpOut;
  148. end;
  149.  
  150. L_warpOut:
  151. warp "Save",0,0;
  152. end;
  153.  
  154.  
  155. OnInit:
  156. setarray $maps$[0],"guild_vs1",
  157. "guild_vs2",
  158. "guild_vs3",
  159. "guild_vs4",
  160. "guild_vs5",
  161. "guild_vs1-1",
  162. "guild_vs2-1",
  163. "pvp_2vs2",
  164. "poring_w02";
  165. end;
  166. }
  167.  
  168.  
  169.  
  170. //auto @mute2
  171.  
  172. - script auto_mute2 -,{
  173.  
  174. OnPCLoadMapEvent:
  175.  
  176. getmapxy(.@current_map$,.@current_x,.@current_y,0);
  177.  
  178. for (set .@i,0; .@i < getarraysize($maps$); set .@i, .@i +1 )
  179.  
  180. if (.@current_map$ == $maps$[.@i] && getgmlevel() < 9 && OS_warp) {
  181.  
  182. set OS_warp,0;
  183. goto L_autoMute;
  184.  
  185. }
  186.  
  187. end;
  188.  
  189. L_autoMute:
  190.  
  191. atcommand "@mute2 120 "+strcharinfo(0);
  192.  
  193. end;
  194.  
  195. }
Advertisement
Add Comment
Please, Sign In to add comment