Advertisement
Guest User

pvp_warper.txt

a guest
Apr 29th, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.73 KB | None | 0 0
  1. // Made by iTouch
  2. // ----------------------------------------------------------------------------
  3. // Ultimate PvP Warper ver. 1
  4. // Features:
  5. // Baby PvP Room
  6. // PvP Square(Every 2 days Random PvP Room)
  7. // PvP Nightmare
  8. // PvP Lowlvl( Supports 1 - 150 Lvl)
  9. // PvP No Potion (Berrys , Ygg seed , Any potions , etc. are restricted)
  10. // PvP Non Donator (Got Items are restricted here)
  11. // -----------------------------------------------------------------------------
  12. // ver. 2 update idea:
  13. // Adding a PvP Room that removes the buffs of the player when entering the room
  14. // Adding a PvP Room for GM's Only so GM's will have fun
  15. // -----------------------------------------------------------------------------
  16. // Special thanks to:
  17. // icescope of eAthena for helping me configuring the error at PvP Square
  18. // -----------------------------------------------------------------------------
  19.  
  20. //Mapflags
  21. guild_vs2   mapflag pvp
  22. guild_vs2   mapflag nobranch
  23. guild_vs2   mapflag nopenalty
  24. guild_vs2   mapflag pvp_noguild
  25. guild_vs2-1 mapflag pvp_nightmaredrop   random,equip,300
  26. guild_vs2-1 mapflag nobranch
  27. guild_vs2-1 mapflag nopenalty
  28. guild_vs2-1 mapflag pvp_noguild
  29. guild_vs2-2 mapflag pvp
  30. guild_vs2-2 mapflag nopenalty
  31. guild_vs2-2 mapflag nobranch
  32. guild_vs2-2 mapflag pvp_noguild
  33.  
  34. prontera.gat,165,164,4  script  Ultimate PvP Warper 966,{
  35.  
  36.     mes "[PvP Warper]";
  37.     mes "which room you want to join?";
  38.     switch(select("PVP Square ["+getmapusers("guild_vs2")+"/20]:PVP Nightmare ["+getmapusers("guild_vs2-1")+"/20]:Baby Room ["+getmapusers("guild_vs2-2")+"/20]")) {
  39.     case 1: // PVP NoPotion
  40.         if (getmapusers("guild_vs2") > 99) callsub S_full;
  41.         for( set .@i,0; .@i<getarraysize(.NoPotion_ids); set .@i,.@i+1 ) {
  42.             if (countitem(.NoPotion_ids[.@i])) {
  43.                 mes "You can not bring potions in this pvp.";
  44.                 close;
  45.             }
  46.         }
  47.         callsub S_payment;
  48.         warp "guild_vs2",0,0;
  49.         end;
  50.  
  51.     case 2: // PVP NoPotion
  52.         if (getmapusers("guild_vs2-1") > 99) callsub S_full;
  53.         for( set .@i,0; .@i<getarraysize(.NoPotion_ids); set .@i,.@i+1 ) {
  54.             if (countitem(.NoPotion_ids[.@i])) {
  55.                 mes "You can not bring potions in this pvp.";
  56.                 close;
  57.             }
  58.         }
  59.         callsub S_payment;
  60.         warp "guild_vs2-1",0,0;
  61.         end;
  62.        
  63.     case 3: // Baby PvP Room
  64.         if (getmapusers("pvp_n_3-3") > 99) callsub S_full;
  65.         if (Class < 4023 || Class > 4045) goto L_NotBaby;
  66.         callsub S_payment;
  67.         warp "pvp_n_3-3",0,0;
  68.         end;
  69. L_NotBaby:
  70.         mes "Only baby can access";
  71.         close; 
  72.  
  73.     }
  74.  
  75. S_full:
  76.     mes "I'm sorry this room is full ";
  77.     mes "Come Later";
  78.     close;
  79. S_payment:
  80.     if (Zeny < (98*BaseLevel + 0)) {
  81.         mes "Not with you don't have enough zeny";
  82.         mes "It cost you" + (98*BaseLevel + 0) + "to enter";
  83.         close;
  84.     }
  85.     set Zeny, Zeny - (98*BaseLevel + 0);
  86.     return;
  87.  
  88. OnInit:
  89.        waitingroom " P v P  R O O M ",0;
  90.     end;
  91.  
  92.     // items not allowed in PVP NoPotion
  93.     setarray .NoPotion_ids[0], 607, 608;
  94.  
  95.     // items not allowed in Non Donator PVP
  96.     setarray .NoDonator_ids[0], 2410, 1530;
  97.     end;
  98. }
  99.  
  100. moscovia.gat,226,198,4  duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#1   966
  101. alberta.gat,110,140,3   duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#3   966 // Kliwa
  102. aldebaran.gat,147,115,1 duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#4   965 // Kliwa
  103. amatsu.gat,207,86,3 duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#5   966 // Kliwa
  104. ayothaya.gat,155,117,2  duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#6   966 // Kliwa
  105. comodo.gat,206,80,4 duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#7   966 // Kliwa
  106. einbech.gat,198,83,4    duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#8   966 // Taas Kaliwa
  107. einbroch.gat,174,172,5  duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#9   966 // Taas Kaliwa
  108. geffen.gat,124,68,4 duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#10  966
  109. gonryun.gat,162,120,4   duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#11  966
  110. hugel.gat,91,158,5  duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#12  966
  111. izlude.gat,134,120,4    duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#13  966
  112. lighthalzen.gat,166,101,4   duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#14  966
  113. louyang.gat,214,120,5   duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#15  966
  114. xmas.gat,154,136,4  duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#16  966
  115. morocc.gat,163,97,4 duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#17  966
  116. payon.gat,148,226,4 duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#18  966
  117. rachel.gat,135,115,4    duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#19  966
  118. veins.gat,219,127,4 duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#20  966
  119. yuno.gat,163,170,4  duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#21  966
  120. umbala.gat,106,159,3    duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#22  966
  121. poring_c02,139,81,4 duplicate(Ultimate PvP Warper)  Ultimate PvP Warper#23  966
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement