EricksOliveira
34a888978e
Fix: Prevent concurrent bot initializations during .playerbot init= commands ( #1227 )
...
A simple RAII mechanism with std::unordered_set<ObjectGuid> to track GUIDs of init bots.
Ensures that multiple threads or calls do not execute PlayerbotFactory::Randomize() logic at the same time for the same bot.
2025-04-27 12:47:02 +02: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
3f52563ca7
Move LoadFromDB from player session to world session ( #1173 )
2025-04-08 20:54:51 +08:00
kadeshar
c93bf38463
- Fixed checking MaxAddedBots ( #1083 )
2025-03-17 15:47:48 +08:00
xSparky911x
54c8909ddb
add ability to add or remove character with same name as account ( #1070 )
...
* add ability to add or remove character with same name as account
* seperate bot add and bot addacount so that characters with same name as an account doesn't add all toons from that account but adds the character instead if so desired
2025-03-16 12:45:42 +08:00
Yunfan Li
62e0235e73
Scripts and sessions update to align with acore ( #987 )
2025-02-22 12:08:53 +08:00
Yunfan Li
49b046f36c
Allow addclass bots that are not in a real guild ( #970 )
2025-02-14 18:45:17 +01:00
kadeshar
bf195efaea
- Fixed loading WorldPosition from string to fix RTSC points loading ( #965 )
...
- Restored loading from playerbots_db_store
- Added deletion before saving to playerbots_db_store
2025-02-13 11:39:20 +01:00
Yunfan Li
14bdc0ec5a
Always allow addclass bots login and init ( #946 )
...
* Change the way to check addclass bots and allow adding them by characters name
* Always addclass bots login and init
* Comments and message
2025-02-05 12:56:37 +08:00
Yunfan Li
fef67081ec
Improve login and init permission for rndbots and addclass bots ( #930 )
...
* Improve login and init permission for rndbots and addclass-bots
* Add AllowAcountBots config
* Update config description
2025-02-03 19:46:49 +08:00
Yunfan Li
c2a023afa2
Leave group on login instead of disband group if group is invalid
2025-01-19 17:10:11 +08:00
SaW
453fa4b4f5
Fix reload command security ( #774 )
2024-12-14 17:55:06 +01:00
EricksOliveira
c8dd44fe93
Fix Logs LOG_ERROR for LOG_DEBUG
2024-10-20 11:46:16 -03:00
EricksOliveira
65b6e15ea1
Fix Crash - OnBotLogin
...
1. Improvements in error handling: Added detailed logs for cases where botAI or master are null, allowing better failure tracking.
2. Additional null pointer checks: Added checks to ensure that the botAI and master are valid before performing actions dependent on these objects, preventing potential crashes.
3. Optimization in bot login logic: Revised the bot input flow to ensure it is added to the group appropriately depending on its relationship to the master.
Added logic for handling different types of groups (raid, LFG, etc.), including the possibility of automatic conversion to raid if necessary.
2024-10-18 09:27:46 -03:00
Yunfan Li
8d524cdaf0
[Combat formation] Compatible with naxx and avoid aoe
2024-09-26 20:01:10 +08:00
Yunfan Li
311bdbd91b
Serveral crashes fix
2024-09-07 12:08:38 +08:00
Yunfan Li
406949f6dd
Misdirection and tricks of the trade
2024-09-04 20:08:44 +08:00
Yunfan Li
484a2ae458
Item usage and equip initialization
2024-09-04 18:08:19 +08:00
Yunfan Li
f804ba2d65
Speed up addclass with pre calculation
2024-08-31 19:58:28 +08:00
Yunfan Li
6d9aba4066
SaveToDB in randomize
2024-08-20 00:34:35 +08:00
Yunfan Li
e983f9be00
[Crash fix] Duplicate loading bot
2024-08-19 23:31:32 +08:00
Atidot3
25b010dd1e
Merge code line
2024-08-04 12:04:06 +02:00
Yunfan Li
53611c9040
Run clang-format
2024-08-04 10:23:36 +08:00
Atidot3
ab4e3c2c45
Last fixes on chat + database incorrect charset
2024-08-01 18:58:41 +02:00
Atidot3
79d0f3fd28
Refactoring bot chat and sayaction caused by group crash <NOT FINISHED>
2024-07-31 22:39:59 +02:00
Atidot3
06a63aa730
fix current_zone_name incorrect values + refactoring guild broadcast simplier + refactoring randomTalk to actually use area / zone general etc
2024-07-28 18:42:51 +02:00
Atidot3
d21d1e9b68
Suggest dungeon implementation + log action unknown to help debug
2024-07-27 10:13:33 +02:00
Atidot3
916a0002e8
Fix crash
2024-07-25 17:56:53 +02:00
Atidote
1d5c670081
Merge branch 'liyunfan1223:master' into locale_fix
2024-07-25 17:02:33 +02:00
Yunfan Li
9830992000
[Console] Fix .playerbot bot console message
2024-07-25 21:25:18 +08:00
antony
21a6628161
French + locale dbc use fix
2024-07-25 13:56:42 +02:00
Yunfan Li
5c7fb89591
Merge branch 'master' into self-command
2024-07-22 09:08:29 +08:00
Revision
838bfe333d
Fix: Updated to work with newer commits of AzerothCore
2024-07-22 00:39:06 +02:00
Yunfan Li
dd942bf449
Addclass command account id check
2024-07-21 23:04:16 +08:00
Yunfan Li
cdd4ab7080
[Command] Fix self command
2024-07-21 22:14:15 +08:00
Yunfan Li
fce0f431e1
[Command] Enable to cancel self command
2024-07-21 22:14:15 +08:00
Yunfan Li
9dc494f407
[Configuration] Max added bot
2024-07-18 23:32:39 +08:00
Yunfan Li
6dd5494cfd
[Initialization] Disable init command during combat
2024-07-13 21:42:47 +08:00
Yunfan Li
3881d7054b
[Crash fix] Fix crash caused by duplicate login
2024-07-13 11:39:47 +08:00
Yunfan Li
c63ee90cb2
[Crash fix] Duplicate bots login
2024-07-07 13:10:50 +08:00
yang
ee481440c2
[feat] Added the function to manually clear raids states of shared bot.
2024-07-06 16:24:57 +08:00
Yunfan Li
3556a38dcd
[Initialization] Ammo init
2024-06-28 20:14:22 +08:00
Yunfan Li
7395acb660
[Configuration] Random bots fixed level
2024-06-27 23:39:54 +08:00
yang
9ee873f57a
[Optimization] Optimize quests initialization code.
2024-05-25 17:02:53 +08:00
Yunfan Li
2ca686fc9a
[Command] Command autogear
2024-05-12 00:22:13 +08:00
Yunfan Li
b474dc44bb
Performance optim
2024-04-11 11:02:42 +08:00
Oiuv
429bce3080
add config for another player's character as bot
2024-03-31 23:57:17 +08:00
Oiuv
4f15d6e0ff
fix GM only bug when AiPlayerbot.AddClassCommand=0
2023-12-29 21:24:40 +08:00
Yunfan Li
cf4f2d7309
reduce memory leak
2023-12-17 20:37:05 +08:00