Hi how to add room names so people can choose map and enter to it
- script PvpRotative -1,{
OnInit:
// ======================================
// Configurations ***********************
// ======================================
// Which map will be on the rotation?
setarray .lista$[0],"guild_vs3","pvp_y_3-2","guild_vs4" ,"pvp_y_1-4";
// From how much time to time will the maps change? (Standard value 30 minutes/18000000)
// WARNING, DO NOT SET VALUES HERE SMALLER THAN 60000 (1 Minute).
set .rotatetime, 4500000;
// ======================================
set $@lista$, ""+.lista$[0]+"";
set .count, getarraysize(.lista$);
for( set .@i,0; .@i < .count; set .@i, .@i+1 ){
sleep .rotatetime-60000;
mapannounce ""+.lista$[.@i]+"","The PVP map will change in 30 seconds.",8;
sleep 30000;
mapannounce ""+.lista$[.@i]+"","The PVP map will change in 20 seconds.",8;
sleep 20000;
mapannounce ""+.lista$[.@i]+"","The PVP map will change in 10 seconds.",8;
sleep 10000;
if(.lista$[.@i] == .lista$[.count-1]){
mapwarp ""+.lista$[.@i]+"",""+.lista$[0]+"",0,0;
set $@lista$, ""+.lista$[0]+"";
set .@i,-1;
}
else{
mapwarp ""+.lista$[.@i]+"",""+.lista$[.@i+1]+"",0,0;
set $@lista$, ""+.lista$[.@i+1]+"";
}
}
}
prontera,129,215,5 script PvP Keeper 843,{
mes "[PvP Keeper]";
mes "Ready for a bloody";
mes "and glorious battle today?";
if (select("Enter PVP. ["+getmapusers( $@lista$ ) +"]:I'm out of potions today.") == 1) {
warp $@lista$,0,0;
announce strcharinfo(0)+" has entered PVP! at "+$@lista$,0;
end;
}
next;
mes "[PvP Keeper]";
mes "Haha!~";
mes "It's okay to be scared!!";
mes "HAHAHAHAHAHA!";
close;
}
Question
elmucho
Hi how to add room names so people can choose map and enter to it
- script PvpRotative -1,{ OnInit: // ====================================== // Configurations *********************** // ====================================== // Which map will be on the rotation? setarray .lista$[0],"guild_vs3","pvp_y_3-2","guild_vs4" ,"pvp_y_1-4"; // From how much time to time will the maps change? (Standard value 30 minutes/18000000) // WARNING, DO NOT SET VALUES HERE SMALLER THAN 60000 (1 Minute). set .rotatetime, 4500000; // ====================================== set $@lista$, ""+.lista$[0]+""; set .count, getarraysize(.lista$); for( set .@i,0; .@i < .count; set .@i, .@i+1 ){ sleep .rotatetime-60000; mapannounce ""+.lista$[.@i]+"","The PVP map will change in 30 seconds.",8; sleep 30000; mapannounce ""+.lista$[.@i]+"","The PVP map will change in 20 seconds.",8; sleep 20000; mapannounce ""+.lista$[.@i]+"","The PVP map will change in 10 seconds.",8; sleep 10000; if(.lista$[.@i] == .lista$[.count-1]){ mapwarp ""+.lista$[.@i]+"",""+.lista$[0]+"",0,0; set $@lista$, ""+.lista$[0]+""; set .@i,-1; } else{ mapwarp ""+.lista$[.@i]+"",""+.lista$[.@i+1]+"",0,0; set $@lista$, ""+.lista$[.@i+1]+""; } } } prontera,129,215,5 script PvP Keeper 843,{ mes "[PvP Keeper]"; mes "Ready for a bloody"; mes "and glorious battle today?"; if (select("Enter PVP. ["+getmapusers( $@lista$ ) +"]:I'm out of potions today.") == 1) { warp $@lista$,0,0; announce strcharinfo(0)+" has entered PVP! at "+$@lista$,0; end; } next; mes "[PvP Keeper]"; mes "Haha!~"; mes "It's okay to be scared!!"; mes "HAHAHAHAHAHA!"; close; }
Link to comment
Share on other sites
2 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.