mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
added definition for different cores
added definition for Azerothcore and Trinity. Other cores do not return a value.
This commit is contained in:
@@ -2158,12 +2158,19 @@ namespace LuaGlobalFunctions
|
||||
#endif
|
||||
draft.AddItem(item);
|
||||
|
||||
#if defined AZEROTHCORE
|
||||
if (mailGUID <= 0)
|
||||
{
|
||||
mailGUID = item->GetGUIDLow();
|
||||
Eluna::Push(L, mailGUID);
|
||||
}
|
||||
|
||||
#elif defined TRINITY
|
||||
if (mailGUID <= 0)
|
||||
{
|
||||
mailGUID = item->GetGUID();
|
||||
Eluna::Push(L, mailGUID);
|
||||
}
|
||||
#endif
|
||||
++addedItems;
|
||||
}
|
||||
}
|
||||
@@ -2175,7 +2182,11 @@ namespace LuaGlobalFunctions
|
||||
#else
|
||||
draft.SendMailTo(MailReceiver(receiverPlayer, MAKE_NEW_GUID(receiverGUIDLow, 0, HIGHGUID_PLAYER)), sender);
|
||||
#endif
|
||||
#if defined TRINITY || AZEROTHCORE
|
||||
return 1;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user