summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-10 15:52:37 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-10 15:52:37 +0300
commit81184f3787f4b9208b7ac1aacb3489ca143c9ccd (patch)
treeeeb2e15869e0bc5834a6904724d5d7d4ba0a04e0
parent97ba09b2b8ce7896e98318faa536b67e0c164fdf (diff)
downloadmv-81184f3787f4b9208b7ac1aacb3489ca143c9ccd.tar.gz
mv-81184f3787f4b9208b7ac1aacb3489ca143c9ccd.tar.bz2
mv-81184f3787f4b9208b7ac1aacb3489ca143c9ccd.tar.xz
mv-81184f3787f4b9208b7ac1aacb3489ca143c9ccd.zip
Add fail summon skill error handling.
-rw-r--r--src/net/ea/skillrecv.h1
-rw-r--r--src/net/eathena/skillrecv.cpp6
2 files changed, 6 insertions, 1 deletions
diff --git a/src/net/ea/skillrecv.h b/src/net/ea/skillrecv.h
index 9ef7d511c..2ff5d1974 100644
--- a/src/net/ea/skillrecv.h
+++ b/src/net/ea/skillrecv.h
@@ -56,6 +56,7 @@ static const unsigned int RFAIL_REDGEM = 0x07;
static const unsigned int RFAIL_BLUEGEM = 0x08;
static const unsigned int RFAIL_OVERWEIGHT = 0x09;
+static const unsigned int RFAIL_SUMMON = 19;
static const unsigned int RFAIL_NEED_ITEM = 71;
static const unsigned int RFAIL_NEED_EQUIPMENT = 72;
diff --git a/src/net/eathena/skillrecv.cpp b/src/net/eathena/skillrecv.cpp
index dbd8f7166..2ddc05e28 100644
--- a/src/net/eathena/skillrecv.cpp
+++ b/src/net/eathena/skillrecv.cpp
@@ -265,9 +265,13 @@ void SkillRecv::processSkillFailed(Net::MessageIn &msg)
txt.append(_("You need another blue gem!"));
break;
case RFAIL_OVERWEIGHT:
- // TRANSLATORS: error message
+ // TRANSLATORS: error message
txt.append(_("You're carrying to much to do this!"));
break;
+ case RFAIL_SUMMON:
+ // TRANSLATORS: error message
+ txt.append(_("Fail summon."));
+ break;
case RFAIL_NEED_EQUIPMENT:
{
const int itemId = bskill >> 16;