feat. Optional mailing when bags are full (#14)

This commit is contained in:
Walter Pagani
2023-07-10 17:57:41 -03:00
committed by GitHub
parent cb2324fecd
commit 4d52913ef1
2 changed files with 11 additions and 1 deletions

View File

@@ -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

View File

@@ -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);