mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Added guid returns from SendMail
Previously only AC received guid returns from this PR. This commit adds a return for all cores.
This commit is contained in:
@@ -2156,7 +2156,9 @@ namespace LuaGlobalFunctions
|
|||||||
item->SaveToDB();
|
item->SaveToDB();
|
||||||
#endif
|
#endif
|
||||||
draft.AddItem(item);
|
draft.AddItem(item);
|
||||||
#if defined AZEROTHCORE
|
#if defined TRINITY
|
||||||
|
Eluna::Push(L, item->GetGUID().GetCounter());
|
||||||
|
#else
|
||||||
Eluna::Push(L, item->GetGUIDLow());
|
Eluna::Push(L, item->GetGUIDLow());
|
||||||
#endif
|
#endif
|
||||||
++addedItems;
|
++addedItems;
|
||||||
@@ -2170,11 +2172,7 @@ namespace LuaGlobalFunctions
|
|||||||
#else
|
#else
|
||||||
draft.SendMailTo(MailReceiver(receiverPlayer, MAKE_NEW_GUID(receiverGUIDLow, 0, HIGHGUID_PLAYER)), sender);
|
draft.SendMailTo(MailReceiver(receiverPlayer, MAKE_NEW_GUID(receiverGUIDLow, 0, HIGHGUID_PLAYER)), sender);
|
||||||
#endif
|
#endif
|
||||||
#if defined AZEROTHCORE
|
|
||||||
return addedItems;
|
return addedItems;
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user