From 449a41af45d448e18006ef9c105c393592239de1 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 5 Jul 2013 22:27:33 -0300 Subject: DB Queue Debug Update Some documentation update on battlegrounds.conf Fixed Hercules Queue Option constants, they're 1-2-3 not 0-1-2. Some Bugfixes to the test script, special thanks to ossi0110 http://hercules.ws/board/topic/1302-bg-queue-debug Signed-off-by: shennetsind --- conf/battlegrounds.conf | 12 ++++----- db/const.txt | 6 ++--- doc/script_commands.txt | 2 +- npc/custom/bgqueue/flavius.txt | 58 +++++++++++++++++------------------------- src/map/battleground.c | 40 +++++++++++++++++++---------- src/map/battleground.h | 2 +- 6 files changed, 62 insertions(+), 58 deletions(-) diff --git a/conf/battlegrounds.conf b/conf/battlegrounds.conf index 1c32d32ce..9412829b2 100644 --- a/conf/battlegrounds.conf +++ b/conf/battlegrounds.conf @@ -34,7 +34,7 @@ battlegrounds: ( minPlayers: 6 /* minimum amount of players to start */ maxPlayers: 60 /* maximum amount of players */ minTeamPlayers: 6 /* minimum amount of team members required for a team (party or guild) to join */ - delay_var: "Tierra_BG_Tick" /* npc variable name that will store the delay for this match */ + delay_var: "Tierra_BG_Tick" /* char variable name that will store the delay for this match */ maxDuration: 30 /* maximum duration in minutes, if reached game ends and highest score wins (or calls a draw if scores are equal) */ fillDuration: 20 /* time in seconds to wait for more applications when minimum has been reached */ pGameDuration: 20 /* time to wait for players to confirm their attendence after queueing process has finished */ @@ -48,10 +48,10 @@ battlegrounds: ( loss: 3 draw: 3 } - minPlayers: 3 /* minimum amount of players to start (DEBUG VALUE, CHANGE BACK) */ + minPlayers: 2 /* minimum amount of players to start (DEBUG VALUE, CHANGE BACK) */ maxPlayers: 60 /* maximum amount of players */ minTeamPlayers: 6 /* minimum amount of team members required for a team (party or guild) to join */ - delay_var: "Flavius_BG_Tick" /* npc variable name that will store the delay for this match */ + delay_var: "Flavius_BG_Tick" /* char variable name that will store the delay for this match */ maxDuration: 30 /* maximum duration in minutes, if reached game ends and highest score wins (or calls a draw if scores are equal) */ fillDuration: 20 /* time in seconds to wait for more applications when minimum has been reached */ pGameDuration: 20 /* time to wait for players to confirm their attendence after queueing process has finished */ @@ -68,7 +68,7 @@ battlegrounds: ( minPlayers: 4 /* minimum amount of players to start */ maxPlayers: 60 /* maximum amount of players */ minTeamPlayers: 5 /* minimum amount of team members required for a team (party or guild) to join */ - delay_var: "KVM_BG_Tick" /* npc variable name that will store the delay for this match */ + delay_var: "KVM_BG_Tick" /* char variable name that will store the delay for this match */ maxDuration: 30 /* maximum duration in minutes, if reached game ends and highest score wins (or calls a draw if scores are equal) */ fillDuration: 20 /* time in seconds to wait for more applications when minimum has been reached */ pGameDuration: 20 /* time to wait for players to confirm their attendence after queueing process has finished */ @@ -85,7 +85,7 @@ battlegrounds: ( minPlayers: 4 /* minimum amount of players to start */ maxPlayers: 60 /* maximum amount of players */ minTeamPlayers: 5 /* minimum amount of team members required for a team (party or guild) to join */ - delay_var: "KVM_BG_Tick" /* npc variable name that will store the delay for this match */ + delay_var: "KVM_BG_Tick" /* char variable name that will store the delay for this match */ maxDuration: 30 /* maximum duration in minutes, if reached game ends and highest score wins (or calls a draw if scores are equal) */ fillDuration: 20 /* time in seconds to wait for more applications when minimum has been reached */ pGameDuration: 20 /* time to wait for players to confirm their attendence after queueing process has finished */ @@ -102,7 +102,7 @@ battlegrounds: ( minPlayers: 4 /* minimum amount of players to start */ maxPlayers: 60 /* maximum amount of players */ minTeamPlayers: 5 /* minimum amount of team members required for a team (party or guild) to join */ - delay_var: "KVM_BG_Tick" /* npc variable name that will store the delay for this match */ + delay_var: "KVM_BG_Tick" /* char variable name that will store the delay for this match */ maxDuration: 30 /* maximum duration in minutes, if reached game ends and highest score wins (or calls a draw if scores are equal) */ fillDuration: 20 /* time in seconds to wait for more applications when minimum has been reached */ pGameDuration: 20 /* time to wait for players to confirm their attendence after queueing process has finished */ diff --git a/db/const.txt b/db/const.txt index 4a5b0f4a3..d479e79cd 100644 --- a/db/const.txt +++ b/db/const.txt @@ -3160,6 +3160,6 @@ IT_AMMO 10 IT_DELAYCONSUME 11 IT_CASH 18 -HQO_OnDeath 0 -HQO_OnLogout 1 -HQO_OnMapChange 2 +HQO_OnDeath 1 +HQO_OnLogout 2 +HQO_OnMapChange 3 diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 2cb0a55c0..471f98d03 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -8146,7 +8146,7 @@ Modifies 's . When