summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-09 15:11:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-09 15:11:05 +0300
commit558dcaea9d56fb1c65ce468869dfe0e409ca1878 (patch)
tree45ea44c11519b0186d12cbe2b12524a60721ba5e /src
parent8ac73cce3f9808c8fa48b280635104d9587c9c5a (diff)
downloadplus-558dcaea9d56fb1c65ce468869dfe0e409ca1878.tar.gz
plus-558dcaea9d56fb1c65ce468869dfe0e409ca1878.tar.bz2
plus-558dcaea9d56fb1c65ce468869dfe0e409ca1878.tar.xz
plus-558dcaea9d56fb1c65ce468869dfe0e409ca1878.zip
Add unequip error notification.
Diffstat (limited to 'src')
-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."),