Core/PacketIO: Fixed SMSG_QUERY_GAME_OBJECT_RESPONSE structure
Port From (https://github.com/TrinityCore/TrinityCore/commit/5c5f3d5376a53e3cfbccbb2f6a5501e0ddc3ce6e)
This commit is contained in:
@@ -195,7 +195,7 @@ namespace Framework.Constants
|
||||
/// <summary>
|
||||
/// GameObject Const
|
||||
/// </summary>
|
||||
public const int MaxGOData = 34;
|
||||
public const int MaxGOData = 35;
|
||||
public const uint MaxTransportStopFrames = 9;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -708,6 +708,7 @@ namespace Game.Entities
|
||||
public uint turnpersonallootsecurityoff; // 31 turn personal loot security off, enum { false, true, }; Default: false
|
||||
public uint ChestProperties; // 32 Chest Properties, References: ChestProperties, NoValue = 0
|
||||
public uint chestPushLoot; // 33 chest Push Loot, References: Treasure, NoValue = 0
|
||||
public uint ForceSingleLooter; // 34 Force Single Looter, enum { false, true, }; Default: false
|
||||
}
|
||||
|
||||
public struct binder
|
||||
|
||||
@@ -3721,8 +3721,8 @@ namespace Game
|
||||
"Data0, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Data8, Data9, Data10, Data11, Data12, " +
|
||||
//21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
||||
"Data13, Data14, Data15, Data16, Data17, Data18, Data19, Data20, Data21, Data22, Data23, Data24, Data25, Data26, Data27, Data28, " +
|
||||
//37 38 39 40 41 42 43 44
|
||||
"Data29, Data30, Data31, Data32, Data33, ContentTuningId, AIName, ScriptName FROM gameobject_template");
|
||||
//37 38 39 40 41 42 43 44 45
|
||||
"Data29, Data30, Data31, Data32, Data33, Data34, ContentTuningId, AIName, ScriptName FROM gameobject_template");
|
||||
|
||||
if (result.IsEmpty())
|
||||
{
|
||||
@@ -3751,9 +3751,9 @@ namespace Game
|
||||
got.Raw.data[x] = result.Read<int>(8 + x);
|
||||
}
|
||||
|
||||
got.ContentTuningId = result.Read<uint>(42);
|
||||
got.AIName = result.Read<string>(43);
|
||||
got.ScriptId = Global.ObjectMgr.GetScriptId(result.Read<string>(44));
|
||||
got.ContentTuningId = result.Read<uint>(43);
|
||||
got.AIName = result.Read<string>(44);
|
||||
got.ScriptId = Global.ObjectMgr.GetScriptId(result.Read<string>(45));
|
||||
|
||||
switch (got.type)
|
||||
{
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE `gameobject_template` ADD `Data34` int(11) NOT NULL DEFAULT '0' AFTER `Data33`;
|
||||
Reference in New Issue
Block a user