Commit Graph

1665 Commits

Author SHA1 Message Date
Bobblybook
756dcbaa84 Limit JC jeweler's gems to 3
If bot has jewelcrafting, enforce limit of 3 of any type of jeweler's gems when autogearing/gemming
2024-10-29 20:41:22 +11:00
bash
3cd68c6dec [performance] new baseline (#644) 2024-10-29 01:15:26 +01:00
Revision
b061f0016c Fix new compiler errors (#645)
* Add missing include

* Move include
2024-10-29 01:02:30 +01:00
Revision
e82eb3a5a7 Merge pull request #642 from Bobblybook/master
Oculus implementation
2024-10-27 02:19:11 +02:00
Bobblybook
9f273791a7 Oculus implementation 2024-10-27 02:20:04 +11:00
bash
4219c397c1 Merge pull request #634 from noisiver/fix-trivial-level
Fix the level when a quest becomes trivial (grey/gray)
2024-10-23 21:42:18 +02:00
Revision
a2f78542a4 Fix the level when a quest becomes trivial (grey/gray) 2024-10-23 00:18:44 +02:00
bash
599c26bc2e Merge pull request #631 from avirar/AvoidShadowCrashAction_crashfix
Update OldKingdomActions.cpp
2024-10-21 20:37:07 +02:00
bash
eed4339ec1 Merge pull request #632 from Bobblybook/master
Utgarde Pinnacle, CoS & additional value entry
2024-10-21 20:35:59 +02:00
Bobblybook
f09531775a Typo 2024-10-21 22:33:24 +11:00
Bobblybook
c788e96828 UP and CoS dungeons
- Utgarde Pinnacle implementation
- Culling of Stratholme implementation
- Added additional value ("nearest hostile npcs") needed to expose some hidden trigger-type npc units (eg. frost breath on Skadi fight in UP)
2024-10-21 22:29:03 +11:00
avirar
6c1ddd3b77 Update OldKingdomActions.cpp
Null checks added
2024-10-21 14:42:32 +11:00
Yunfan Li
47544bf910 Merge pull request #618 from avirar/armor_token_usage
Armor token usage
2024-10-21 11:11:09 +08:00
Yunfan Li
05961546fd Merge pull request #625 from Bobblybook/master
Dungeon code cleanup
2024-10-21 11:02:35 +08:00
Yunfan Li
72936ceab1 Merge pull request #630 from Jellypowered/mining-skinning
Update Items Eligible for Professions
2024-10-21 11:02:23 +08:00
avirar
a3101cccb3 Merge branch 'liyunfan1223:master' into armor_token_usage 2024-10-21 10:22:55 +11:00
Jelly
be8f529fc2 Update Items Eligible for Professions
Adds several items and cases for Skinning, Mining, Blacksmithing.
2024-10-20 16:24:00 -05:00
bash
b234824867 Merge pull request #627 from EricksOliveira/patch-1
Fix Logs LOG_ERROR for LOG_DEBUG
2024-10-20 17:53:49 +02:00
EricksOliveira
c8dd44fe93 Fix Logs LOG_ERROR for LOG_DEBUG 2024-10-20 11:46:16 -03:00
Bobblybook
edcf90f4e8 Update HallsOfStoneActions.cpp 2024-10-20 16:40:10 +11:00
Bobblybook
219b4f91b7 Merge branch 'master' of https://github.com/Bobblybook/mod-playerbots 2024-10-20 16:18:27 +11:00
Bobblybook
a8842b61c5 Update UtgardeKeepTriggers.h 2024-10-20 16:17:57 +11:00
Bobblybook
d6293042ef Merge branch 'master' into master 2024-10-20 16:10:18 +11:00
Bobblybook
66b199e795 Update NexusActions.cpp
Remove reference to boss distance
2024-10-20 16:08:20 +11:00
Bobblybook
159cd1ad71 Reapply "Dungeon code cleanup"
This reverts commit 3f7f306124.
2024-10-20 15:59:42 +11:00
Bobblybook
f912c5df22 Merge pull request #622 from Bobblybook/master
Preferred mount selection for bots
2024-10-20 15:59:18 +11:00
Bobblybook
3f7f306124 Revert "Dungeon code cleanup"
This reverts commit d0a9e98801.
2024-10-20 15:58:14 +11:00
Bobblybook
d0a9e98801 Dungeon code cleanup
Consistent code, easier to read logic flow and some missing nullptr checks
2024-10-20 15:49:10 +11:00
avirar
30c36ccbf2 Update LootRollAction.cpp
Removed spaces
2024-10-20 09:38:05 +11:00
Revision
23ed033307 Merge pull request #624 from EricksOliveira/patch-7
Fix Crash The Nexux
2024-10-19 22:14:01 +02:00
Revision
b6ab4219d0 Merge pull request #623 from EricksOliveira/patch-6
Fix Crash q [ link item ]
2024-10-19 19:49:04 +02:00
EricksOliveira
8ac7d58230 Fix Crash The Nexux
Log Crash: 00007FF7750C05ED  00000028A47FEA10  FirebombSpreadAction::Execute+1AD  E:\Server\Heroes_Azeroth\modules\mod-playerbots\src\strategy\dungeons\wotlk\nexus\NexusActions.cpp line 58

This PR fixes a possible crash in the FirebombSpreadAction::Execute function, located in the NexusActions.cpp file, which occurred due to the lack of checking for null pointers when accessing group members.

Main changes: Added a null pointer check to ensure botAI->GetUnit(member) returns a valid unit before calling functions like GetExactDist2d and MoveAway.
If botAI->GetUnit(member) returns nullptr, execution ignores the specific member, avoiding access to an invalid pointer that could cause a server crash.
2024-10-19 14:29:44 -03:00
EricksOliveira
72debb6e83 Fix Crash q [ link item ]
This PR adds a null pointer check to the ChatHelper::FormatQuest function to avoid a crash that occurred when trying to format a null quest. The crash occurred when the quest pointer was nullptr and the code tried to access the GetQuestId(), GetQuestLevel() and GetTitle() methods.

Changes:
Added a nullptr check to the beginning of the ChatHelper::FormatQuest function.
Return of a standard error message ("Invalid quest") if the quest is null.

Impact:
Prevents crashes when formatting null quests.
Improves bot system stability when dealing with invalid quests.
2024-10-19 09:55:27 -03:00
Bobblybook
a430786133 Reapply "Preferred mount selection for bots"
This reverts commit eb5dd450cd.
2024-10-19 22:44:11 +11:00
Bobblybook
b97b6775da Merge pull request #621 from Bobblybook/master
Winged Steed of the Ebon Blade northrend fix
2024-10-19 22:43:12 +11:00
Bobblybook
eb5dd450cd Revert "Preferred mount selection for bots"
This reverts commit 312c661311.
2024-10-19 22:42:21 +11:00
Bobblybook
312c661311 Preferred mount selection for bots
Added a new table to store user-specified mount ids.
Can specify flying and ground mounts for a character which will prioritise that mount. If multiple entries, a random entry will be selected from that list.

Currently no way to add entries other than manual DB editing, but can be developed into a whisper command pretty easily.

This should gracefully fail (if no entries exist for the character, or the db table does not exist) and fallback to the default random selection as usual.
2024-10-19 22:40:26 +11:00
Bobblybook
1165442505 Winged Steed of the Ebon Blade northrend fix
Winged Steed of the Ebon Blade gets incorrectly categorised as a ground mount, causes issues and bots will not be able to ground mount if they have this mount in the account spellbook.

There may by other scaling mounts that have the same issue, either we blacklist them all or figure out a way to correctly read them as flyers.
2024-10-19 18:16:44 +11:00
bash
742199b1de Merge pull request #612 from EricksOliveira/patch-4
Fix Bug Bot blocked in PT
2024-10-19 07:19:17 +02:00
bash
168d711a21 Merge pull request #616 from EricksOliveira/master
Fix Crash - OnBotLogin
2024-10-19 07:14:41 +02:00
bash
e4cc24f64e Merge pull request #619 from noisiver/fix-typo-and-split-files
Fix typo in chat and move tables into their own file
2024-10-19 07:12:54 +02:00
Revision
8d7a7aed2a Fix a typo 2024-10-19 03:11:40 +02:00
Revision
c313cdfa8e Move tables into their own files 2024-10-19 03:10:46 +02:00
Revision
68c5d9124d Merge pull request #615 from Bobblybook/master
Halls of Lightning implementation
2024-10-19 03:03:52 +02:00
avirar
2846b48833 Merge branch 'liyunfan1223:master' into armor_token_usage 2024-10-19 11:47:42 +11:00
avirar
472050abd9 Update LootRollAction.cpp
Added logic for bots to roll need/greed on armor tokens based on class.
2024-10-19 11:43:51 +11:00
EricksOliveira
eabad44d4b Revert "Update PlayerbotCommandServer.cpp"
This reverts commit 8f2455b766.
2024-10-18 14:40:25 -03:00
EricksOliveira
8f2455b766 Update PlayerbotCommandServer.cpp
Protection against race conditions: Added a global mutex (session_mutex) to synchronize access to the session() function when multiple threads are running. This avoids concurrency problems in environments with many simultaneous connections.

Thread pool usage: Replaced manual thread creation with boost::thread with a thread pool using boost::asio::thread_pool. The thread pool improves resource management and limits the number of simultaneous threads, optimizing performance.

Checking for socket errors: Added check to ensure the socket is not null or closed before trying to read it.
Implemented detailed error handling for readings and writings, including detailed logs to facilitate debugging.
Secure socket closure: Now sockets are correctly closed at the end of the session, even in the event of an error, preventing resource leaks.
2024-10-18 14:37:54 -03:00
EricksOliveira
9280188841 Merge branch 'master' of https://github.com/liyunfan1223/mod-playerbots 2024-10-18 09:29:02 -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