This script not warp player after number 3 in line! help me!i need to warp to player number 4 , 5 , 6 . this is queue for enter to event!
prontera,152,186,4 script SpeedTest 123,{
mes "Wanna sign up";
if(select("yes:no")==2) close;
if(getarraysize(.signup_A) == 128) {mes "Sorry the whole queue is full"; close; }
set .signup_A[getarraysize(.signup_A)],getcharid(0); //Sets the player RID in the queue
mes "You are now signed to the BG event";
dispbottom "Sua Posição na fila é : [ "+getarraysize(.signup_A)+" ]";
close2;
if (.bgon>=1) {end; }//If battlegrounds is ongoing script stops.
while (1) {
set .@problem,0;
if(getarraysize(.signup_A) >= 3) { //Check array size
for ( set .@i,0; .@i<3; set .@i,.@i+1) { //Loop through the first three values
if(!isloggedin(.signup_A[.@i])) { //Check if player is logged in, if not proceed to do the following.
deletearray .signup[.@i],1; //Deletes the player from array and moves other values up
set .@problem,1; //A check to indicate that someone in the first three spots wasn't logged.
}
}
}
else if (getarraysize(.signup_A) < 3){ end; }//If less than three people in array end the script.
if (!.@problem){ break; }//Break out of the loop if there weren't any issues
//Warp characters to BG map
warpchar "izlude",155,187,.signup_A[0];
warpchar "izlude",155,187,.signup_A[1];
warpchar "izlude",155,187,.signup_A[2];
deletearray .signup_A[0],3;
set .bgon,1;
initnpctimer "MCTimer5m";
end;
} }
izlude,1,1,1 script MCTimer5m -1,{
OnTimer5000:
end;
OnTimer11000:
initnpctimer "MCTimer5m2";
end;
}
izlude,1,1,1 script MCTimer5m2 -1,{
OnTimer1000:
if( getmapusers("izlude") <= 1 ) goto L_WinR;
initnpctimer "MCTimer5m";
end;
L_WinR:
stopnpctimer;
set .bgon,0;
announce "Outra partida!",8;
mapwarp "izlude","prontera",155,180;
end;
}
Edited by brunoshp Please use codebox for content longer than 10 lines.
Question
brunoshp
This script not warp player after number 3 in line! help me! i need to warp to player number 4 , 5 , 6 . this is queue for enter to event!
Edited by brunoshpPlease use codebox for content longer than 10 lines.
Link to comment
Share on other sites
16 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.