mirror of
https://github.com/azerothcore/mod-aoe-loot
synced 2025-11-29 21:38:16 +08:00
feat. Optional mailing when bags are full (#14)
This commit is contained in:
@@ -24,3 +24,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
AOELoot.Enable = 1
|
AOELoot.Enable = 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# AOELoot.MailEnable
|
||||||
|
# Description: Enables the sending of mail if there are no spaces in the bags.
|
||||||
|
# Default: 1 (Enabled)
|
||||||
|
# Possible values: 0 - (Disabled)
|
||||||
|
# 1 - (Enabled)
|
||||||
|
#
|
||||||
|
|
||||||
|
AOELoot.MailEnable = 1
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ public:
|
|||||||
player->SendNotifyLootItemRemoved(lootSlot);
|
player->SendNotifyLootItemRemoved(lootSlot);
|
||||||
player->SendLootRelease(player->GetLootGUID());
|
player->SendLootRelease(player->GetLootGUID());
|
||||||
}
|
}
|
||||||
else
|
else if (sConfigMgr->GetOption<bool>("AOELoot.MailEnable", true))
|
||||||
{
|
{
|
||||||
player->SendItemRetrievalMail(item->itemid, item->count);
|
player->SendItemRetrievalMail(item->itemid, item->count);
|
||||||
ChatHandler(player->GetSession()).SendSysMessage(AOE_ITEM_IN_THE_MAIL);
|
ChatHandler(player->GetSession()).SendSysMessage(AOE_ITEM_IN_THE_MAIL);
|
||||||
|
|||||||
Reference in New Issue
Block a user