viewing paste pvp_master | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
prontera,147,172,5  script  Ultimate PvP Warper 555,{
 
    mes "[PvP Warper]";
    mes "Which arena do you want to go to?";
    switch(select("PVP Square ["+getmapusers("guild_vs2")+"/100]:^FF0000Deathmatch PVP^000000 ["+getmapusers("guild_vs3")+"/100]:Guild vs Guild ["+getmapusers("guild_vs4")+"/100]:PVP Champion ["+getmapusers("guild_vs1")+"/10]:PVP Izlude NoPotion ["+getmapusers("pvp_y_8-2")+"/100]:Baby PvP Room ["+getmapusers("pvp_y_1-2")+"/100]")) {
    case 1: // PVP Square
        if (getmapusers("guild_vs2") > 99) callsub S_full;
        announce "Someone Enter PVP Square ",bc,0x33FF33;
        callsub S_payment;
        warp "guild_vs2",0,0;
        end;
 
    case 2: // PVP Insane
        if (getmapusers("guild_vs3") > 99) callsub S_full;
        for( set .@i,0; .@i<getarraysize(.NoPotion_ids); set .@i,.@i+1 ) {
            if (countitem(.NoPotion_ids[.@i])) {
                mes "You can not bring potions in this pvp.";
                close;
            }
        }
        announce "Someone Enter PVP Deathmatch ",bc,0x33FF33;
        callsub S_payment;
        warp "guild_vs3",0,0;
        sleep2 100;
        sc_end SC_ALL;
        sleep2 1000;
        atcommand "@speed 50";
        end;
 
    case 3: // PVP Guild
        if (getmapusers("guild_vs4") > 99) callsub S_full;
        announce "Someone Enter Guild vs Guild ",bc,0x33FF33;
        callsub S_payment;
        warp "guild_vs4",0,0;
        end;
 
    case 4: // PVP Champion
        if (getmapusers("guild_vs5") > 9) callsub S_full;
        if (Class == 4016 || Class == 4038) {
        announce "Someone Enter Champion PVP ",bc,0x33FF33;
        callsub S_payment;
        warp "guild_vs1",0,0;
        end;
        }
        mes "You are not Champion !";
        close;
 
    case 5: // PVP Izlude NoPotion
        if (getmapusers("pvp_y_8-2") > 99) callsub S_full;
        for( set .@i,0; .@i<getarraysize(.NoPotion_ids); set .@i,.@i+1 ) {
            if (countitem(.NoPotion_ids[.@i])) {
                mes "You can not bring potions in this pvp.";
                close;
            }
        }
        announce "Someone Enter PVP Izlude NoPotion ",bc,0x33FF33;
        callsub S_payment;
        warp "pvp_y_8-2",0,0;
        end;
 
//  case 6: // Non Donator PVP
//      if (getmapusers("guild_vs1") > 99) callsub S_full;
//      for( set .@i,0; .@i<getarraysize(.NoDonator_ids); set .@i,.@i+1 ) {
//          if (countitem(.NoDonator_ids[.@i])) {
//              mes "You can not bring God items in this pvp.";
//              close;
//          }
//      }
//      announce "Someone Enter Non Donator PVP",bc,0x33FF33;
//      callsub S_payment;
//      warp "1@orcs",0,0;
//      end;
    case 6: // Baby PvP Room
        if (getmapusers("pvp_y_1-2") > 99) callsub S_full;
        if (Class < 4023 || Class > 4045) goto L_NotBaby;
        announce "Someone Enter Baby PVP Room",bc,0x33FF33;
        callsub S_payment;
        warp "pvp_y_1-2",0,0;
        end;
L_NotBaby:
        mes "Only baby can enter this room";
        close;
 
L_NotCham:
        mes "Only champion can enter this room";
        close;
    }
 
S_full:
    mes " ";
    mes "I'm sorry, this arena is full.  Please try again later...";
    close;
S_payment:
    if (Zeny < (0*BaseLevel + 0)) {
        mes "You don't have enough zeny.";
        mes "It costs "+(0*BaseLevel + 0)+" zeny for you to enter.";
        close;
    }
    set Zeny, Zeny - (0*BaseLevel + 0);
    return;
 
OnPCDieEvent:
if(strcharinfo(3) == "guild_vs3") {
    dispbottom "You will respawn in 3 Seconds.";
    sleep2 3000;
    atcommand "@alive";
    atcommand "@heal";
    warp "guild_vs3",0,0;
    atcommand "@speed 50";
    end;
}
 
    // items not allowed in PVP NoPotion
    setarray .NoPotion_ids[0], 607, 608;
 
//  // items not allowed in Non Donator PVP
//  setarray .NoDonator_ids[0], 2410, 1530;
//  end;
 
    OnInit:
    waitingroom "[ PVP ROOM ]",0;
    end;
 
 
}
 
// MAPFLAG
 
pvp_y_8-2   mapflag nocommand   60
pvp_y_8-2   mapflag nosave
pvp_y_8-2   mapflag noteleport
pvp_y_8-2   mapflag nodrop
 
pvp_y_1-2   mapflag nocommand   60
pvp_y_1-2   mapflag nosave
pvp_y_1-2   mapflag noteleport
pvp_y_1-2   mapflag nodrop
 
guild_vs1   mapflag nocommand   60
guild_vs1   mapflag nosave
guild_vs1   mapflag noteleport
guild_vs1   mapflag nodrop
 
guild_vs2   mapflag nocommand   60
guild_vs2   mapflag nosave
guild_vs2   mapflag noteleport
guild_vs2   mapflag nodrop
 
guild_vs3   mapflag nocommand   60
guild_vs3   mapflag nosave
guild_vs3   mapflag noteleport
guild_vs3   mapflag nodrop
 
guild_vs4   mapflag nocommand   60
guild_vs4   mapflag nosave
guild_vs4   mapflag noteleport
guild_vs4   mapflag nodrop
 
guild_vs5   mapflag nocommand   60
guild_vs5   mapflag nosave
guild_vs5   mapflag noteleport
guild_vs5   mapflag nodrop
Viewed 1055 times, submitted by Guest.