Commit Graph

805 Commits

Author SHA1 Message Date
nytmyr 90fe8a31d7 Add missing alert round for ranged attacks 2024-12-12 08:00:12 -06:00
nytmyr 783a5f0adf ^cast adjustments for spellid casts 2024-12-12 07:59:54 -06:00
Chris Miles 66a7dd0143 [Databuckets] Improved Reliability and Performance of Databuckets (#4562)
* [Databuckets] Don't broadcast client-scoped updates

* Remove temp feature flag

* Remove distributed caching, only cache for character scoped data, simplify

* Update bot.cpp

* Cleanup

* Update data_bucket.cpp

* Cleanup

* Cleanup

* Remove BulkLoadEntities from LoadNPCTypes

* Update data_bucket.cpp

* Cleanup

* More cleanup

* More cleanup

* BulkLoadEntities to BulkLoadEntitiesToCache

* Add CanCache in DeleteData to gate an unnecessary call
2024-12-12 01:17:08 -06:00
Alex King 5c6e7a8b09 [Cleanup] Convert Event Parses to Single Line (#4569)
* [Cleanup] Convert Event Parses to Single Line

* Push

* Update spells.cpp

* Update spells.cpp

---------

Co-authored-by: Akkadius <akkadius1@gmail.com>
2024-12-12 00:43:22 -06:00
nytmyr 186b06ef47 Add spellid option to ^cast to allow casting of a specific spell by ID 2024-12-11 07:19:17 -06:00
nytmyr afbf1b74c4 Add IsBlockedBuff to CastChecks 2024-12-11 07:18:40 -06:00
nytmyr 1536e26b31 rewrite GetCorrectSpellType 2024-12-11 07:18:12 -06:00
nytmyr 51711e799b remove unneeded checks on IsValidSpellTypeBySpellID 2024-12-10 14:07:21 -06:00
nytmyr 57a81fc310 Add more checks for CommandedSubTypes::AETarget 2024-12-10 14:04:07 -06:00
nytmyr f3e0fdae73 Add lull/aelull to ^cast 2024-12-10 14:03:33 -06:00
nytmyr 211908196e Remove misc target_type checks 2024-12-10 14:01:29 -06:00
nytmyr ef36f2873c Implement AAs and harmtouch/layonhands to ^cast --- fix IsValidSpellRange 2024-12-08 22:36:56 -06:00
nytmyr 9917be3094 Correct IsValidSpellRange 2024-12-08 22:35:36 -06:00
nytmyr 221333a7ba Add back !IsBotNonSpellFighter() check to the different CastCheck 2024-12-08 22:32:49 -06:00
nytmyr 8e40e5357c [Bots] Fix AA ranks to account for level (#4567)
Previously level requirement was only being checked on the initial rank of an AA. If passed, bots would gain all ranks for that AA regardless of level, this will now check for the level requirement for each rank before granting the AA
2024-12-06 23:58:11 -05:00
nytmyr 347a916bbb Move fizzle message to define 2024-12-06 22:32:34 -06:00
nytmyr 0f3c112972 [Bots] Fix AA ranks to account for level
Previously level requirement was only being checked on the initial rank of an AA. If passed, bots would gain all ranks for that AA regardless of level, this will now check for the level requirement for each rank before granting the AA
2024-12-06 22:29:18 -06:00
nytmyr 67ff004d61 cleanup ST_Self logic in CastChecks 2024-12-06 11:38:37 -06:00
nytmyr 3d4474861c Rewrite ^pull logic and handling. **MORE**
Add ^setassistee command to set who your bots will assist. Bots will always assist you first before anyone else.

If the rule Bots, AllowCrossGroupRaidAssist is enabled bots will assist the group or raid main assists.

Rewrites logic in handling of pull and returning to ensure bots make it back to their location.
2024-12-05 07:21:34 -06:00
nytmyr d6df4aae3f fully implement ^pull logic to always return, can still be overidden by ^attack 2024-12-04 20:56:09 -06:00
nytmyr b69ac7dc21 holding check at start of ai process 2024-12-02 21:25:06 -06:00
nytmyr f12e597ff3 more pull tweaks 2024-12-02 09:16:11 -06:00
nytmyr 1af85092f7 Implement spell AI pulling, fix throw stone 2024-12-02 07:32:30 -06:00
nytmyr 51eb75523e add !commandedspell() check to aggro checks on cast 2024-12-01 23:35:21 -06:00
nytmyr a22502a13d rename BOT_SPELL_TYPE functions 2024-12-01 23:33:21 -06:00
nytmyr af5dbbe932 remove unnecessary messages on silence /block for bots 2024-12-01 23:05:50 -06:00
nytmyr ea84fd75da Clean up and fix any melee attacks to line up with clients 2024-12-01 20:46:50 -06:00
nytmyr 962e2d80b9 fix AA loading and expansionbitmask saving/loading 2024-12-01 20:36:27 -06:00
nytmyr dc0819c2c6 misc cleanup 2024-11-28 22:33:30 -06:00
nytmyr ceeb083864 Allow bots to bypass los checks for positioning if no detrimental types allowed 2024-11-28 22:15:02 -06:00
nytmyr 6846bdc56c commanded spell fixes. All should be working now minus depart 2024-11-27 21:09:51 -06:00
nytmyr 156c928521 debug cleanup 2024-11-27 20:50:56 -06:00
nytmyr df6c6c3ea0 add aehateline spell type 2024-11-27 20:50:21 -06:00
nytmyr 10effce2a6 Implement more commanded types properly, move shadownight hate to hateline type...
Add incapacitated checks to casting logic and checks.
Add candocombat zone check, summon other's corpse for bot, in/out combat spell checks, mute checks, level restriction
2024-11-27 13:51:37 -06:00
nytmyr b200bdd04e implement commanded cast types 2024-11-26 13:17:57 -06:00
nytmyr bdea548460 fix resistbuffs and damageshields spell type checks 2024-11-26 13:17:56 -06:00
nytmyr d97f691255 misc cleanup 2024-11-26 13:17:56 -06:00
nytmyr 5c73581f90 Add AllowBotEquipAnyClassGear to bot trades 2024-11-14 20:09:19 -06:00
nytmyr 677a9fdfe0 Add more checks to bot names to prevent spacing or invalid characters 2024-11-14 20:08:57 -06:00
nytmyr 6d97536e38 Add loregroup 0 bypass for lore conflicts for bots like clients 2024-11-12 22:19:16 -06:00
nytmyr 464c69190d correct and tweak all combat positioning and combat range 2024-11-11 22:09:05 -06:00
nytmyr 8989c6f21b apply ranged setting on spawn to show correct weapons 2024-11-11 22:09:04 -06:00
nytmyr 18b6fc2667 adjust spell hold checks to rely on caster and
Implement pet resist buffs and pet damage shields
2024-11-11 22:08:51 -06:00
nytmyr 9f9c25c653 passivecheck response 2024-11-09 22:07:35 -06:00
nytmyr 0d970844d3 add passive stance checks to commands and loading/saving. shouldn't be ` 2024-11-09 22:00:20 -06:00
Chris Miles 0ea47fadee [Performance] Improvements to ScanCloseMobs logic (#4534)
* [Performance] Minor improvements to ScanCloseMobs

* Remove timer checks one level up to reduce branching

* Reserve memory in m_close_mobs to avoid frequent re-allocations if not already reserved.
2024-11-08 17:48:39 -06:00
nytmyr 57e9b62a48 Add viral, fear, stun, knockback, gravityeffect support to bots 2024-11-08 10:59:01 -06:00
nytmyr 31a4f053b5 bot movement cleanup and tweaks, move casterrange to distanceranged 2024-11-07 16:34:29 -06:00
nytmyr 775511c935 more target validation for bots to prevent pets from getting hit with AEs and pets trying to attack invalid targets 2024-11-07 16:34:28 -06:00
nytmyr 2dfa1681c4 Make rogue/monk evade logic more accurate to players 2024-11-06 07:30:24 -06:00