Commit Graph

56 Commits

Author SHA1 Message Date
Alex Dcnh
fc69dd5ddd FIX Random Bot Guilds not initialising random emblem, colors, etc #1636 (#1650)
* FIX Random Bot Guilds not initialising random emblem, colors, etc #1636

FIX Random Bot Guilds not initialising random emblem, colors, etc #1636

* Update RandomPlayerbotFactory.cpp

* Add sql patch an remove FixEmptyGuildEmblems() function
2025-09-25 21:42:34 +02:00
Yunfan Li
ee99b66d04 Sync with azerothcore (#1492) 2025-08-02 16:10:49 +08:00
NoxMax
db7a17ffde Fix: Properly track RNDbot and AddClass accounts, and login faction balance issue (#1434)
* AssignAccountTypes & AddRandomBots

Fix: Properly track RNDbot and AddClass accounts, and login faction balance issue

* code style edits

* fix addclass init on first build of playerbots_account_type
2025-07-27 14:13:20 +08:00
NoxMax
78f4bd6d29 Ensuring data orphans are deleted 2025-07-05 18:59:30 -06:00
Cryo81
07e4dec70d Warning fix + ilvl function fix (#1210)
* 1 variable order warning fixed
70 unused variable warning fixed

* Fixed GetEquipGearScore function

---------

Co-authored-by: Julien MAS <julien.mas81@gmail.com>
2025-04-20 14:26:42 +08:00
Yunfan Li
19447c3914 Enable new rpg strategy by default (#1192)
* Add RandomBotMinLevelChance

* Save mana only for healer

* Disable addclass dk for low level player

* Target selection and debuff cast with less players in group

* Change default rpg strategy and bots count in config

* Logs clean up

* Improve init=auto

* Remove login logs after initialization

* Rndbots stats for quest

* Prediction chase in reach combat

* Poor & Normal items ensurence for init=auto
2025-04-11 20:31:38 +08:00
Yunfan Li
fbfcbbcddc EnablePeriodicOnlineOffline config and modify CalculateTotalAccountCount (#1043)
* EnablePeriodicOnlineOffline config

* Add Comments on PeriodicOnlineOfflineRatio
2025-03-01 21:05:43 +08:00
Dennis
e540875b9c dynamically load database names for cleanup queries (#1040)
* dynamically load database names for cleanup queries
2025-02-28 18:39:28 +01:00
blinkysc
67d805f700 Cleanup Database More (#1032)
* Resolve conflicts

* format
2025-02-27 14:34:26 +08:00
blinkysc
17672bd5b5 Properly cleanup database with playerbot delete (#1027)
Properly cleanup appropriate databases when AiPlayerbot.DeleteRandomBotAccounts is set to 1
2025-02-26 19:19:11 +01:00
Yunfan Li
4b1febc62a Minor improvments on logs, stats weights and aoe distance calculation (#995)
* StatsCollector for paladin spell

* Remove error log on MoveFromGroup

* Log and timer for CreateRandomBots

* Improve aoe trigger distance calculation

* Reduce spirit weights for heal priest and paladin
2025-02-22 10:57:33 +08:00
SaW
61333a02bf Avoid creating accounts if both maxRandom & ClassBots are set to zero (#984)
Fix for https://github.com/liyunfan1223/mod-playerbots/issues/978
2025-02-19 09:46:28 +01:00
SaW
624e48068e Autocalc Accounts - take rotation into account (#971)
* Takes bot rotation into account and adjust accordingly when enabled as it requires to be higher than MaxRandomBots to function properly.
* Correct default config to reflect that bots pool size for rotation should be higher than MaxRandomBots
* Revert space at start of all lines.
2025-02-14 23:31:26 +01:00
SaW
4793644a15 Auto calculate RandomBotAccountCount by default (#964)
* Remove RandomBotAccountCount requirement

* Remove RandomBotAccountCount

* Remove randomBotAccountCount

* Remove randomBotAccountCount

* Update playerbots.conf.dist

* Style

* Set RotationPoolSize to 20 to work with the bot amount defaults

* Update PlayerbotAIConfig.cpp: Sync with default config

* Set +1 where appropriate

* Acc patch (#73)

* Account for TBC
* Still made it possible to change manually if desired

* uint32 randomBotAccountCount;

* Update Playerbots.cpp
2025-02-14 22:03:53 +08:00
Yunfan Li
9bbe183763 Improve random accounts creation (#942)
* Duplicate name check and improve name cache

* Sync wait for the first time creation of random bots
2025-02-03 16:39:45 +01:00
avirar
249aaf69e4 Arena team type is included in the LOG_INFO output (#925) 2025-01-29 10:39:17 +01:00
jublinq
9e967b7784 Add undead-rogue to rndbots (#901) 2025-01-24 19:08:37 +01:00
Yunfan Li
a5d1d7579d EnableNewRpgStrategy switch for initialization 2024-12-14 21:46:33 +08:00
Revision
8f1f79a3b1 Use empty() instead of size()
Thank you @mtm84 for pointing that out, I forgot to check properly.
2024-10-04 22:23:08 +02:00
Revision
eee8c96a12 Fix typo in log message 2024-10-04 21:19:11 +02:00
Revision
5f50b6fddc Add check to make sure there are races available for a class 2024-10-04 21:17:19 +02:00
Yunfan Li
a97d339c91 Name creation check 2024-09-11 16:26:12 +08:00
Yunfan Li
2c82ea23e0 Bot creation wait time 2024-08-25 11:20:33 +08:00
bash
aa1ae40e2c Minor correction in logging text and removed in_use from the playerbots_names table and added an additional index for the fallback 2024-08-21 19:34:26 +00:00
bash
63e7b227d8 Loading the botnames from a cache 2024-08-21 18:11:19 +00:00
Christoph Wilk
a7a025ee58 Name Rework:
1. Arena Team & Guild Names: Edited/deleted/replaced many names by hand, removing potentially offensive names, grammatical inconsistency, faction-specific names (since there is no faction categorization), non-standard spelling, etc. After the rework there are 100 arena team names per bracket & 400 guild names, which is fewer than before, but should be enough.
2. Replaced the playerbot name list with 100k names (some overlap), split into 5k names per race and gender, with human & undead sharing the same pool of double size. Module code has been edited to assign created bots a name specific to their race.
3. Minor: Random race is now guaranteed to be assigned, removing the miniscule chance of failure in 15 attempts.
2024-08-13 20:21:00 +09:00
Yunfan Li
53611c9040 Run clang-format 2024-08-04 10:23:36 +08:00
mtm84
3cd0947762 Update RandomPlayerbotFactory.cpp
code cleanup
2024-07-30 11:53:28 -07:00
mtm84
8ebed9557e Update RandomPlayerbotFactory.cpp
code cleanup
2024-07-30 09:24:44 -07:00
CrypticAvacado
5ffcc14030 Merge branch 'master' into fix-autojoin-rated-arena-battlegrounds 2024-07-29 21:54:35 +12:00
CrypticAvacado
5240a2d1ff Allow greater control of Arena team creation 2024-07-29 04:07:10 +12:00
Yunfan Li
39d93e6a2f Account creation info message 2024-07-28 19:12:01 +08:00
Revision
838bfe333d Fix: Updated to work with newer commits of AzerothCore 2024-07-22 00:39:06 +02:00
mtm84
24547f4cc5 Random name generation improvement (#359)
* Update RandomPlayerbotFactory.cpp
2024-07-21 22:45:03 +08:00
Revision
9accee0a64 Fix Draenei being created with expansion set to 0 2024-07-10 19:20:43 +02:00
Yunfan Li
91d2a4f8ab Clear playerbots name 2023-12-24 16:02:25 +08:00
Yunfan Li
16ba8356c2 Speed up bot creation 2023-12-24 15:51:08 +08:00
Yunfan Li
1f6e5627df quest complete with gameobject 2023-11-04 23:00:35 +08:00
Yunfan Li
4e867606f2 reduce database error during creation 2023-10-27 19:23:13 +08:00
Yunfan Li
243a4df967 optimize class spell 2023-09-08 12:44:38 +08:00
Yunfan Li
762ac0142b miscs 2023-09-07 14:18:20 +08:00
Yunfan Li
0adf1b8034 fix compile issue 2023-08-25 10:12:14 +08:00
Yunfan Li
7c177bccc9 miscs(pet, log, needForQuest) 2023-08-10 00:17:37 +08:00
Yunfan Li
8c9ab0e428 rewrite random bot accounts deletion 2023-08-09 23:10:58 +08:00
Yunfan Li
44a9949c26 randombot accoutn del & name selection 2023-08-09 12:39:22 +08:00
Yunfan Li
e93b1edcd5 fix strategies conflict for rndbot 2023-07-30 14:33:52 +08:00
Yunfan Li
33ef77c4fa configuration and duplicate name 2023-05-27 23:58:28 +08:00
ZhengPeiRu21
6fe225f109 Merge pull request #79 from qudzy/bug/rndbot-dk-by-expansion
Restrict Death Knight random bot creation by expansion
2022-06-01 15:05:13 -06:00
qudzy
dcea34cd31 Restrict random bot races by expansion 2022-06-01 21:44:00 +02:00
qudzy
7164890d15 Restrict Death Knight random bot creation by expansion 2022-06-01 21:41:43 +02:00