Commit Graph

679 Commits

Author SHA1 Message Date
Revision
f925db1ca4 Fix print about invalid format (#739) 2024-11-24 22:09:04 +01:00
Revision
16470e2232 Fix bots dropping quests that are green (#723) 2024-11-16 23:14:46 +01:00
EricksOliveira
ff5ad54f91 Fix LfgAction (#690)
* Fix LfgAction

* Fix LfgAction
2024-11-14 15:21:30 +01:00
EricksOliveira
c1247d23f8 Questdetails popup for bots without quest attached. (#705) 2024-11-13 22:49:12 +01:00
Bobblybook
2ce826a8dc Merge branch 'master' into master 2024-11-08 20:53:29 +11:00
Bobblybook
71b7844fef Offhand equip bugfix
Prevent caster bots and others who cannot dual-wield from attempting to equip weapons in their offhand
2024-11-08 20:35:31 +11:00
Bobblybook
2d13373a8d Handle bot gear upgrades for multi-slot items (#695)
* Handle bot gear upgrades for multi-slot items

Switch to using opcode "CMSG_AUTOEQUIP_ITEM_SLOT" to equip items to specific slots, rather than "right clicking" item upgrades.
Fixes an issue with rings, trinkets and offhand weapons where the bot would only ever upgrade their first slot.
Also evaluate the above item types for equipping in both slots rather than just comparing to the first item.

* Update EquipAction.cpp
2024-11-07 17:18:59 +01:00
Bobblybook
33f4ef63b6 Update EquipAction.cpp 2024-11-07 23:10:13 +11:00
Bobblybook
2ec5628d95 Handle bot gear upgrades for multi-slot items
Switch to using opcode "CMSG_AUTOEQUIP_ITEM_SLOT" to equip items to specific slots, rather than "right clicking" item upgrades.
Fixes an issue with rings, trinkets and offhand weapons where the bot would only ever upgrade their first slot.
Also evaluate the above item types for equipping in both slots rather than just comparing to the first item.
2024-11-07 22:59:35 +11:00
EricksOliveira
7fa1ab36a3 Update LfgAccept (#681)
Fixed issue with Bots refusing to join DungeonFinder.
2024-11-05 16:15:09 +01: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
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
a2f78542a4 Fix the level when a quest becomes trivial (grey/gray) 2024-10-23 00:18:44 +02:00
avirar
a3101cccb3 Merge branch 'liyunfan1223:master' into armor_token_usage 2024-10-21 10:22:55 +11:00
Bobblybook
f912c5df22 Merge pull request #622 from Bobblybook/master
Preferred mount selection for bots
2024-10-20 15:59:18 +11:00
avirar
30c36ccbf2 Update LootRollAction.cpp
Removed spaces
2024-10-20 09:38:05 +11: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
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
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
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
bash
62aef235d1 Rewrote scaling, moving away from cmangos solutions 2024-10-13 22:05:39 +00:00
avirar
ef7d5d9255 Merge branch 'liyunfan1223:master' into clean_quest_log 2024-10-13 10:50:33 +11:00
Yunfan Li
c0dbdf00f8 Merge pull request #596 from Bobblybook/master
Dragon flanking & Violet Hold implementation
2024-10-12 23:44:49 +08:00
Bobblybook
b526a07303 Generalise dragon flanking action 2024-10-12 23:51:00 +11:00
avirar
98c084680c Update DropQuestAction.cpp
Bots were not dropping trivial quests. Initially let them keep quests in progress, but their logs were still very full.
2024-10-12 17:50:42 +11:00
bash
158d923c15 Autoscale latency modifier 2024-10-11 21:20:43 +00:00
Yunfan Li
eb0d222598 [Spell] Dont interrupt spell on drop target 2024-10-06 12:46:37 +08:00
Yunfan Li
21e17e163b [Spell] Healer spell enhancement 2024-10-04 20:48:29 +08:00
Yunfan Li
ff68a92fe9 [Movement] Modify combat reach calculation 2024-10-04 14:14:16 +08:00
bash
7b50803a25 CRLF replaced with LF 2024-10-03 07:54:41 +00:00
avirar
ddbe4362d9 Update OpenItemAction.h 2024-10-03 13:39:28 +10:00
avirar
ec7132bc3e Update ChatActionContext.h
Removed the s
2024-10-03 13:14:13 +10:00
avirar
e7e42a0845 Merge branch 'liyunfan1223:master' into master 2024-10-03 12:44:24 +10:00
avirar
53fca2b78b Update ChatActionContext.h
Added OpenItem chat handler
2024-10-03 12:38:58 +10:00
avirar
900b4c48b0 Update TeleportAction.cpp
Add alternative method for finding and using portals. Works with  first boss of Sunwell Plateau, Kalecgos, using the Spectral Rifts.
2024-10-03 12:37:12 +10:00
avirar
1f1dc1cdc8 Update and rename OpenItemAction_v2.cpp to OpenItemAction.cpp 2024-10-03 12:30:20 +10:00
avirar
b91f6a8e15 Add files via upload 2024-10-03 12:28:44 +10:00
EricksOliveira
06c168d0f3 Update QueryQuestAction.cpp
Crash Fix
2024-10-02 21:49:31 -03:00
Yunfan Li
773bb7c43d [Combat formation] Fix leftover code 2024-09-27 00:22:27 +08:00
Yunfan Li
5b8d8fbf6e [Tank target] Improve position 2024-09-26 20:02:37 +08:00