Commit Graph

811 Commits

Author SHA1 Message Date
EricksOliveira
7fa1ab36a3 Update LfgAccept (#681)
Fixed issue with Bots refusing to join DungeonFinder.
2024-11-05 16:15:09 +01:00
Bobblybook
e59b4d9e32 Merge pull request #680 from Bobblybook/master
Dungeon botAI bugfixes
2024-11-05 20:55:20 +11:00
Bobblybook
dd73fe8a90 Dungeon botAI bugfixes
- Utgarde Keep (Keleseth): Bots continue combat correctly after killing a frost tomb
- Utgarde Keep (Dalronn & Skarvald): Bots continue combat correctly after killing Dalronn
- Utgarde Keep (Ingvar): Tank correctly avoids Dark Smash in second phase
- Oculus (Drake combat): Bots more consistently attack the drakes in the air when flying around
- Halls of Lightning (Bjarngrim): Bots no longer acquire priority targets until in combat
2024-11-05 19:11:24 +11:00
EricksOliveira
7e74fbe181 Fix Crash QuestAction (#665)
Added checks to ensure bot and botAI are valid at function start.

Added extra pointer checks when accessing unit and gameobj in loops that iterate over nearest NPCs and game objects.

This adjustment ensures that objects are initialized correctly before being used in the ProcessQuests function.
2024-11-03 13:15:16 +01:00
Bobblybook
fb2391d4ce Oculus crash fix
Master nullptr check
2024-11-01 17:47:51 +11:00
Bobblybook
9ca93855fe Fix healer and tank multiplier on Krikthir 2024-10-31 22:13:05 +11:00
Yunfan Li
2cedf3f05b [Sync] Core sync 20241030 2024-10-30 21:10:43 +08:00
bash
3cd68c6dec [performance] new baseline (#644) 2024-10-29 01:15:26 +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
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
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
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
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
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
Revision
68c5d9124d Merge pull request #615 from Bobblybook/master
Halls of Lightning implementation
2024-10-19 03:03:52 +02: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
Bobblybook
66b7a3852d HoL updates 2024-10-18 20:57:48 +11:00
Bobblybook
f6987a80a5 Halls of Lightning implementation
Halls of Lightning implementation
2024-10-18 20:42:36 +11:00
avirar
4981f46aee Update LootRollAction.cpp
Added logic so bots will only roll need on usable class armor tokens. The tokens/items are classed as MISC > JUNK oddly, code simply checks if the bots class is part of the bitmask of classes for the item, and the item is EPIC. This catches all the tokens I've tested so far.
2024-10-18 12:24:23 +11:00
EricksOliveira
037258fb1a Fix Bug Bot blocked in PT
After leaving PT, the Bot was stuck in a Group, stopped and without receiving invites from other players. Ideally, use the LeaveGroupOnLogout.Enabled = 1 setting in Worldserver.conf so that after the player leaves the game, the Bots are not stuck in Raid.
2024-10-17 21:19:00 -03:00
avirar
efd204bbbe Update LootRollAction.h
Declared CanBotUseToken
2024-10-18 10:08:00 +11:00
avirar
38a5ff778a Update LootRollAction.cpp
Added logic for class/armour token usage.
2024-10-18 10:06:41 +11:00
bash
12be2c9971 Revert "Rewrote scaling, moving away from cmangos solutions"
This reverts commit 62aef235d1.
2024-10-17 17:52:05 +00:00
Yunfan Li
ca9bfc4b9c Merge pull request #605 from Bobblybook/master
Halls of Stone implementation
2024-10-17 11:25:39 +08:00
Bobblybook
70c9bdbd9d Halls of Stone implementation 2024-10-15 22:40:47 +11:00
Yunfan Li
58abb0d9ce Merge pull request #597 from avirar/clean_quest_log
CleanQuestLog Updated
2024-10-14 18:22:36 +08:00
EricksOliveira
db395ae13c Fix LFG Join bug
This PR adjusts the execution priority of bot actions in Dungeon Finder (DF), modifying the relevance logic to make responses faster. The relevance calculation formula was changed in RpgAction::SetNextRpgAction to reduce the delay between activating actions, especially to improve the acceptance time of bots in DF queues. With these changes, bots now accept vacancies in a more agile and efficient way, optimizing overall response time.
2024-10-13 20:17:18 -03:00