Core: Updated to 10.0.5
Port From (https://github.com/TrinityCore/TrinityCore/commit/4bec7233badf9d3ab71dbdde8b24f66f7c4eedfb)
This commit is contained in:
@@ -18,11 +18,11 @@ namespace Game.Mails
|
||||
items.Add(mii);
|
||||
}
|
||||
|
||||
public bool RemoveItem(uint item_guid)
|
||||
public bool RemoveItem(ulong itemGuid)
|
||||
{
|
||||
foreach (var item in items)
|
||||
{
|
||||
if (item.item_guid == item_guid)
|
||||
if (item.item_guid == itemGuid)
|
||||
{
|
||||
items.Remove(item);
|
||||
return true;
|
||||
@@ -33,7 +33,7 @@ namespace Game.Mails
|
||||
|
||||
public bool HasItems() { return !items.Empty(); }
|
||||
|
||||
public uint messageID;
|
||||
public ulong messageID;
|
||||
public MailMessageType messageType;
|
||||
public MailStationery stationery;
|
||||
public uint mailTemplateId;
|
||||
@@ -42,7 +42,7 @@ namespace Game.Mails
|
||||
public string subject;
|
||||
public string body;
|
||||
public List<MailItemInfo> items = new();
|
||||
public List<uint> removedItems = new();
|
||||
public List<ulong> removedItems = new();
|
||||
public long expire_time;
|
||||
public long deliver_time;
|
||||
public ulong money;
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace Game.Mails
|
||||
if (pReceiver != null)
|
||||
PrepareItems(pReceiver, trans); // generate mail template items
|
||||
|
||||
uint mailId = Global.ObjectMgr.GenerateMailID();
|
||||
ulong mailId = Global.ObjectMgr.GenerateMailID();
|
||||
|
||||
long deliver_time = GameTime.GetGameTime() + deliver_delay;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user