each Job Class got 1 Room ??
try this
prontera,155,181,5 script Sample 733,{
set .name$,"[PvP Room]";
set .@menu$, "All Jobs:";
for( set .@i, 1; .@i < getarraysize(.pvproomsjob); set .@i, .@i+1) {
set .@menu$, .@menu$ + "^FF0000[" + .@i + "] ^0000FF"+jobname(.pvproomsjob[.@i])+"^000000:";
}
set .@choice, select(.@menu$) -1;
if(!.@choice) {
warp .mapname$[.@choice],0,0; // Edit map for All Jobs
end;
}
if(Class != .pvproomsjob[.@choice]) {
mes "You are not of Class "+jobname(.pvproomsjob[.@choice]);
close;
}
mapannounce .mapname$[.@choice],strcharinfo(0) + " Entered the PvP Room.",0;
warp .mapname$[.@choice],0,0;
end;
OnInit:
setarray .pvproomsjob[1],4009,4016,4010,4017,4011,4018,4012,4019,4013,4020; // Put job id's here
setarray .mapname$[0],"guild_vs5","pvp_y_7-2","pvp_y_6-2","pvp_y_5-2","pvp_y_4-2","pvp_y_3-2","pvp_y_2-2","pvp_y_1-2","pvp_y_8-2","pvp_y_6-5","pvp_y_7-5"; // Put map name for those jobs.
end;
}
the 1st Map is "All Job Class"
the rest will follow the Job Id Lists