Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bots] Bot Overhaul #4580

Open
wants to merge 398 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
398 commits
Select commit Hold shift + click to select a range
53d4bc4
remove unnecessary messages on silence /block for bots
nytmyr Dec 2, 2024
003598a
fix changes made to mercs by mistake
nytmyr Dec 2, 2024
8c923a6
rename BOT_SPELL_TYPE functions
nytmyr Dec 2, 2024
6ef444a
remove unused functions
nytmyr Dec 2, 2024
036b524
add !commandedspell() check to aggro checks on cast
nytmyr Dec 2, 2024
f74fd59
Update cast.cpp
nytmyr Dec 2, 2024
faf372d
Implement spell AI pulling, fix throw stone
nytmyr Dec 2, 2024
efbf0b1
more pull tweaks
nytmyr Dec 2, 2024
cc5efa4
holding check at start of ai process
nytmyr Dec 3, 2024
6c19f3d
fully implement ^pull logic to always return, can still be overidden …
nytmyr Dec 5, 2024
9207be9
Rewrite ^pull logic and handling. **MORE**
nytmyr Dec 5, 2024
625c1fb
Move HateLine to a better ID
nytmyr Dec 6, 2024
912b6f0
cleanup ST_Self logic in CastChecks
nytmyr Dec 6, 2024
3b7edc0
Removed unused BotSpellTypeRequiresLoS
nytmyr Dec 6, 2024
88b0e4f
Move fizzle message to define
nytmyr Dec 7, 2024
30f1960
add timer checks to Idle/Engaged/Pursue CastCheck to early terminate
nytmyr Dec 7, 2024
0081d76
Add back !IsBotNonSpellFighter() check to the different CastCheck
nytmyr Dec 9, 2024
a8f048c
Correct IsValidSpellRange
nytmyr Dec 9, 2024
e9534e3
Implement AAs and harmtouch/layonhands to ^cast --- fix IsValidSpellR…
nytmyr Dec 9, 2024
d919cf2
Add PetDamageShields and PetResistBuffs to IsPetBotSpellType()
nytmyr Dec 9, 2024
e5c4916
Add priorities to HateLine inserts for db update
nytmyr Dec 10, 2024
c42d84b
Remove SpellTypeRequiresCastChecks
nytmyr Dec 10, 2024
7834222
Add bot check to DetermineSpellTargets for IsIllusionSpell
nytmyr Dec 10, 2024
70fe633
merge with previous
nytmyr Dec 10, 2024
746bccf
Correct bot checks for ST_GroupClientAndPet
nytmyr Dec 10, 2024
2bffc1b
Remove misc target_type checks
nytmyr Dec 10, 2024
bf4f2f5
Add lull/aelull to ^cast
nytmyr Dec 10, 2024
9d5b679
Add more checks for CommandedSubTypes::AETarget
nytmyr Dec 10, 2024
d3617a5
remove unneeded checks on IsValidSpellTypeBySpellID
nytmyr Dec 10, 2024
7111001
add to aelull
nytmyr Dec 11, 2024
92ba83e
rewrite GetCorrectSpellType
nytmyr Dec 11, 2024
c345187
Add IsBlockedBuff to CastChecks
nytmyr Dec 11, 2024
49e15d8
Add spellid option to ^cast to allow casting of a specific spell by ID
nytmyr Dec 11, 2024
693abdd
^cast adjustments for spellid casts
nytmyr Dec 12, 2024
1aa7159
Add missing alert round for ranged attacks
nytmyr Dec 12, 2024
f715924
More castcheck improvements
nytmyr Dec 12, 2024
83979ed
CanUseBotSpell for ^cast
nytmyr Dec 12, 2024
6ef9753
remove ht/loh from attack ai
nytmyr Dec 12, 2024
8094352
remove SetCombatRoundForAlerts that triggered every engagement
nytmyr Dec 12, 2024
96bc292
Add RangedAttackImmunity checks before trying to ranged attack
nytmyr Dec 12, 2024
f44af60
move bot backstab to mob
nytmyr Dec 12, 2024
adedd59
fix MinStatusToBypassCreateLimit
nytmyr Dec 12, 2024
94717ee
more backstab to mob cleanup
nytmyr Dec 13, 2024
5457d14
add bot checks to tryheadshot / tryassassinate
nytmyr Dec 13, 2024
046006c
adjust version number for bots
nytmyr Dec 13, 2024
cac5bcb
add back m_mob_check_moving_timer, necessary?
nytmyr Dec 13, 2024
1905deb
add sanity checks for classattacks
nytmyr Dec 13, 2024
3009942
Get rid of Bots:BotGroupXP and change logic to support Bots:SameRaidG…
nytmyr Dec 13, 2024
1c72d87
add "confirm" check to ^delete
nytmyr Dec 13, 2024
42ff352
Merge branch 'bot-rewrite' of https://github.com/nytmyr/Server into b…
nytmyr Dec 13, 2024
606cc11
Update bot.cpp
nytmyr Dec 13, 2024
d144d58
Remove `id` from bot_settings, correct types
nytmyr Dec 16, 2024
e220163
Implement blocked_buffs and blocked_pet_buffs
nytmyr Dec 16, 2024
f33ed3d
more blocked buff tweaks
nytmyr Dec 17, 2024
7ce3781
add beneficial check to ^blockedbuffs
nytmyr Dec 17, 2024
e1d4a68
command grammar
nytmyr Dec 17, 2024
8377797
missing )
nytmyr Dec 17, 2024
ffd9201
Move getnames for categories and settings to mob, rename hptomed/mana…
nytmyr Dec 18, 2024
21f8bc0
add GetBotSpellCategoryIDByShortName and CopyBotBlockedPetBuffs, upda…
nytmyr Dec 18, 2024
eaa1f67
cls cleanup
nytmyr Dec 20, 2024
fbecac0
Allow bots to clear HasProjectIllusion flag
nytmyr Dec 20, 2024
54b9825
Add PercentChanceToCastGroupCure
nytmyr Dec 20, 2024
322f8c5
Implmenet PetCures, add some missing types for defaults/chance to cast
nytmyr Dec 20, 2024
d64af96
Change GetRaidByBotName to GetRaidByBot
nytmyr Dec 20, 2024
d120b45
Typo on PetBuffs implement
nytmyr Dec 20, 2024
e031b4d
Change GetSpellListSpellType to GetParentSpellType
nytmyr Dec 20, 2024
66356a3
missing from GetChanceToCastBySpellType
nytmyr Dec 20, 2024
e710fbe
Fix performance in IsValidSpellRange by flipping HasProjectIllusion
nytmyr Dec 20, 2024
7870499
merge with prev
nytmyr Dec 20, 2024
e085780
merge with cls cleanup
nytmyr Dec 20, 2024
da5cb9c
Reorder IsTargetAlreadyReceivingSpell/CheckSpellLevelRestriction/IsBl…
nytmyr Dec 20, 2024
665d7e3
Combine GatherGroupSpellTargets and GatherSpellTargets
nytmyr Dec 20, 2024
1d0899f
Cleanup IsTargetAlreadyReceivingSpell
nytmyr Dec 20, 2024
62111da
Fix ^petsettype to account for usable levels of spells and remove har…
nytmyr Dec 20, 2024
a464784
Remove Bot_AICheckCloseBeneficialSpells and use AttemptCloseBeneficia…
nytmyr Dec 20, 2024
e930a1b
remove default hold for resist buffa
nytmyr Dec 21, 2024
c02259a
move IsValidSpellRange further down castchecks
nytmyr Dec 21, 2024
d05dcb5
raid optimizations
nytmyr Dec 21, 2024
6003762
correct name checking to match players
nytmyr Dec 22, 2024
2460f78
more name checks and add proper soft deletes to bots
nytmyr Dec 22, 2024
e4e7a30
organize some checks in IsImmuneToBotSpell
nytmyr Dec 22, 2024
e6081e0
Fix GetRaidByBotName and GetRaidByBot checks to not loop unnecessarily
nytmyr Dec 22, 2024
2a149f2
Move GatherSpellTargets to mob
nytmyr Dec 22, 2024
0c0fee1
Change GetPrioritizedBotSpellsBySpellType to vector
nytmyr Dec 22, 2024
f6fa286
Move GatherSpellTargets and Raid to stored variables.
nytmyr Dec 22, 2024
39b1f57
comment out precheck, delays, thresholds, etc logging
nytmyr Dec 22, 2024
998f348
Missing IsInGroupOrRaid cleanup
nytmyr Dec 22, 2024
83d41f0
Implement AIBot_spells_by_type to reduce looping when searching for s…
nytmyr Dec 23, 2024
69b4c3a
Add _tempSpellType as placeholder for any future passthru
nytmyr Dec 23, 2024
c7741ef
todo
nytmyr Dec 23, 2024
ef983c3
Move bot_list from std::list to std::unordered_map like other entities
nytmyr Dec 24, 2024
6ced4e6
Fix missing raid assignment for GetStoredRaid in IsInGroupOrRaid
nytmyr Dec 24, 2024
f438650
TempPet owned by bots that get the kill will now give exp like a clie…
nytmyr Dec 24, 2024
25ff56c
Remove unnecessary checks in bot process (closescanmoving timer, veri…
nytmyr Dec 24, 2024
9b5eca3
Fix client spell commands from saving the wrong setting
nytmyr Dec 24, 2024
5a000f1
Cleanup ^copysettings command and add new commands
nytmyr Dec 24, 2024
8b7ffd7
Add pet option to ^taunt
nytmyr Dec 24, 2024
e652bc0
Allow pet types to ^cast, prevent failure spam, add cure check
nytmyr Dec 24, 2024
8ed6dec
more raid optimizations, should be final.
nytmyr Dec 29, 2024
1c01b71
Move spell range check to proper location
nytmyr Dec 30, 2024
a0c2abf
Implement ^discipline
nytmyr Dec 30, 2024
2d7d58b
remove ^aggressive/^defensive
nytmyr Dec 30, 2024
d3ccff2
remove this for a separate PR
nytmyr Dec 30, 2024
d13a48f
cleanup
nytmyr Dec 30, 2024
f182294
Add BotGroupSay method
nytmyr Dec 30, 2024
4d7ac70
todo list
nytmyr Dec 30, 2024
8c30580
Merge branch 'master' into bot-rewrite
nytmyr Dec 30, 2024
85dbdb7
Add missing bot_blocked_buffs to schema
nytmyr Dec 30, 2024
61a3987
Remove plural on ^spelltypeidsand ^spelltypenames
nytmyr Dec 31, 2024
e994d14
Move spelltype names, spell subtypes, category names and setting name…
nytmyr Dec 31, 2024
67d7413
move los checks to mob.cpp
nytmyr Jan 8, 2025
c47233e
Merge branch 'master' into bot-rewrite
nytmyr Jan 8, 2025
0c62210
Bot CampAll fix
nytmyr Jan 8, 2025
85bd031
Bots special_attacks.cpp fix
nytmyr Jan 8, 2025
de053ce
Add zero check for bot spawn limits
nytmyr Jan 8, 2025
2fa32d1
Add HasSkill checks to bot special abilities (kick/bash/etc)
nytmyr Jan 8, 2025
40b676c
code cleanup 1
nytmyr Jan 10, 2025
95c1bb6
code cleanup 2
nytmyr Jan 10, 2025
90e9557
code cleanup 3
nytmyr Jan 10, 2025
f34a947
code cleanup 4
nytmyr Jan 10, 2025
fc527b8
fix ^cast wirh commanded types
nytmyr Jan 11, 2025
01afd68
Remove bcspells, fix helper_send_usage_required_bots
nytmyr Jan 11, 2025
e02839f
Merge branch 'master' into bot-rewrite
nytmyr Jan 11, 2025
bff1705
linux build fix
nytmyr Jan 11, 2025
e792c97
remove completed todo
nytmyr Jan 11, 2025
4134a30
Allow inventory give to specific ID slots
nytmyr Jan 12, 2025
8dce4cd
Update TODO
nytmyr Jan 12, 2025
394d8e3
Correct slot ranges for inventorygive
nytmyr Jan 12, 2025
7e05a6f
Add zone specific spawn limits and zone specific forced spawn limits
nytmyr Jan 19, 2025
9e7c1d8
remove bd. from update queries where it doesn't exist
nytmyr Jan 20, 2025
b447b45
Merge branch 'master' into bot-rewrite
nytmyr Jan 20, 2025
dff3af1
Rename _spellSettings to m_bot_spell_settings
nytmyr Jan 20, 2025
32a885d
Add IsPetOwnerOfClientBot(), add Lua and Perl methods
nytmyr Jan 20, 2025
744a1d2
Make botOwnerCharacterID snakecase
nytmyr Jan 20, 2025
28fbdc6
Throw bot_camp_timer behind Bots:Enabled rule
nytmyr Jan 20, 2025
3040d3b
Move various Bot<>Checks logging to BotSpellChecks
nytmyr Jan 20, 2025
17284ea
Remove from LogCategoryName
nytmyr Jan 20, 2025
f296ff5
Consolidate IsInGroupOrRaid
nytmyr Jan 20, 2025
1c2293e
Consolidate GatherSpellTargets
nytmyr Jan 20, 2025
65f3f90
Add missing Bot Spell Type Checks to log
nytmyr Jan 20, 2025
5de7299
Add GetParentSpellType when checking spelltypes for idle, engaged, pu…
nytmyr Jan 21, 2025
46a4567
Consolidate AttemptForcedCastSpell
nytmyr Jan 21, 2025
3a25d51
Consolidate SetBotBlockedBuff/SetBotBlockedPetBuff
nytmyr Jan 21, 2025
e763e0e
Add list option to ^spellpriority commands.
nytmyr Jan 21, 2025
87bd374
Move client functions to client_bot
nytmyr Jan 21, 2025
37910cf
Move mob functions to mob_bot
nytmyr Jan 21, 2025
2301b91
Move bot spdat functions to spdat_bot
nytmyr Jan 21, 2025
e9d8093
Move SendCommandHelpWindow to SendBotCommandHelpWindow and simplify
nytmyr Jan 22, 2025
81d9ab3
Change char_id to character_id for bot_settings
nytmyr Jan 22, 2025
37a61e7
update todo
nytmyr Jan 22, 2025
dec2eba
Merge branch 'master' into bot-rewrite
nytmyr Jan 22, 2025
42b4174
Fix typo on merge conflict
nytmyr Jan 22, 2025
850e996
Cleanup command format changes, remove hardcoded class IDs in examples.
nytmyr Jan 22, 2025
4ff7e98
Set #illusionblock for players to guide access
nytmyr Jan 23, 2025
400bf12
Move client commands for bot spells from gm commands to existing bot …
nytmyr Jan 23, 2025
fa69e4a
Fix alignment issues
nytmyr Jan 23, 2025
3ac3861
More alignment fixes
nytmyr Jan 23, 2025
529d26a
More cleanup 1
nytmyr Jan 23, 2025
6364b00
More cleanup 2
nytmyr Jan 23, 2025
b836e78
Fix BotMeditate to med at proper percentages
nytmyr Jan 23, 2025
88d3bcf
Correct GetStopMeleeLevel checks for some buff checks
nytmyr Jan 23, 2025
389c861
Add back hpmanaend update to bot raid, force timer update to prevent …
nytmyr Jan 23, 2025
aea4b1f
Remove log
nytmyr Jan 24, 2025
e1925d1
Cleanup ranged and ammo calculations - Adds throwing check for match
nytmyr Jan 24, 2025
9134516
Add check in distance calculations to stay at range if set even if no…
nytmyr Jan 24, 2025
8b863f4
Move melee distance calculations to better function
nytmyr Jan 24, 2025
cec1dbd
Add GetBuffTargets helper
nytmyr Jan 24, 2025
f8ff679
Missing p_item, s_item in CombatRangeInput
nytmyr Jan 24, 2025
f50b64c
Linux test?
nytmyr Jan 24, 2025
06dcd62
Reduce GetCorrectBotSpellType branching slightly
nytmyr Jan 24, 2025
58a7d25
Line fixes
nytmyr Jan 24, 2025
22121b7
Make bot pets only do half damage in pvp
nytmyr Jan 25, 2025
fbaa095
Add bot pet pvp damage to tune
nytmyr Jan 25, 2025
41f362c
Add bot pet check for AIYellForHelp
nytmyr Jan 25, 2025
b82ed57
Add bots to UseSpellImpliedTargeting
nytmyr Jan 25, 2025
2df4a4e
Move toggleranged, togglehelm and illusionblock to new help window. A…
nytmyr Jan 25, 2025
abaefc8
Add bot and bot pet checks to various spells, auras and targeting che…
nytmyr Jan 25, 2025
d5be066
update todo
nytmyr Jan 25, 2025
764715f
New lines
nytmyr Jan 26, 2025
fbb2341
Correct DoLosChecks
nytmyr Jan 26, 2025
72fb75a
Remove Log TestDebug
nytmyr Jan 27, 2025
41b8cb3
Remove _Struct from struct declarations
nytmyr Jan 27, 2025
f51d13e
Add bot check to IsAttackAllowed for GetUltimateOwner to skip entity …
nytmyr Jan 27, 2025
187665f
Wrap SaveBotSettings in Bots Enabled check
nytmyr Jan 27, 2025
975af5e
Remove comment
nytmyr Jan 27, 2025
3dfa099
Wrap bot setting loading for clients in bots enabled rule
nytmyr Jan 27, 2025
323f144
Cleanup BlockedBuffs logic in SpellOnTarget
nytmyr Jan 27, 2025
b3a550f
Rename BotSpells_Struct/BotSpells_Struct_wIndex
nytmyr Jan 27, 2025
b84ccab
Rename spawn/create status bypass rules, fix return for spawn limit
nytmyr Jan 27, 2025
65b2fa3
Remove unnecessary return in CanBuffStack, cleanup
nytmyr Jan 27, 2025
2c78803
Enable recastdelay support for clients
nytmyr Jan 27, 2025
421e590
Merge branch 'master' into bot-rewrite
nytmyr Jan 27, 2025
49ad193
Remove unused variables
nytmyr Jan 28, 2025
ef0ff10
Rename _assistee to bot_assistee
nytmyr Jan 28, 2025
249fb0f
hardcode BotCommandHelpWindow colors
nytmyr Jan 28, 2025
69d5d1a
todo
nytmyr Jan 28, 2025
b5a2005
Fix ^cast summoncorpse
nytmyr Jan 28, 2025
56a9853
todo
nytmyr Jan 28, 2025
989c6a4
Reimplement secondary colors to BotSendCommandHelpWindow
nytmyr Jan 29, 2025
60d96d6
Give ^copysettings/^defaultsettings more options, cleanup.
nytmyr Jan 29, 2025
548e3ca
Cleanup some commands
nytmyr Jan 29, 2025
626b7fd
Add comment to CheckLosCheat/CheckLosCheatExempt
nytmyr Jan 29, 2025
db00064
Make struct BotSpellSettings snake case
nytmyr Jan 29, 2025
f99c19d
Allow duplicate casts of same spell on target for heals and cures
nytmyr Jan 29, 2025
6b5b19a
Add default delay to cures
nytmyr Jan 29, 2025
fdadde4
Remove unused methods
nytmyr Jan 29, 2025
9b72672
Implement missing ^spellresistlimits/^resistlimits command
nytmyr Jan 31, 2025
e039ce2
Move functions out of mob.h and cleanup
nytmyr Jan 31, 2025
e695f1c
Return for GetRawBotList
nytmyr Jan 31, 2025
c08893f
Rename BotGroupSay to RaidGroupSay
nytmyr Jan 31, 2025
01a0b7f
Prevent bots from forming their own group if a bot that is a group le…
nytmyr Jan 31, 2025
3ce9579
Linux fix?
nytmyr Jan 31, 2025
d810d32
IsPetOwner fixes
nytmyr Jan 31, 2025
54717ec
Merge branch 'master' into bot-rewrite
nytmyr Jan 31, 2025
bf8a576
Add remove option to list for ^blockedbuffs / ^blockedpetbuffs
nytmyr Jan 31, 2025
bd97453
Implement ^spellannouncecasts to toggle announcing casts of spell types
nytmyr Jan 31, 2025
af4bbff
Remove rule Bots:BardsAnnounceCasts
nytmyr Jan 31, 2025
11963a1
Update bot.h
nytmyr Jan 31, 2025
a765e32
Remove unused no_pets option from GatherSpellTargets
nytmyr Jan 31, 2025
939e5ea
Move ^attack response back to normal chat window (other)
nytmyr Jan 31, 2025
2211e12
Set lower limit of spell delays to 100 rather than 1
nytmyr Jan 31, 2025
09bbe87
Correct pet checks on GetUltimateSpell functions
nytmyr Jan 31, 2025
c5aa1ea
Add rules (Bots, AICastSpellTypeDelay, Bots, AICastSpellTypeHeldDelay…
nytmyr Jan 31, 2025
e5bcb6a
Correct pet buff type logic to catch DS/Resists with other spell effe…
nytmyr Jan 31, 2025
660cf91
Fix defaults for clients
nytmyr Jan 31, 2025
fef8c62
Add more logic for necros/shaman for default heal thresholds due to l…
nytmyr Jan 31, 2025
980aa65
Rename SpellHold, SpellDelay, SpellMinThreshold, SpellMaxThreshold, S…
nytmyr Jan 31, 2025
a008e75
Use GetTempSpellType() for announce check in RaidGroupSay
nytmyr Jan 31, 2025
2fdc4e8
Make all spell shortnames plural where applicable
nytmyr Feb 1, 2025
c3cbc4b
Update bot.cpp
nytmyr Feb 1, 2025
498b64f
Bots:BotsUseLiveBlockedMessage filter to spell failure
nytmyr Feb 1, 2025
46a1b26
Move GetSpellTargetList to only get called when necessary to reduce o…
nytmyr Feb 1, 2025
3a0ea23
formatting
nytmyr Feb 2, 2025
9b928e0
Merge branch 'master' into bot-rewrite
nytmyr Feb 2, 2025
848cb94
Formatting
Akkadius Feb 2, 2025
db9fe0f
Simplify case SE_Illusion and SE_IllusionCopy for GetIllusionBlock
nytmyr Feb 2, 2025
cbb619c
Clean up InterruptSpell
nytmyr Feb 2, 2025
b90f11f
Cleanup IsBot() checks for DetermineSpellTargets->ST_GroupClientAndPet
nytmyr Feb 2, 2025
8a31caa
Cleanup range/aoe_range check in SpellFinished
nytmyr Feb 2, 2025
32a7c01
Cleanup DetermineSpellTargets->ST_GroupNoPets
nytmyr Feb 2, 2025
53876e2
Cleanup DetermineSpellTargets->ST_Self for bot summon corpse
nytmyr Feb 2, 2025
a3085be
Cleanup DetermineSpellTargets->ST_Pet
nytmyr Feb 2, 2025
b57be45
Cleanup bot logic in TryBackstab
nytmyr Feb 2, 2025
91996f1
Cleanup IsAttackAllowed checks for bots and their pets
nytmyr Feb 2, 2025
f2df8ab
Cleanup StopMoving for bots
nytmyr Feb 2, 2025
23960b9
Cleanup CanThisClassTripleAttack
nytmyr Feb 2, 2025
d71e121
Fix casting for GetIllusionBlock checks
nytmyr Feb 2, 2025
4fe90b1
Merge branch 'bot-rewrite' of https://github.com/nytmyr/Server into b…
nytmyr Feb 2, 2025
6338bd8
Formatting
nytmyr Feb 2, 2025
3e8ad56
Fix DetermineSpellTargets for group spells (this also wasn't properly…
nytmyr Feb 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ SET(common_sources
skills.cpp
skill_caps.cpp
spdat.cpp
spdat_bot.cpp
strings.cpp
struct_strategy.cpp
textures.cpp
Expand Down
2 changes: 2 additions & 0 deletions common/classes.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ static std::map<uint8, std::string> class_names = {
#define ARMOR_TYPE_LAST ARMOR_TYPE_PLATE
#define ARMOR_TYPE_COUNT 5

#define BOT_CLASS_BASE_ID_PREFIX 3000


const char* GetClassIDName(uint8 class_id, uint8 level = 0);

Expand Down
1,945 changes: 1,945 additions & 0 deletions common/database/database_update_manifest_bots.cpp

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions common/database_schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ namespace DatabaseSchema {
static std::vector<std::string> GetBotTables()
{
return {
"bot_blocked_buffs",
"bot_buffs",
"bot_command_settings",
"bot_create_combinations",
Expand All @@ -419,6 +420,7 @@ namespace DatabaseSchema {
"bot_pet_buffs",
"bot_pet_inventories",
"bot_pets",
"bot_settings",
"bot_spell_casting_chances",
"bot_spell_settings",
"bot_spells_entries",
Expand Down
8 changes: 7 additions & 1 deletion common/eqemu_logsys.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ namespace Logs {
EvolveItem,
PositionUpdate,
KSM,
BotSettings,
BotSpellChecks,
BotSpellTypeChecks,
MaxCategoryID /* Don't Remove this */
};

Expand Down Expand Up @@ -248,7 +251,10 @@ namespace Logs {
"XTargets",
"EvolveItem",
"PositionUpdate",
"KSM" // Kernel Samepage Merging
"KSM", // Kernel Samepage Merging
"Bot Settings",
"Bot Spell Checks",
"Bot Spell Type Checks"
};
}

Expand Down
30 changes: 30 additions & 0 deletions common/eqemu_logsys_log_aliases.h
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,36 @@
OutF(LogSys, Logs::Detail, Logs::KSM, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)

#define LogBotSettings(message, ...) do {\
if (LogSys.IsLogEnabled(Logs::General, Logs::BotSettings))\
OutF(LogSys, Logs::General, Logs::BotSettings, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)

#define LogBotSettingsDetail(message, ...) do {\
if (LogSys.IsLogEnabled(Logs::Detail, Logs::BotSettings))\
OutF(LogSys, Logs::Detail, Logs::BotSettings, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)

#define LogBotSpellChecks(message, ...) do {\
if (LogSys.IsLogEnabled(Logs::General, Logs::BotSpellChecks))\
OutF(LogSys, Logs::General, Logs::BotSpellChecks, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)

#define LogBotSpellChecksDetail(message, ...) do {\
if (LogSys.IsLogEnabled(Logs::Detail, Logs::BotSpellChecks))\
OutF(LogSys, Logs::Detail, Logs::BotSpellChecks, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)

#define LogBotSpellTypeChecks(message, ...) do {\
if (LogSys.IsLogEnabled(Logs::General, Logs::BotSpellTypeChecks))\
OutF(LogSys, Logs::General, Logs::BotSpellTypeChecks, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)

#define LogBotSpellTypeChecksDetail(message, ...) do {\
if (LogSys.IsLogEnabled(Logs::Detail, Logs::BotSpellTypeChecks))\
OutF(LogSys, Logs::Detail, Logs::BotSpellTypeChecks, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)

#define Log(debug_level, log_category, message, ...) do {\
if (LogSys.IsLogEnabled(debug_level, log_category))\
LogSys.Out(debug_level, log_category, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
Expand Down
4 changes: 2 additions & 2 deletions common/net/websocket_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct MethodHandlerEntry
struct EQ::Net::WebsocketServer::Impl
{
std::unique_ptr<TCPServer> server;
std::unique_ptr<EQ::Timer> ping_timer;
std::unique_ptr<EQ::Timer> m_ping_timer;
std::map<std::shared_ptr<websocket_connection>, std::unique_ptr<WebsocketServerConnection>> connections;
std::map<std::string, MethodHandlerEntry> methods;
websocket_server ws_server;
Expand Down Expand Up @@ -54,7 +54,7 @@ EQ::Net::WebsocketServer::WebsocketServer(const std::string &addr, int port)
return websocketpp::lib::error_code();
});

_impl->ping_timer = std::make_unique<EQ::Timer>(5000, true, [this](EQ::Timer *t) {
_impl->m_ping_timer = std::make_unique<EQ::Timer>(5000, true, [this](EQ::Timer *t) {
auto iter = _impl->connections.begin();

while (iter != _impl->connections.end()) {
Expand Down
Loading