how to make announce when player get in pvp map
this is official script
this is official script
function script F_PVP_FSRS {
if (getargcount()) {
if (BaseLevel < getarg(0) || BaseLevel > getarg(1)) {
mes "[PVP Fight Square Reception Staff]";
mes "Sorry, but you base level has to be between LV "+getarg(0)+" and LV "+getarg(1)+".";
close;
}
}
if (strnpcinfo(4) == "pvp_y_room") {
.@base$ = "pvp_y_"+strnpcinfo(2);
setarray .@maps$[0], .@base$+"-1", .@base$+"-2", .@base$+"-3", .@base$+"-4", .@base$+"-5";
setarray .@name$[0], "Prontera", "Izlude", "Payon", "Alberta", "Morroc";
setarray .@Limit[0], 128, 128, 128, 128, 128;
} else {
setarray .@maps$[0], "pvp_n_8-1", "pvp_n_8-2", "pvp_n_8-3", "pvp_n_8-4", "pvp_n_8-5";
setarray .@name$[0], "Sandwich", "Lock on", "Four Room", "Under cross", "Compass Room";
setarray .@Limit[0], 64, 32, 32, 32, 32;
}
for (.@i = 0; .@i<5; ++.@i)
.@menu$ += .@name$[.@i]+" ["+getmapusers(.@maps$[.@i])+" / "+.@Limit[.@i]+"]:";
.@menu$ += "Cancel.";
.@i = select(.@menu$)-1;
if (.@i == 5) close;
if (getmapusers(.@maps$[.@i]) >= .@Limit[.@i]) {
mes "[PVP Fight Square Reception Staff]";
mes "This map is currently full.";
close;
}
warp .@maps$[.@i],0,0;
end;
}