Jump to content
  • 0
cumbe11

Show number of people in line

Question

Hello, I have this to BG which to choose blue or red side usingjoinbg ... wanted to show the amount of people in line ..

003.jpg

 

 

 

// ==============================================================================// BattleGround System - Common NPCs// ============================================================================== // MapFlags// ********************************************************************* bat_room	mapflag	nomemobat_room	mapflag	nowarptobat_room	mapflag	nobranchbat_room	mapflag	nopenaltybat_room	mapflag	noteleportbat_room	mapflag	nosave	SavePointbat_room	mapflag	allow_bg_items// Mapflag Town is required to Join BG Queuesbat_room	mapflag	town // Battleground Queue Admin// *********************************************************************-	script	BG_Queue_Join	-1,{	end; OnInit:	// Configuration	// *****************************************************	// Battleground Rotation - Main NPC name	setarray .BG_Arenas$[0],	     "Conquest";	// Battleground Arena Name - for announcements	setarray .BG_Names$[0],		"Conquest";	// Minimum Players to start the BG	setarray .BG_Min[0],	                         5;	// Maximum Players per Team	setarray .BG_Max[0],	                        30;	// BG Message Colors	setarray .BG_Color$[0],	                "0xFFA500";	// Team Building Mode : 0 = Lineal | 1 = Random | 2 = Class Priority | 3 = Faction Mode | 4 = Team Color ( by script set Bat_Team,N; )	set .TeamMode, 0;	// Main Code	// *****************************************************	set .BG_Count, getarraysize(.BG_Arenas$);	set .BG_Queue, bg_queue_create("Battleground Arena","BG_Queue_Join::OnJoinEvent",80);	set .VS_Queue, bg_queue_create("Free For All Arena","BG_Queue_Join::OnVersusJoin",80);	// Move to Next Arena	if( $BG_Index >= .BG_Count ) set $BG_Index,1; // Restart Rotation	set .BG_Arena$,.BG_Arenas$[$BG_Index];	set .Ready, 1;	donpcevent "BG_Queue_Join::OnDoHappyHour";	initnpctimer; // Rotation if BG don't start... Comment if you don't want to use this method	 // Comment the next two lines if you don't want to allow @joinbg and @leavebg commands.	bindatcmd "joinbg","BG_Queue_Join::OnDoJoin",0,200;	bindatcmd "leavebg","BG_Queue_Join::OnDoLeave",0,200;	end; 
Edited by cumbe11

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

switch( select(".........Registro Aleatório (Sem Fila)",".........^0000ccTime Azul^000000..............."+ .@BG_Count1 +"/" + .BG_Max[$BG_Index] + "",".........^ff0033Time Vermelho^000000......."+ .@BG_Count2 +"/" + .BG_Max[$BG_Index] + "",".........Sair da Fila") )    {
To

switch( select(".........Registro Aleatório (Sem Fila)",".........^0000ccTime Azul^000000..............."+ bg_get_data($@BG_Team1,0) +"/" + .BG_Max[$BG_Index] + "",".........^ff0033Time Vermelho^000000......."+ bg_get_data($@BG_Team2,0) +"/" + .BG_Max[$BG_Index] + "",".........Sair da Fila") )    {

Share this post


Link to post
Share on other sites
  • 0
Thank you so much..
 
I also wanted something else ..
 
my BG when two players register in the blue team and the red team the system sends one to each side .. I queri not to do it .. if two people to register on the same team they stayed in a queue until 2 more players register with another
Edited by cumbe11

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.