Hello, I have this to BG which to choose blue or red side usingjoinbg ... wanted to show the amount of people in line ..
// ==============================================================================// 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;
Hello, I have this to BG which to choose blue or red side usingjoinbg ... wanted to show the amount of people in line ..
Share this post
Link to post
Share on other sites