Advertisement
hendra814

PVP Warper

Oct 1st, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.31 KB | None | 0 0
  1. prontera.gat,146,191,4  script  Ultimate PvP Warper 417,{
  2.     if (.pvp_square$=="") donpcevent "Ultimate PVP warper::OnClock0000";
  3.  
  4.     mes "[PvP Warper]";
  5.     mes "Arena mana yang kamu ingin masuk ?";
  6.     switch(select("All Job                 ["+getmapusers(.pvp_square$)+"/128]:Max lvl 99            ["+getmapusers("pvp_y_2-2")+"/128]:3rd Baby Class ["+getmapusers("pvp_y_1-2")+"/128]")) {
  7.     case 1: // PVP Square
  8.         if (getmapusers(.pvp_square$) > 127) callsub S_full;
  9.         warp .pvp_square$,0,0;
  10.         announce "Player "+strcharinfo(0)+" masuk dalam arena PVP All Job !!",bc_all;
  11.         end;
  12.  
  13.     case 2: // PVP Low Level
  14.         if (getmapusers("pvp_y_2-2") > 127) callsub S_full;
  15.         if (BaseLevel > 99) { // Edit 150 to any maximum Lvl of a player can enter this room
  16.             mes "Yang dapat masuk arena ini hanya Level 1 - 99";
  17.             close;
  18.         }
  19.         warp "pvp_y_2-2",0,0;
  20.         announce "Player "+strcharinfo(0)+" masuk dalam arena PVP Max lvl 99 !!",bc_all;
  21.         end;
  22.  
  23.     Case 3: // Baby Class
  24.         if (getmapusers("pvp_y_1-2") > 127) callsub S_full;
  25.         if (class < 4096 || class > 4112) goto L_NotBaby;
  26.         warp "pvp_y_1-2",0,0;
  27.         announce "Player "+strcharinfo(0)+" masuk dalam arena PVP 3rd Baby Class !!",bc_all;
  28.         end;
  29. L_NotBaby:
  30.         mes "Room ini hanya untuk job 3rd baby class";
  31.         close;
  32. }
  33.  
  34. S_full:
  35.         mes "Sorry, arena sudah full. Silakan coba sebentar lagi...";
  36.         close;
  37.  
  38. OnInit:
  39.     OnTimer5000:
  40.     delwaitingroom;
  41.     switch(rand(1,3)) {
  42. Case 1:
  43.     waitingroom getmapusers(.pvp_square$)+" player"+( getmapusers(.pvp_square$) > 1 ? "s":"") +" dalam arena All Job", 0;
  44.     goto Timer;
  45.     end;
  46.     break;
  47.  
  48. Case 2:
  49.     waitingroom getmapusers("pvp_y_2-2")+" player"+( getmapusers("pvp_y_2-2") > 1 ? "s":"") +" dalam arena Max lvl 99", 0; 
  50.     goto Timer;
  51.     end;
  52.     break;
  53.  
  54. Case 3:
  55.     waitingroom getmapusers("pvp_y_1-2")+" player"+( getmapusers("pvp_y_1-2") > 1 ? "s":"") +" dalam arena 3rd Baby Class", 0; 
  56.     goto Timer;
  57.     end;
  58.     break;
  59. Timer:
  60.     initnpctimer;
  61. }
  62.  
  63. OnClock0000:
  64.     // set the "PVP Square" map, based on day of the weeek
  65.     switch(gettime(4)) {
  66.     case 0: // Sunday
  67.     case 1: // Monday
  68.         set .pvp_square$, "pvp_y_7-2";
  69.         break;
  70.     case 2: // Tuesday
  71.     case 3: // Wednesday
  72.         set .pvp_square$, "guild_vs3";
  73.         break;
  74.     case 4: // Thursday
  75.     case 5: // Friday
  76.         set .pvp_square$, "pvp_y_7-2";
  77.         break;
  78.     case 6: // Saturday
  79.         set .pvp_square$, "guild_vs3";
  80.         break;
  81.     }
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement