From 4d52913ef13cecbd36759377b459d3b13607af5c Mon Sep 17 00:00:00 2001 From: Walter Pagani Date: Mon, 10 Jul 2023 17:57:41 -0300 Subject: [PATCH] feat. Optional mailing when bags are full (#14) --- conf/mod_aoe_loot.conf.dist | 10 ++++++++++ src/AoeLoot_SC.cpp | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/conf/mod_aoe_loot.conf.dist b/conf/mod_aoe_loot.conf.dist index 8718059..83a1ff3 100644 --- a/conf/mod_aoe_loot.conf.dist +++ b/conf/mod_aoe_loot.conf.dist @@ -24,3 +24,13 @@ # 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 diff --git a/src/AoeLoot_SC.cpp b/src/AoeLoot_SC.cpp index 0cea4d2..6adff8a 100644 --- a/src/AoeLoot_SC.cpp +++ b/src/AoeLoot_SC.cpp @@ -76,7 +76,7 @@ public: player->SendNotifyLootItemRemoved(lootSlot); player->SendLootRelease(player->GetLootGUID()); } - else + else if (sConfigMgr->GetOption("AOELoot.MailEnable", true)) { player->SendItemRetrievalMail(item->itemid, item->count); ChatHandler(player->GetSession()).SendSysMessage(AOE_ITEM_IN_THE_MAIL);