feature - (#1100) Linking of "trusted" accounts to allow altbot-control apart from own account or guild (#1267)

* Add table to store the security keys for accounts.

* Add table to store relationships between accounts.

* Add a new configuration option to enable or disable trusted account bots.

* add checks for linked accounts

* Handle account linking and chat commands

* fix uppercase typo

* change query & fix chatcommandtable

* add missing functions to header

* move account linking to updates dir

* moved table creation to correct updates folder

* use playerbots db instead of character db

* fix db

* fix install?

* remove duplicated logic and add hashing to stored securityKey

* add object before call

* change chat variable

* rename SQL file for correct execution order

* add  header include for ubuntu compatibility

* remove old sql
This commit is contained in:
Icemansparks
2025-05-05 15:06:29 +02:00
committed by GitHub
parent b69ebfbb3c
commit 0574ac5eff
9 changed files with 299 additions and 19 deletions

View File

@@ -41,7 +41,7 @@
# MAGE
# WARLOCK
# DRUID
# RANDOM BOT DEFAULT TALENT SPEC
# RANDOM BOT DEFAULT TALENT SPEC
# WARRIOR
# PALADIN
# HUNTER
@@ -54,7 +54,7 @@
# DRUID
# PLAYERBOT SYSTEM SETTINGS
# DATABASE & CONNECTIONS
# DEBUG
# DEBUG
# CHAT SETTINGS
# LOGS
# DEPRECIATED (TEMPORARY)
@@ -132,6 +132,9 @@ AiPlayerbot.AllowAccountBots = 1
# Allow/deny bots in the player's guild
AiPlayerbot.AllowGuildBots = 1
# Allow linking accounts for shared alt-bot control
AiPlayerbot.AllowTrustedAccountBots = 1
# Random bot guild count
AiPlayerbot.RandomBotGuildCount = 20
@@ -790,7 +793,7 @@ AiPlayerbot.RandomBotAutoJoinBG = 0
# Known issue: When enabling a lot of brackats in combination with multiple instances,
# can lead to more instances created by bots than intended (over-queuing).
#
# This section controls the level brackets and
# This section controls the level brackets and
# automatic bot participation in battlegrounds and arenas.
#
# Brackets:
@@ -1179,7 +1182,7 @@ AiPlayerbot.PremadeSpecLink.11.3.80 = -553202032322010053100030310511-205503012
###################################
####################################################################################################
#
#
#
#
@@ -1231,7 +1234,7 @@ AiPlayerbot.WorldBuff.0.11.3.80.80 = 53760,57358 #DRUID FERAL
###################################
####################################################################################################
#
#
#
#