viewing paste Unknown #14825 | Athena

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
prontera,138,182,5      script  PVP Warper      105,{
        mes "[PvP Warper]";
        if ( agitcheck() || agitcheck2() ) {
                mes "Sorry, PVP Rooms are Locked During WOE.";
                close;
        }
        mes "Which arena do you want to go to?";
        switch ( select (
                "PvP Guild Room 3 [^FF0000" + getmapusers("guild_vs3") + "^000000/100]",
                "PvP Sandwich Room [^FF0000" + getmapusers("pvp_n_1-1") + "^000000/60]",
                "PvP Four Room [^FF0000" + getmapusers("pvp_n_1-3") + "^000000/50]",
                "PvP Izlude Room [^FF0000" + getmapusers("pvp_y_1-2") + "^000000/30]",
                "View PvP Stats Of My Char" ) ) {
        default: // VIEW STATUS
                mes "Your PvP stats are:";
                query_sql "select kills, deaths from `char` where char_id = "+ getcharid(0), .@kills, .@deaths;
                mes "^009500     Kills: " + .@kills;
                mes "^FF0000     Deaths: " + .@deaths;
                close;
 
 
        case 1: // GVG
        if (getmapusers("guild_vs3") > 99) callsub S_full;
                //announce "[ "+strcharinfo(0)+" ] from the Guild [ "+strcharinfo(2)+" ] has entered to the PvP Arena Room",bc_map,0x81DAF5;
                warp "guild_vs3",0,0;
                end;
 
 
        case 2: // GVG
        if (getmapusers("pvp_n_1-1") > 59) callsub S_full;
                //announce "[ "+strcharinfo(0)+" ] from the Guild [ "+strcharinfo(2)+" ] has entered to the PvP Arena Room",bc_map,0x81DAF5;
                warp "pvp_n_1-1",0,0;
                end;
 
        case 3: // GVG
        if (getmapusers("pvp_n_1-3") > 49) callsub S_full;
                //announce "[ "+strcharinfo(0)+" ] from the Guild [ "+strcharinfo(2)+" ] has entered to the PvP Arena Room",bc_map,0x81DAF5;
                warp "pvp_n_1-3",0,0;
                end;
 
        case 4: // GVG
        if (getmapusers("pvp_y_1-2") > 39) callsub S_full;
                //announce "[ "+strcharinfo(0)+" ] from the Guild [ "+strcharinfo(2)+" ] has entered to the PvP Arena Room",bc_map,0x81DAF5;
                warp "pvp_y_1-2",90,130;
                dispbottom "You are given 5 seconds to run!";
                atcommand "@hide";
                sleep2 5000;
                atcommand "@hide";
                end;
 
        }
 
        close;
 
S_full:
        mes " ";
        mes "I'm sorry, this arena is full. Please try again later...";
        close;
 
 
 
//======================================
//      OnPCKillEvent
//======================================
 
OnPCKillEvent:
        .@map$ = strcharinfo(3);
        .@killer$ = strcharinfo(0);
        .@killed$ = rid2name( killedrid );
//      if ( killedrid == getcharid(3) ) end; // suicide seems to be counted in this script ...
//      if ( getmapflag( .@map$, mf_gvg ) || getmapflag( .@map$, mf_gvg_castle ) || getmapflag( .@map$, mf_pvp ) ) { // on PVP/GVG maps, and during WoE
//      getmapflag( .@map$, mf_battleground ) // <-- left this one out ? XD
                query_sql "update `char` set kills = kills +1 where char_id = "+ getcharid(0);
                query_sql "select kills from `char` where char_id = "+ getcharid(0), .@kills;
                dispbottom "You have killed "+ .@killed$ +". [Total Kills = "+ .@kills +"]";
                attachrid killedrid;
                query_sql "update `char` set deaths = deaths +1 where char_id = "+ getcharid(0);
                query_sql "select deaths from `char` where char_id = "+ getcharid(0), .@deaths;
                dispbottom "You have been killed by "+ .@killer$ +". [Total Deaths = "+ .@deaths +"]";
        }
        end;
}
guild_vs3       mapflag pvp
guild_vs3       mapflag nobranch
guild_vs3       mapflag nomemo
guild_vs3       mapflag noreturn
guild_vs3       mapflag noteleport
guild_vs3       mapflag nowarpto
guild_vs3       mapflag nowarp
guild_vs3       mapflag nosave
guild_vs3       mapflag noexppenalty
guild_vs3       mapflag notrade
guild_vs3       mapflag novending
guild_vs3       mapflag nomobloot
guild_vs3       mapflag nomvploot
guild_vs3       mapflag nodrop
pvp_n_1-1       mapflag pvp
pvp_n_1-1       mapflag nobranch
pvp_n_1-1       mapflag nomemo
pvp_n_1-1       mapflag noreturn
pvp_n_1-1       mapflag noteleport
pvp_n_1-1       mapflag nowarpto
pvp_n_1-1       mapflag nowarp
pvp_n_1-1       mapflag nosave
pvp_n_1-1       mapflag noexppenalty
pvp_n_1-1       mapflag notrade
pvp_n_1-1       mapflag novending
pvp_n_1-1       mapflag nomobloot
pvp_n_1-1       mapflag nomvploot
pvp_n_1-1       mapflag nodrop
pvp_n_1-3       mapflag pvp
pvp_n_1-3       mapflag nobranch
pvp_n_1-3       mapflag nomemo
pvp_n_1-3       mapflag noreturn
pvp_n_1-3       mapflag noteleport
pvp_n_1-3       mapflag nowarpto
pvp_n_1-3       mapflag nowarp
pvp_n_1-3       mapflag nosave
pvp_n_1-3       mapflag noexppenalty
pvp_n_1-3       mapflag notrade
pvp_n_1-3       mapflag novending
pvp_n_1-3       mapflag nomobloot
pvp_n_1-3       mapflag nomvploot
pvp_n_1-3       mapflag nodrop
pvp_y_1-2       mapflag pvp
pvp_y_1-2       mapflag nobranch
pvp_y_1-2       mapflag nomemo
pvp_y_1-2       mapflag noreturn
pvp_y_1-2       mapflag noteleport
pvp_y_1-2       mapflag nowarpto
pvp_y_1-2       mapflag nowarp
pvp_y_1-2       mapflag nosave
pvp_y_1-2       mapflag noexppenalty
pvp_y_1-2       mapflag notrade
pvp_y_1-2       mapflag novending
pvp_y_1-2       mapflag nomobloot
pvp_y_1-2       mapflag nomvploot
pvp_y_1-2       mapflag nodrop
pvp_y_1-2       mapflag pvp_noguild 0
Viewed 284 times, submitted by unknown.