Commit Graph
942 Commits
Author SHA1 Message Date
luis 4b4279a724 db blizzlike fixes 2026-02-20 23:00:08 -03:00
luis 269706edd1 build 66044 2026-02-20 22:33:32 -03:00
luis ae019241ae bpet and housing merge 2026-02-20 22:04:42 -03:00
luis 6742e1d1c9 Housing: Add house GO spawning, position persistence, decor GO spawning, and budget fix
Spawn the physical house structure GameObject when a player buys a plot,
using the DB2 PlotGameObjectID at the plot's HousePosition. Persist
player-chosen house positions to the database so they survive relogs.
Fix the SetHousePosition handler to actually store and apply the position
instead of being a no-op.

Spawn placed decor items as visible GameObjects with the FHousingDecor_C
entity fragment (InitHousingDecorData), following the cornerstone pattern.
Hook decor GO spawn/move/despawn into the Place/Move/Remove handlers so
furniture appears and updates in real time.

Fix outdoor decor budget enforcement: decor with roomGuid=0 now routes
to the exterior budget instead of always counting as interior.

Fix edit mode response wire format to match Fixture/Room pattern
(uint32 Result + Bit Active).

Set default _houseType to 32 (sniff-verified) instead of 0.
2026-02-20 21:55:29 -03:00
luis a025e8ba54 spell proc 2026-02-20 08:19:24 -03:00
luis 204748c946 ++ 2026-02-20 08:17:32 -03:00
Jeremy 973fc27bcd DB/Spells: Added proc data for Ragedrinker (Fury Warrior Talent) (#31667)
Signed-off-by: luis <[email protected]>
2026-02-20 08:17:03 -03:00
luis 92f0c7b66e typo fix 2026-02-20 08:15:32 -03:00
Jeremy c0c3c93e24 Scripts/Spells: Update warrior talent Frenzy (#31665)
Signed-off-by: luis <[email protected]>
2026-02-20 08:15:21 -03:00
Jeremy e53e5c778b DB/Spells: Add proc data for Bloodborne (Fury Warrior Talent) (#31664)
Signed-off-by: luis <[email protected]>
2026-02-19 22:08:33 -03:00
Aqua Deus 52b5f8575f Scripts/Spells: Implement dk talent Blood Bond talent (#31652)
Signed-off-by: luis <[email protected]>
2026-02-19 22:06:51 -03:00
luis 73b50b3188 +++ 2026-02-19 22:04:33 -03:00
luis 80b48ed376 ++++ 2026-02-19 22:02:39 -03:00
luis a52fee1531 65940 2026-02-19 21:57:04 -03:00
luis fb2af6d9ef +++ 2026-02-19 21:55:56 -03:00
luis 8b0c12f566 Pet Battles: Full 12.0 audit, fix type matrix, add NPC battles, complete PvP flow
- Fix type effectiveness matrix (9/10 rows had wrong strong/weak, 0.67->0.66)
- Fix state machine enum to match client (add CREATED_FAILED, FINAL_ROUND)
- Add PetBattleEffectFlags (miss/crit/heal/immune/strong/weak) and populate them
- Add post-battle health sync back to journal with 50% auto-heal
- Add missing effect types (REPLACE_PET, OVERRIDE_ABILITY, WORLD_STATE_UPDATE)
- Implement GetTrapStatus() with full validation (species, health, journal)
- Add PetBattlePetStatusFlags and compute from pet state
- Add PetBattleInputFlags (ability/swap locked, waiting for pet)
- Add ability lockdown tracking alongside cooldowns
- Add critical hit system (5% base, 1.5x multiplier) via DamageResult struct
- Expand PetBattleRequestFailReason to 24 values matching client
- Add max game length warning (5 min before timeout)
- Implement NPC trainer battles (LoadNPCTeams from world DB, CreateNPCBattle,
  InitNPCBattle, GenerateNPCTeamInput with enhanced AI)
- Add battle_pet_npc_team SQL schema
- Complete PvP flow: full validation, accept/decline, proper queue status codes
- Add PvP forfeit penalty (Pet Battle Deserter debuff)
- Add SMSG_BATTLE_PETS_HEALED and SMSG_BATTLE_PET_TRAP_LEVEL packets
- Register CMSG_BATTLE_PET_UPDATE_DISPLAY_NOTIFY handler
- Add boss pet handling (damage cap at 35% max HP, not capturable)
- Add aura state flags (JUST_APPLIED on creation, INFINITE for permanent)
- Add achievement criteria (WinPetBattle, LosePetBattle, capture)
2026-02-19 21:16:30 -03:00
agathoandClaude Opus 4.6 612c75a683 Housing: Send neighborhood context on map entry and import AT 37358
Two fixes to enable Cornerstone click interaction:

1. Send SMSG_HOUSING_GET_CURRENT_HOUSE_INFO_RESPONSE proactively in
   HousingMap::AddPlayerToMap() so the client can call
   SetViewingNeighborhood() and populate its global housing context.
   Without this, GetCornerstoneNeighborhoodInfo() returns empty data
   and the Cornerstone purchase UI cannot display.

2. Add SQL migration for AreaTrigger entry 37358 (housing plot AT)
   with ScriptName='at_housing_plot', Shape=Sphere, radius=40 yards.
   Without this in the database, CreateStaticAreaTrigger() silently
   fails and SMSG_NEIGHBORHOOD_PLAYER_ENTER_PLOT never fires.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: luis <[email protected]>
2026-02-19 21:05:05 -03:00
agathoandClaude Opus 4.6 98795165b0 Housing: Add ALTER TABLE migration for 3 new character_housing columns
Adds exteriorLocked, houseSize, and houseType columns to existing
character_housing tables via ALTER TABLE (the schema file was updated
in the prior commit but existing databases need this migration).

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: luis <[email protected]>
2026-02-19 20:59:33 -03:00
luis be4b5a3025 update 2026-02-19 20:35:21 -03:00
luis 806cc6193c ++ 2026-02-19 20:23:21 -03:00
agathoandClaude Opus 4.6 70823e16fd Housing: Add Alliance neighborhood world data for Map 2735
Creature templates, spawns, models, gameobject templates, spawns,
gossip menus, vendor inventories, quest data, and trainer spells
for the Alliance housing neighborhood (The Aerie).

Column names adapted to current TrinityCore creature_template schema
(type/family/Classification, 64-bit npcflag).

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: luis <[email protected]>
2026-02-19 20:22:26 -03:00
luis 6b5c02fd42 Typo 2026-02-17 03:12:01 -03:00
MoltenCrystal dd93eb138c DB/Spells: Add proc data for Exhilarating Blows (#31567)
Signed-off-by: luis <[email protected]>
2026-02-16 20:58:59 -03:00
MoltenCrystal 55409a045a Scripts/Spells: Implement warrior talent Overpowering Finish (#31566)
Signed-off-by: luis <[email protected]>
2026-02-16 20:58:04 -03:00
MoltenCrystal 4adaa76b13 Scripts/Spells: Implement warrior talent Tactician (#31564)
Signed-off-by: luis <[email protected]>
2026-02-16 20:54:59 -03:00
MoltenCrystal 7b0bd4aa2e Scripts/Spells: Update Sudden Death (#31550)
Signed-off-by: luis <[email protected]>
2026-02-16 20:54:25 -03:00
Naddley 90a97549a5 DB/IsleOfDorn: Added Oztan Isles spawns for Phase 25033
Signed-off-by: luis <[email protected]>
2026-02-16 20:49:58 -03:00
luis fbd66c676e Db error fix and playerhousing creature spawn fix flags and level 2026-02-16 11:34:15 -03:00
luis c79d2d96fd Fix load of db2 2026-02-15 20:21:56 -03:00
luis 82b4567264 new db tables 2026-02-15 19:45:27 -03:00
ReZaRrandModoX ba2c7b9785 Scripts/WanderingIsle: Implement quest 29421 Only the Worthy Shall Pass (#31624)
Co-authored-by: ModoX <[email protected]>
Signed-off-by: luis <[email protected]>
2026-02-15 17:40:53 -03:00
MoltenCrystal 9f5502aa3f DB/Spells: Add proc data for Storm Wall (#31547)
Signed-off-by: luis <[email protected]>
2026-02-15 17:39:19 -03:00
Jeremy bf47d82e1d Scripts/Spells: Rename script for Improved Whirlwind to match other warrior spells (#31683)
Signed-off-by: luis <[email protected]>
2026-02-15 17:36:43 -03:00
MoltenCrystal d683198682 Scripts/Spells: Implement warrior talent Bloodsurge (#31546)
Signed-off-by: luis <[email protected]>
2026-02-15 17:35:48 -03:00
MoltenCrystal 171822f33f Scripts/Spells: Add proc data for Concussive Blows (#31540)
Signed-off-by: luis <[email protected]>
2026-02-15 17:34:51 -03:00
MoltenCrystal b84ebc16ea Scripts/Spells: Implement Intervene (#31536)
Signed-off-by: luis <[email protected]>
2026-02-15 17:33:55 -03:00
luis c61b8a8f2f 65893 2026-02-15 17:33:28 -03:00
MoltenCrystal 3f8ef17bc6 Scripts/Spells: Fix warrior talent Pain and Gain proc and heal amount (#31535)
Signed-off-by: luis <[email protected]>
2026-02-15 17:20:53 -03:00
Cristian Vintila 3c78d82b10 Scripts/Spells: Implement druid talent Elune's Favored (#31534)
Signed-off-by: luis <[email protected]>
2026-02-15 17:11:34 -03:00
luis 843652242a Full opcodes and spawn map for housing 2026-02-15 17:00:33 -03:00
luis 51b67f6ee0 Playerhousing misc 2026-02-15 16:07:09 -03:00
luis d58362f3a2 Core playerhousing Most complete need change opcode status later 2026-02-15 11:11:11 -03:00
luis d95f86d2df fix sql char table 2026-02-12 21:53:42 -03:00
luis 92feff8094 Initial playerhousing work 2026-02-12 20:28:27 -03:00
Shauren 54c0cebeee Core: Updated to 12.0.1
Signed-off-by: luis <[email protected]>
2026-02-12 20:22:00 -03:00
luis 6b51f93585 Fixed db errors and spell procs wrong 2026-02-11 20:31:00 -03:00
Naddley b6122b0ee8 DB/Stormwind: Update Wizards Sanctum
Signed-off-by: luis <[email protected]>
2026-02-11 20:16:37 -03:00
Naddley 47fd89caec DB/Stormwind: Added creature spawns for Quest: "Avoiding Blame"
Signed-off-by: luis <[email protected]>
2026-02-11 20:14:44 -03:00
agathoandClaude Opus 4.6 dee387d685 refactor(enchants): Replace SQL enchant/gem data with DB2 client data loading
EnchantGemDatabase now loads entirely from DB2 stores (SpellItemEnchantment,
GemProperties, ChrSpecialization) at startup, scoring each enchant/gem against
spec role and primary stat priorities. Removes all hardcoded SQL data and drops
the now-unnecessary playerbot_enchant_recommendations and
playerbot_gem_recommendations tables. Also replaces hardcoded skill IDs in
GuildTaskManager with SharedDefines enums.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: luis <[email protected]>
2026-02-10 21:41:58 -03:00
agathoandClaude Opus 4.6 0f0875fe6e feat(playerbot): Add 14 new systems - combat intelligence, RPG simulation, utilities
Implement complete feature batch from mod-playerbots analysis plan:

CRITICAL (4):
- TTK Estimator: Skip long casts on dying targets (rolling 5s DPS window)
- Healing Mana Tiers: 5-tier efficiency gating for 7 healer specs
- Spell Fallback Chains: Try alternatives when primary spell unavailable
- RPG World Simulation: Personality-driven daily routines for idle bots

HIGH (4):
- ClassSpellDatabase: Static shared spell data for all 13 classes
- Population PID Controller: Smooth bot spawning with Kp/Ki/Kd tuning
- Enchant/Gem Templates: Auto-enchant and gem equipment by spec
- Chat/Emote Templates: DB-driven contextual bot chat with locale support

MEDIUM (4):
- ServerLoadMonitor: Scale reaction delays under server load
- DirtyValue<T>: Lazy evaluation template for expensive computations
- Guild Task System: Auto-generated guild tasks with bot assignment
- Packet Handler Cleanup: Remove deprecated opcode-based stubs

LOW (2):
- Account Linking: Permission-based bot account sharing
- BotCheatMask: Debug cheat system with 15 flags and multipliers

Includes SQL schemas, subsystem registrations, and user documentation.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: luis <[email protected]>
2026-02-10 21:39:23 -03:00