summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-10 23:41:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-10 23:41:33 +0300
commitf7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81 (patch)
treee26e99216761019ee7c1b8e7b4d13ecc0bf9e912
parentfca0f15e161755e0a430802b1b38bdda0cb033cb (diff)
downloadmanaverse-f7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81.tar.gz
manaverse-f7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81.tar.bz2
manaverse-f7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81.tar.xz
manaverse-f7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81.zip
eathena: impliment packet SMSG_MAP_TYPE.
-rw-r--r--src/net/eathena/beinghandler.cpp10
-rw-r--r--src/resources/notifications.h4
-rw-r--r--src/resources/notifytypes.h1
3 files changed, 12 insertions, 3 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 5ff11ee83..29b7a2578 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -25,6 +25,7 @@
#include "actormanager.h"
#include "effectmanager.h"
#include "game.h"
+#include "notifymanager.h"
#include "being/localplayer.h"
#include "being/mercenaryinfo.h"
@@ -48,6 +49,7 @@
#include "net/eathena/sprite.h"
#include "resources/iteminfo.h"
+#include "resources/notifytypes.h"
#include "resources/db/itemdb.h"
@@ -1125,9 +1127,11 @@ void BeingHandler::processMapTypeProperty(Net::MessageIn &msg)
void BeingHandler::processMapType(Net::MessageIn &msg)
{
- UNIMPLIMENTEDPACKET;
- // battle ground map or not
- msg.readInt16("type");
+ const int16_t type = msg.readInt16("type");
+ if (type == 19)
+ NotifyManager::notify(NotifyTypes::MAP_TYPE_BATTLEFIELD);
+ else
+ UNIMPLIMENTEDPACKET;
}
void BeingHandler::processSkillCasting(Net::MessageIn &msg)
diff --git a/src/resources/notifications.h b/src/resources/notifications.h
index 69cb6a205..ad0819d23 100644
--- a/src/resources/notifications.h
+++ b/src/resources/notifications.h
@@ -615,6 +615,10 @@ namespace NotifyManager
// TRANSLATORS: notification message
"%s",
NotifyFlags::STRING},
+ {"mail type battle field",
+ // TRANSLATORS: notification message
+ N_("You enter battle field."),
+ NotifyFlags::EMPTY},
};
} // namespace NotifyManager
#endif // RESOURCES_NOTIFICATIONS_H
diff --git a/src/resources/notifytypes.h b/src/resources/notifytypes.h
index 1c132e876..26cf8c153 100644
--- a/src/resources/notifytypes.h
+++ b/src/resources/notifytypes.h
@@ -172,6 +172,7 @@ namespace NotifyTypes
MAIL_GET_ATTACH_ERROR,
MAIL_GET_ATTACH_TOO_MANY_ITEMS,
NEW_MAIL,
+ MAP_TYPE_BATTLEFIELD,
TYPE_END
};