Advertisement
Guest User

Untitled

a guest
Feb 12th, 2012
2,131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.80 KB | None | 0 0
  1. ////////////////////////////////////////////////
  2. // Arena Control
  3. // Arena map: onevsone
  4. // Script by: Ngek202/Narugakuruga
  5. // Script for AKARO
  6. // Date Sept 23 2009
  7. // Operation: Manual
  8. ///////////////////////////////////////////////
  9. - script arena -1,{
  10. // Settings
  11. // GM LVL Allowed
  12. set .gmlvl,90;
  13.  
  14. OnInit:
  15. disablenpc "Arena Registrar#1";
  16. setcell "onevsone",87,142,108,145,cell_walkable,0;
  17. setcell "onevsone",139,142,160,145,cell_walkable,0;
  18. enablenpc "WALL#1";
  19. enablenpc "WALL#2";
  20. enablenpc "WALL#3";
  21. enablenpc "WALL#4";
  22. enablenpc "WALL#5";
  23. enablenpc "WALL#6";
  24. enablenpc "WALL#7";
  25. enablenpc "WALL#8";
  26. end;
  27.  
  28. OnWhisperGlobal:
  29. if(getgmlevel() <= .gmlvl) goto N_Authority;
  30. mes "[Arena Control]";
  31. mes "Hi GM "+strcharinfo(0)+" what do you want to do?.";
  32. switch(select("Check Team [A] Area:Check Team [B] Area:Activate Registration NPC:Wall Block Control:Distribute Supplies:Buffer Control")) {
  33. case 1:
  34. warp "onevsone",75,143;
  35. close;
  36. end;
  37. case 2:
  38. warp "onevsone",174,144;
  39. close;
  40. end;
  41. case 3:
  42. next;
  43. mes "Activate Registration Manager?.";
  44. menu "Enable",-,"Disable",A_Disable;
  45. enablenpc "Arena Registrar#1";
  46. announce "Server: Arena Registrar has been Activated Participants can now Submit their Permits.",0;
  47. dispbottom "Arena Registrar Activated.";
  48. close;
  49. case 4:
  50. mes "Wall Blockade Control.";
  51. menu "Enable",-,"Disable",W_Disable;
  52. setcell "onevsone",87,142,108,145,cell_walkable,0;
  53. setcell "onevsone",139,142,160,145,cell_walkable,0;
  54. enablenpc "WALL#1";
  55. enablenpc "WALL#2";
  56. enablenpc "WALL#3";
  57. enablenpc "WALL#4";
  58. enablenpc "WALL#5";
  59. enablenpc "WALL#6";
  60. enablenpc "WALL#7";
  61. enablenpc "WALL#8";
  62. mapannounce "onevsone","Walls are now Enabled.",0;
  63. goto OnWhisperGlobal;
  64. close;
  65. case 5:
  66. mes "Distribute Supply?";
  67. menu "Yes",-,"No",N_Dist;
  68. atcommand "@itemmap onevsone 607 1"; // this is a custom atcommand you need something like this or getitemmap2 // replace 607 for your Supply Item.
  69. mapannounce "onevsone","Supplies had been Distributed.",0;
  70. goto OnWhisperGlobal;
  71. close;
  72. case 6:
  73. mes "Buffer Control";
  74. menu "Enable",-,"Disable",B_Disable;
  75. enablenpc "Arena Buffer#1";
  76. enablenpc "Arena Buffer#2";
  77. mapannounce "onevsone","Buffers Activated! you can now Buffs.",0;
  78. goto OnWhisperGlobal;
  79. close;
  80. end;
  81.  
  82. W_Disable:
  83. setcell "onevsone",87,142,108,145,cell_walkable,1;
  84. setcell "onevsone",139,142,160,145,cell_walkable,1;
  85. disablenpc "WALL#1";
  86. disablenpc "WALL#2";
  87. disablenpc "WALL#3";
  88. disablenpc "WALL#4";
  89. disablenpc "WALL#5";
  90. disablenpc "WALL#6";
  91. disablenpc "WALL#7";
  92. disablenpc "WALL#8";
  93. mapannounce "onevsone","Walls are now Disabled.",0;
  94. goto OnWhisperGlobal;
  95. close;
  96.  
  97. N_Authority:
  98. mes "[Arena Control]";
  99. mes "Sorry GM "+strcharinfo(0)+". you are not Authorized to use Arena Control.";
  100. dispbottom "Not enough GM Level to use this Control.";
  101. close;
  102.  
  103. A_Disable:
  104. dispbottom "Arena Registration is Disabled.";
  105. disablenpc "Arena Registrar#1";
  106. next;
  107. goto OnWhisperGlobal;
  108. close;
  109.  
  110. N_Dist:
  111. goto OnWhisperGlobal;
  112. close;
  113.  
  114. B_Disable:
  115. mapannounce "onevsone","Buffers are now Disabled.",0;
  116. disablenpc "Arena Buffer#1";
  117. disablenpc "Arena Buffer#2";
  118. goto OnWhisperGlobal;
  119. close;
  120. }
  121. }
  122.  
  123. // Arena Registrar
  124. // Suggestion: you must modify this to check the party size I don't know how to do that atm. :(
  125. // and add a way also to select Teams if they will be Team A or B.
  126. // not so knowledgeable about those script commands :(
  127. prontera,185,178,5 script Arena Registrar#1 415,{
  128.  
  129. // Checks if you are in a Party.
  130. if( !getcharid(1) ) {
  131. mes "You are not in a party!";
  132. close;
  133. }
  134. // Checks if you are the Party Leader.
  135. if( GetPartyLeader(getcharid(1),2) == getcharid(0) ) goto P_Count;
  136. mes "I'm sorry but you are not the Party Leader!.";
  137. close;
  138. // Permit for Joining the Arena
  139. P_Count:
  140. if(countitem(7160) < 1) goto P_None; // Change 7160 to Permit
  141. mes "[Arena Registrar]";
  142. mes "Checked!";
  143. next;
  144. mes "I shall warp you now to the Arena";
  145. next;
  146. warp "onevsone",126,151;
  147. sc_end SC_ALL;
  148. close;
  149.  
  150. P_None:
  151. mes "[Arena Registrar]";
  152. mes "You don't have a Permit";
  153. close;
  154. }
  155.  
  156. onevsone,73,150,5 script Arena Buffer#1 864,{
  157.  
  158. sc_start SC_BLESSING,0,10;
  159. sc_start SC_INCREASEAGI,0,10;
  160. sc_start SC_ANGELUS,0,10;
  161. skilleffect 34,0;
  162. skilleffect 29,0;
  163. close;
  164.  
  165. }
  166.  
  167. onevsone,176,149,3 duplicate(Arena Buffer#1) Arena Buffer#2 864
  168.  
  169. onevsone,159,145,0 script WALL#1 1905,{
  170. }
  171. onevsone,159,144,0 duplicate(WALL#1) WALL#2 1905
  172. onevsone,159,143,0 duplicate(WALL#1) WALL#3 1905
  173. onevsone,159,142,0 duplicate(WALL#1) WALL#4 1905
  174. onevsone,88,145,0 duplicate(WALL#1) WALL#5 1905
  175. onevsone,88,144,0 duplicate(WALL#1) WALL#6 1905
  176. onevsone,88,143,0 duplicate(WALL#1) WALL#7 1905
  177. onevsone,88,142,0 duplicate(WALL#1) WALL#8 1905
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement