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/100]",
"PvP Four Room [^FF0000" + getmapusers("pvp_n_1-3") + "^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") > 99) 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") > 29) 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;
}
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