Some misc fixes. Thanks Pandaros.
This commit is contained in:
@@ -611,7 +611,7 @@ namespace Framework.Database
|
||||
PrepareStatement(CharStatements.UPD_CHAR_QUESTSTATUS_REWARDED_ACTIVE_BY_QUEST, "UPDATE character_queststatus_rewarded SET active = 0 WHERE quest = ? AND guid = ?");
|
||||
PrepareStatement(CharStatements.DEL_INVALID_QUEST_PROGRESS_CRITERIA, "DELETE FROM character_queststatus_objectives_criteria WHERE questObjectiveId = ?");
|
||||
PrepareStatement(CharStatements.DEL_CHAR_SKILL_BY_SKILL, "DELETE FROM character_skills WHERE guid = ? AND skill = ?");
|
||||
PrepareStatement(CharStatements.INS_CHAR_SKILLS, "INSERT INTO character_skills (guid, skill, value, max, professionSlot) VALUES (?, ?, ?, ?)");
|
||||
PrepareStatement(CharStatements.INS_CHAR_SKILLS, "INSERT INTO character_skills (guid, skill, value, max, professionSlot) VALUES (?, ?, ?, ?, ?)");
|
||||
PrepareStatement(CharStatements.UPD_CHAR_SKILLS, "UPDATE character_skills SET value = ?, max = ?, professionSlot = ? WHERE guid = ? AND skill = ?");
|
||||
PrepareStatement(CharStatements.INS_CHAR_SPELL, "INSERT INTO character_spell (guid, spell, active, disabled) VALUES (?, ?, ?, ?)");
|
||||
PrepareStatement(CharStatements.DEL_CHAR_SPELL_FAVORITE, "DELETE FROM character_spell_favorite WHERE guid = ? AND spell = ?");
|
||||
|
||||
@@ -4136,7 +4136,7 @@ namespace Game.Entities
|
||||
|
||||
do
|
||||
{
|
||||
ulong mailId = resultItems.Read<ulong>(44);
|
||||
ulong mailId = resultItems.Read<ulong>(52);
|
||||
Item mailItem = _LoadMailedItem(playerGuid, null, mailId, null, resultItems.GetFields(), additionalData.LookupByKey(resultItems.Read<ulong>(0)));
|
||||
if (mailItem != null)
|
||||
itemsByMail.Add(mailId, mailItem);
|
||||
|
||||
@@ -262,7 +262,7 @@ namespace Game
|
||||
}
|
||||
|
||||
if (log && sendMail.Info.SendMoney > 0)
|
||||
Log.outCommand(GetAccountId(), "GM {GetPlayerName()} ({_player.GetGUID()}) (Account: {GetAccountId()}) mail money: {mailInfo.SendMoney} to: {mailInfo.Target} ({receiverGuid}) (Account: {receiverAccountId})");
|
||||
Log.outCommand(GetAccountId(), $"GM {GetPlayerName()} ({_player.GetGUID()}) (Account: {GetAccountId()}) mail money: {sendMail.Info.SendMoney} to: {sendMail.Info.Target} ({receiverGuid}) (Account: {receiverAccountId})");
|
||||
}
|
||||
|
||||
// If theres is an item, there is a one hour delivery delay if sent to another account's character.
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Game.Networking.Packets
|
||||
public override void Read()
|
||||
{
|
||||
Mailbox = _worldPacket.ReadPackedGuid();
|
||||
MailID = _worldPacket.ReadUInt32();
|
||||
MailID = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
public ObjectGuid Mailbox;
|
||||
@@ -137,7 +137,7 @@ namespace Game.Networking.Packets
|
||||
|
||||
public override void Read()
|
||||
{
|
||||
MailID = _worldPacket.ReadUInt32();
|
||||
MailID = _worldPacket.ReadUInt64();
|
||||
SenderGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace Game.Networking.Packets
|
||||
public override void Read()
|
||||
{
|
||||
Mailbox = _worldPacket.ReadPackedGuid();
|
||||
MailID = _worldPacket.ReadUInt32();
|
||||
MailID = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
public ObjectGuid Mailbox;
|
||||
@@ -165,7 +165,7 @@ namespace Game.Networking.Packets
|
||||
|
||||
public override void Read()
|
||||
{
|
||||
MailID = _worldPacket.ReadUInt32();
|
||||
MailID = _worldPacket.ReadUInt64();
|
||||
DeleteReason = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
@@ -180,8 +180,8 @@ namespace Game.Networking.Packets
|
||||
public override void Read()
|
||||
{
|
||||
Mailbox = _worldPacket.ReadPackedGuid();
|
||||
MailID = _worldPacket.ReadUInt32();
|
||||
AttachID = _worldPacket.ReadUInt32();
|
||||
MailID = _worldPacket.ReadUInt64();
|
||||
AttachID = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
public ObjectGuid Mailbox;
|
||||
@@ -196,7 +196,7 @@ namespace Game.Networking.Packets
|
||||
public override void Read()
|
||||
{
|
||||
Mailbox = _worldPacket.ReadPackedGuid();
|
||||
MailID = _worldPacket.ReadUInt32();
|
||||
MailID = _worldPacket.ReadUInt64();
|
||||
Money = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user