Commit Graph
1116 Commits
Author SHA1 Message Date
Shauren 3fb57b3400 Core/Players: Define new CharacterFlags4
Signed-off-by: luis <[email protected]>
2026-04-02 21:17:53 -03:00
luis 6fe779653e stormwind and westfall quests 2026-04-02 21:15:53 -03:00
luis 46119ca344 fix crash 2026-04-02 20:54:26 -03:00
Céfiro_Caecias 5645f0d317 DB/World: Delves 2026-04-02 20:05:33 -03:00
luis dca94e188e try fix mem leak 2026-04-02 18:52:33 -03:00
Céfiro_Caecias 1e844d37c3 DB/World: DBErrors Fixes 2026-04-02 17:47:48 -03:00
luis 0ea70dfd04 fix mem leak 2026-04-02 17:32:28 -03:00
luis 11f61d1b71 fix pet quests 2026-04-02 16:11:01 -03:00
luis 6f692fe708 Fix missing credit 2026-04-02 15:59:28 -03:00
luis 7c129b5ff6 Fixed pve battlepet 2026-04-02 13:27:53 -03:00
Céfiro_Caecias f26b019082 DB/Hotfixes: item_sparse 2026-04-02 12:09:43 -03:00
Céfiro_Caecias 04fa944d30 Update worldserver.conf.dist 2026-04-02 12:08:33 -03:00
Céfiro_Caecias 57aadf1f71 Update bnetserver.conf.dist 2026-04-02 12:07:59 -03:00
luis 0ca9b21f3c lua fixes 2026-04-02 12:01:16 -03:00
Céfiro_Caecias 6e99574801 DB/World: item_loot_template 2026-04-02 11:50:23 -03:00
luis 8943d3ae93 Core/Spells: Suppress a few float/double/int conversion warnings in Player::GetSpellModValues 2026-04-02 11:40:55 -03:00
luis baa8a5d992 Only blacklist NPC when 0 quests accepted — allow revisit for multi-quest NPCs 2026-04-02 11:19:40 -03:00
Céfiro_Caecias def278552a DB/World: item_loot_template 2026-04-01 18:36:09 -03:00
luis 612fd1fc4f core warning fix 2026-04-01 18:12:28 -03:00
Céfiro_Caecias 698de53b1c DB/World: Loots Calibrations 2026-04-01 10:03:12 -03:00
Céfiro_Caecias 96066157ac Update 2026_04_01_00_world.sql 2026-04-01 09:51:27 -03:00
luis a7ed1f23b1 move logs to debug 2026-04-01 05:18:53 -03:00
luis 7ca05b3162 Allow repeatable quests once — skip only if already rewarded 2026-04-01 05:17:58 -03:00
luis c8c16e7942 Skip repeatable quests in bot quest acceptance to prevent infinite loops 2026-04-01 05:14:36 -03:00
luis 337a90cc8a Fix quest search looping 10k+ times — add 10s cooldown and always blacklist NPC 2026-04-01 05:13:31 -03:00
luis 953a25817d ++ 2026-04-01 04:57:59 -03:00
luis 56a2bc7bcf delves 2026-04-01 04:23:54 -03:00
luis 7ad5c0f974 rework delve 2026-04-01 04:13:12 -03:00
Sefrenia fd5575a998 Limpieza Marzo 2026 2026-04-01 02:23:32 -03:00
luis 47858a8f24 fix crash 2026-04-01 02:14:57 -03:00
luis de2070d7d6 Core/WorldStates: Fixed thread unsafe access to realm wide world states 2026-04-01 01:27:59 -03:00
luis 9a5c1349a8 Fix bot crash full 2026-04-01 00:43:11 -03:00
luis 467108c9e9 full fix bot crashes 2026-03-31 21:41:02 -03:00
Sefrenia 1b0d56d51c Corrección. 2026-03-31 20:42:26 -03:00
luis f362ce3842 wrong location 2026-03-31 20:39:51 -03:00
luis 9214c26cb7 Add ThreadSafePathfinder for worker thread navmesh queries
TrinityCore's PathGenerator uses a shared dtNavMeshQuery which is NOT
thread-safe — calling it from bot worker threads causes ACCESS_VIOLATION
crashes in dtNavMeshQuery::getPathToNode.

ThreadSafePathfinder creates per-thread dtNavMeshQuery instances using
thread_local storage. Each thread gets its own query with independent
node pool and open list, sharing the read-only dtNavMesh. This is safe
because dtNavMesh is read-only after tile loading.

API: ThreadSafePathfinder::IsReachable(mapId, start, dest)
- Returns true if navmesh path exists from start to dest
- Creates query on first use per thread per map
- 64-poly path check (enough for reachability, not full pathfinding)

Re-enabled navmesh reachability check in SearchForQuestGivers using
the thread-safe pathfinder instead of PathGenerator.
2026-03-31 20:37:25 -03:00
luis e52591b5be fix 2026-03-31 20:15:59 -03:00
Céfiro_Caecias 03ceded909 DB/World: item_loot_template 2026-03-31 20:09:28 -03:00
luis 091327bf00 Fix ACCESS_VIOLATION crash in PathGenerator from worker thread 2026-03-31 20:02:04 -03:00
agatho afb1d1a86f Convert remaining AI files to spatial grid health/position reads
Signed-off-by: luis <[email protected]>
2026-03-31 19:52:57 -03:00
Céfiro_Caecias 9529c86d9c DB/World: Fixes 2026-03-31 19:51:33 -03:00
agatho 2600feca84 Convert combat position/distance reads to spatial grid
Added GetBotPosition(), GetBotDistanceTo(), GetBotDistance2dTo() to
SpatialGridQueryHelpers for thread-safe position reads.

Converted position reads in:
- PositionManager: 15 GetPosition/GetExactDist calls
- CombatStateAnalyzer: 4 GetPositionX/Y/Z calls

Combat distance calculations now use the spatial grid position which
is updated every 100ms from the main thread, eliminating stale position
data that caused bots to walk through walls and air.

Signed-off-by: luis <[email protected]>
2026-03-31 19:51:21 -03:00
luis 8d78c637fd Convert combat managers to use spatial grid for health reads 2026-03-31 19:46:13 -03:00
luis 741e3b5215 full update opcodes 2026-03-31 17:51:03 -03:00
luis 598b054bed more opcodes 2026-03-31 17:39:03 -03:00
luis dcd9f13034 missing opcodes implementation 2026-03-31 17:31:19 -03:00
luis f43549b385 CMSG_CLEAR_NEW_APPEARANCE 2026-03-31 17:13:20 -03:00
luis aefc60cbbe CMSG_BATTLEMASTER_JOIN_SKIRMISH 2026-03-31 17:08:41 -03:00
luis 1d72fd7232 real fix for unlcok races 2026-03-31 16:54:45 -03:00
luis c700e34a16 fix 2026-03-31 16:45:24 -03:00