From 558dcaea9d56fb1c65ce468869dfe0e409ca1878 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 9 Sep 2015 15:11:05 +0300 Subject: Add unequip error notification. --- src/enums/resources/notifytypes.h | 1 + src/net/eathena/inventoryrecv.cpp | 3 +-- src/resources/notifications.h | 4 ++++ 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."), -- cgit v1.2.3-70-g09d2