Queue System

You can use bg_leave script command for both purposes. I'd need your script to know what you're doing since that is just a queuing system but can use more variables.

If you're using Hercules queue system, you could easily queueremove that guy if needed.

 
 if player log out he go out queue or arena. and dead too.
 
Last edited by a moderator:
createbgid <respawn map>, <respawn x>, <respawn y>, <On Quit event>, <On Death event>;
set .green, createbgid( "izlude",136,117, strnpcinfo(0)+"::OngreenQuit", strnpcinfo(0)+"::OngreenDead" );set .black, createbgid( "izlude",136,117, strnpcinfo(0)+"::OnblackQuit", strnpcinfo(0)+"::OnblackDead" );


so... ??? ( I am not really sure )

Code:
OngreenDead:OngreenQuit:OnblackQuit:OnblackDead:    if (getcharid(4)) bg_leave;	   warp "SavePoint",0,0;	   end;
 
Last edited by a moderator:
if i put 

warp "SavePoint",0,0; 
he dont play next event, he registred but not warp others!

when he dead or logout he need to go out to the queue.

 
OnPCDieEvent: getmapxy(@map$,$@x,$@y,0); if (@map$ == "guild_vs1-2") { sleep2 1; atcommand "@alive"; warp "izlude", 128,117;if (getcharid(4)) bg_leave; 
i put getcharid(3) and not ok too.

 Not OK,

 
Last edited by a moderator:
This is my example.

Code:
OngreenDead:OnblackDead:OngreenQuit:OnblackQuit:    if (getcharid(4)) bg_leave;        set .start, 0;        warp "SavePoint",0,0;        end;
 
If i put your exemple npc will teleport peoples while another round is underway

i need to make player dead go out event.

 
Last edited by a moderator:
Back
Top