Housing: Fix entity GUID mismatch, initiative wire format, and packet error fields

Fix Housing/4 NeighborhoodMirrorEntity GUID using battlenetAccountId instead
of the neighborhood's actual DB low GUID. The client matches entity GUIDs
against NeighborhoodGUID references in JamCliHouse packets — a mismatch
causes the client to fail to associate plot data with the correct entity.
Added ResetGuid() to correct the GUID in Player::LoadFromDB before the
entity is added to the world.

Fix initiative SMSG_GET_PLAYER_INITIATIVE_INFO_RESULT: duration now converts
DB2 days to seconds (×86400), progress scales from 0.0–1.0 to 0–1000 wire
format, and the packet is sent proactively on service status check so the
client's isLoaded flag gets set.

Revert incorrect HasError replacements on 14+ non-initiative response packets
back to their proper Result field assignments. Remove fake initiative SQL
hotfix data that overwrote real DB2 records.
This commit is contained in:
luis
2026-03-12 07:49:28 -03:00
parent be453341aa
commit 0cb961d47d
23 changed files with 10737 additions and 10452 deletions
@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS `initiative_cycle`;
CREATE TABLE `initiative_cycle` (
`ID` int unsigned NOT NULL DEFAULT '0',
`RewardGroupID` int NOT NULL DEFAULT '0',
`CycleIndex` int NOT NULL DEFAULT '0',
`StartDay` int NOT NULL DEFAULT '0',
`Duration` int NOT NULL DEFAULT '0',
`InitiativeID` int NOT NULL DEFAULT '0',
`VerifiedBuild` int NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;