summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/enums/resources/notifytypes.h1
-rw-r--r--src/net/eathena/inventoryrecv.cpp3
-rw-r--r--src/resources/notifications.h4
3 files changed, 6 insertions, 2 deletions
diff --git a/src/enums/resources/notifytypes.h b/src/enums/resources/notifytypes.h
index 318688863..d60ada2ce 100644
--- a/src/enums/resources/notifytypes.h
+++ b/src/enums/resources/notifytypes.h
@@ -55,6 +55,7 @@ namespace NotifyTypes
USE_FAILED,
EQUIP_FAILED,
EQUIP_FAILED_LEVEL,
+ UNEQUIP_FAILED,
PARTY_CREATE_FAILED,
PARTY_CREATED,
PARTY_LEFT,
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp
index 83350a449..602c6680f 100644
--- a/src/net/eathena/inventoryrecv.cpp
+++ b/src/net/eathena/inventoryrecv.cpp
@@ -357,10 +357,9 @@ void InventoryRecv::processPlayerUnEquip(Net::MessageIn &msg)
const int equipType = msg.readInt32("wear location");
const uint8_t flag = msg.readUInt8("result");
- // +++ need use UNEQUIP_FAILED event
if (flag)
{
- NotifyManager::notify(NotifyTypes::EQUIP_FAILED);
+ NotifyManager::notify(NotifyTypes::UNEQUIP_FAILED);
}
else
{
diff --git a/src/resources/notifications.h b/src/resources/notifications.h
index 8716b6467..425605174 100644
--- a/src/resources/notifications.h
+++ b/src/resources/notifications.h
@@ -141,6 +141,10 @@ namespace NotifyManager
// TRANSLATORS: notification message
N_("Unable to equip because you have wrong level."),
NotifyFlags::EMPTY},
+ {"unequip failed",
+ // TRANSLATORS: notification message
+ N_("Unable to unequip."),
+ NotifyFlags::EMPTY},
{"party create failed",
// TRANSLATORS: notification message
N_("Couldn't create party."),