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:
@@ -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;
|
||||
Reference in New Issue
Block a user