Commit Graph

769 Commits

Author SHA1 Message Date
nytmyr 6364b00efd More cleanup 2 2025-01-23 13:58:27 -06:00
nytmyr 529d26a132 More cleanup 1 2025-01-23 13:28:12 -06:00
nytmyr dec2eba6e5 Merge branch 'master' into bot-rewrite 2025-01-22 15:56:37 -06:00
nytmyr 37a61e7234 update todo 2025-01-22 15:52:15 -06:00
Chris Miles 25826c6686 [Performance] Client / NPC Position Update Optimizations (#4602)
* Zone optimizations

* More changes

* More

* Update entity.cpp

* Beautiful

* Amazing

* Feature flag all logic

* Broadcast to group

* Update mob.cpp

* Updates

* Update client.cpp

* Update client.cpp

* Add rule Zone:EnableEntityClipping

* Little bit of cleanup

* Don't send update to self while in group

* Remove visibility work and feature flags

* Cleanup

* Logging

* Improve CheckSendBulkNpcPositions

* No need to cast

* Field cleanup

* Build initial list on zone-in
2025-01-21 15:35:19 -06:00
nytmyr 2301b91e77 Move bot spdat functions to spdat_bot 2025-01-21 13:13:30 -06:00
nytmyr 3a25d51095 Consolidate SetBotBlockedBuff/SetBotBlockedPetBuff 2025-01-20 20:17:38 -06:00
nytmyr 46a45679b2 Consolidate AttemptForcedCastSpell 2025-01-20 19:30:26 -06:00
nytmyr 3040d3bc97 Move various Bot<>Checks logging to BotSpellChecks 2025-01-20 13:03:58 -06:00
nytmyr 744a1d23c0 Make botOwnerCharacterID snakecase 2025-01-20 11:56:27 -06:00
nytmyr dff3af1193 Rename _spellSettings to m_bot_spell_settings 2025-01-20 10:44:22 -06:00
nytmyr 8dce4cd9bf Update TODO 2025-01-12 15:38:43 -06:00
nytmyr 4134a30f59 Allow inventory give to specific ID slots 2025-01-12 15:38:00 -06:00
nytmyr e792c97d67 remove completed todo 2025-01-11 16:19:33 -06:00
nytmyr 01afd68230 Remove bcspells, fix helper_send_usage_required_bots 2025-01-11 01:40:32 -06:00
nytmyr fc527b8077 fix ^cast wirh commanded types 2025-01-11 01:31:17 -06:00
nytmyr f34a9470a8 code cleanup 4 2025-01-10 12:23:40 -06:00
nytmyr 95c1bb6883 code cleanup 2 2025-01-10 11:45:00 -06:00
nytmyr 40b676c320 code cleanup 1 2025-01-09 23:01:48 -06:00
nytmyr 2fa32d1874 Add HasSkill checks to bot special abilities (kick/bash/etc) 2025-01-08 17:15:04 -06:00
nytmyr 4d7ac703fd todo list 2024-12-30 13:08:32 -06:00
nytmyr d13a48fc93 cleanup 2024-12-30 13:02:06 -06:00
nytmyr a0c2abfedf Implement ^discipline 2024-12-29 20:01:18 -06:00
nytmyr 1c01b716d5 Move spell range check to proper location 2024-12-29 20:01:01 -06:00
nytmyr 8ed6dece34 more raid optimizations, should be final.
10 clients, 710 bots, 10 raids, ~250 pets sits around 3.5% CPU idle
2024-12-28 22:58:07 -06:00
nytmyr 25ff56ca23 Remove unnecessary checks in bot process (closescanmoving timer, verify raid, send hp/mana/end packet 2024-12-23 23:28:49 -06:00
nytmyr ef983c3d47 Move bot_list from std::list to std::unordered_map like other entities 2024-12-23 20:50:36 -06:00
nytmyr c7741efbe5 todo 2024-12-22 22:39:39 -06:00
nytmyr 69b4c3a5a4 Add _tempSpellType as placeholder for any future passthru 2024-12-22 22:39:27 -06:00
nytmyr 83d41f00d2 Implement AIBot_spells_by_type to reduce looping when searching for spells 2024-12-22 22:38:52 -06:00
nytmyr 39b1f57ef3 comment out precheck, delays, thresholds, etc logging
missed some in "organize some checks in IsImmuneToBotSpell"
2024-12-22 00:29:58 -06:00
nytmyr f6fa28681b Move GatherSpellTargets and Raid to stored variables.
Missing some in "organize some checks in IsImmuneToBotSpell"
2024-12-22 00:29:15 -06:00
nytmyr 2a149f2949 Move GatherSpellTargets to mob 2024-12-22 00:24:31 -06:00
nytmyr 2460f78015 more name checks and add proper soft deletes to bots 2024-12-22 00:05:45 -06:00
nytmyr d05dcb5d60 raid optimizations 2024-12-20 21:21:14 -06:00
nytmyr c02259aceb move IsValidSpellRange further down castchecks 2024-12-20 21:20:38 -06:00
nytmyr a46478468c Remove Bot_AICheckCloseBeneficialSpells and use AttemptCloseBeneficialSpells for better performance 2024-12-20 13:10:50 -06:00
nytmyr 1d0899fa0a Cleanup IsTargetAlreadyReceivingSpell 2024-12-20 09:50:27 -06:00
nytmyr 665d7e3641 Combine GatherGroupSpellTargets and GatherSpellTargets 2024-12-20 09:50:07 -06:00
nytmyr da5cb9c936 Reorder IsTargetAlreadyReceivingSpell/CheckSpellLevelRestriction/IsBlockedBuff 2024-12-20 09:48:06 -06:00
nytmyr e031b4d1e0 Change GetSpellListSpellType to GetParentSpellType 2024-12-20 09:42:01 -06:00
nytmyr d64af967ea Change GetRaidByBotName to GetRaidByBot 2024-12-20 09:40:01 -06:00
nytmyr 322f8c5ffd Implmenet PetCures, add some missing types for defaults/chance to cast 2024-12-20 09:38:40 -06:00
nytmyr eaa1f67802 cls cleanup 2024-12-20 00:44:49 -06:00
nytmyr 21f8bc0f95 add GetBotSpellCategoryIDByShortName and CopyBotBlockedPetBuffs, update ^defaultsettings command 2024-12-17 23:20:39 -06:00
nytmyr ffd92017e0 Move getnames for categories and settings to mob, rename hptomed/manatomed 2024-12-17 23:03:42 -06:00
nytmyr f33ed3d4cd more blocked buff tweaks 2024-12-17 13:09:22 -06:00
nytmyr e220163153 Implement blocked_buffs and blocked_pet_buffs 2024-12-15 23:09:32 -06:00
nytmyr 606cc11040 Update bot.cpp 2024-12-13 15:39:35 -06:00
nytmyr 42ff352917 Merge branch 'bot-rewrite' of https://github.com/nytmyr/Server into bot-rewrite 2024-12-13 15:38:10 -06:00