OnTalk:
mes "[PvP Room Master]";
mes "Where do you wanna go?";
next;
switch ( select (
"Valkyrie [ "+getmapusers("valkyrie_vs")+" ]",
"Izlude [ "+getmapusers("pvp_y_1-2")+" ]",
"Prontera [ "+getmapusers("prt_pvp")+" ]",
"Death Match [ "+getmapusers("bat_cc2")+" ]",
// "PVP Ranking",
( getgmlevel() >= 99 ) ? "^FF0000[GM] Reset PVP Ranking^000000":""
)) {
case 1: // vakyrie
if (getmapusers("valkyrie_vs") > 99) callsub S_full;
if (BaseLevel <98) {
mes "Excuse me, but";
mes "did you not come prepared?";
mes "you need to be";
mes "atleast level 98 above!";
close;
}
warp "valkyrie_vs",0,0;
announce ""+strcharinfo(0)+" entered Valkyrie PVP ROOM !",bc_all,0xCCFFFF;
end;
case 2: // Izlude PVP Room
if (getmapusers("pvp_y_1-2") > 99) callsub S_full;
if (BaseLevel <98) {
mes "Excuse me, but";
mes "did you not come prepared?";
mes "you need to be";
mes "atleast level 98 above!";
close;
}
warp "pvp_y_1-2",0,0;
announce ""+strcharinfo(0)+" entered Izlude PVP ROOM !",bc_all,0xCCFFFF;
end;
case 3: // Prontera PVP Rooom
if (getmapusers("prt_pvp") > 99) callsub S_full;
if (BaseLevel <98) {
mes "Excuse me, but";
mes "did you not come prepared?";
mes "you need to be";
mes "atleast level 98 above!";
close;
}
warp "prt_pvp",0,0;
announce ""+strcharinfo(0)+" entered Prontera PVP ROOM !",bc_all,0xCCFFFF;
end;
case 4: // Death Match Arena
if (getmapusers("bat_cc2") > 99) callsub S_full;
if (BaseLevel <98) {
mes "Excuse me, but";
mes "did you not come prepared?";
mes "you need to be";
mes "atleast level 98 above!";
close;
}
warp "bat_cc2",0,0;
announce ""+strcharinfo(0)+" entered Death Match Arena !",bc_all,0xCCFFFF;
end;
default:
mes "[PvP Room Master]";
mes "PVP Ranking";
query_sql( "SELECT `name`,`pvp_kill` FROM `char` WHERE `pvp_kill` > 0 ORDER BY `pvp_kill` DESC LIMIT 10", .@name$, .@pvp_kill );
.@size = getarraysize( .@name$ );
for ( .@i = 0; .@i < .@size; .@i++ ) {
mes "["+(.@i + 1 )+"] "+.@name$[.@i]+" - "+.@pvp_kill[.@i]+" kill(s)";
}
break;
case 5:
mes "[PvP Room Master]";
mes "Reset Ranking? Action cant be undo. Confirm your action.";
if ( select( "Confirm","Cancel" ) == 1 ) {
query_sql( "UPDATE `char` SET `pvp_kill` = 0 WHERE `pvp_kill` > 0" );
mes "Done.";
}
break;
}
close;
Question
Sallycantdance
hello i would like to ask for help i want to disable ip in this certain pvp maps i search but its not working can someone help me
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.