Advertisement
Guest User

pvp_warper.txt

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