viewing paste Unknown #49266 | 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
prontera,144,179,5      script  Sample  933,{
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
}
if(Class != pvproomsjob[.@choice]){
mes "You are not of Class "+jobname(.pvproomsjob[.@choice]);
}
mapannounce .mapname$[.@choice],strcharinfo(0)+" Entered the PvP Room.",0;
warp .mapname$[.@choice],0,0;
 
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.
}
Viewed 114 times, submitted by Pneuma.