summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-12 15:04:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-12 15:04:24 +0300
commit7df47310cba40daf9f29fbebfddef8b978b2770f (patch)
treeddd52d55078623c8945e6eafe79251b514a398dc /src
parentc4ffef0103507c8f514d1a395b630e21b9b9541b (diff)
downloadmanaplus-7df47310cba40daf9f29fbebfddef8b978b2770f.tar.gz
manaplus-7df47310cba40daf9f29fbebfddef8b978b2770f.tar.bz2
manaplus-7df47310cba40daf9f29fbebfddef8b978b2770f.tar.xz
manaplus-7df47310cba40daf9f29fbebfddef8b978b2770f.zip
eathena: add partial support for packet SMSG_PLAYER_STORAGE_PASSWORD 0x023a.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/inventoryhandler.cpp12
-rw-r--r--src/net/eathena/inventoryhandler.h2
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/protocol.h1
4 files changed, 16 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index c42e31903..52f793eb9 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -110,6 +110,7 @@ InventoryHandler::InventoryHandler() :
SMSG_PLAYER_REPAIR_LIST,
SMSG_PLAYER_REPAIR_EFFECT,
SMSG_PLAYER_REFINE_LIST,
+ SMSG_PLAYER_STORAGE_PASSWORD,
0
};
handledMessages = _messages;
@@ -258,6 +259,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg)
processPlayerRefineList(msg);
break;
+ case SMSG_PLAYER_STORAGE_PASSWORD:
+ processPlayerStoragePassword(msg);
+ break;
+
default:
break;
}
@@ -1042,4 +1047,11 @@ void InventoryHandler::processPlayerRefineList(Net::MessageIn &msg)
menu = MenuType::WeaponeRefine;
}
+void InventoryHandler::processPlayerStoragePassword(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+
+ msg.readInt16("info");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h
index 1bd354382..2a40b6293 100644
--- a/src/net/eathena/inventoryhandler.h
+++ b/src/net/eathena/inventoryhandler.h
@@ -127,6 +127,8 @@ class InventoryHandler final : public MessageHandler,
static void processPlayerRefineList(Net::MessageIn &msg);
+ static void processPlayerStoragePassword(Net::MessageIn &msg);
+
static Ea::InventoryItems mCartItems;
};
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 3eee3ab46..c74e5591c 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -86,7 +86,7 @@ int16_t packet_lengths[] =
26, -1, 0, 0, 18, 26, 11, 34, 0, 36, 10, 19, 10, 0, 32, 0,
22, -1, 16, 0, 42, 6, 6, 0, 0, 282, 282, 10, 10, 0, 0, 0,
-1, -1, 0, 8, 10, 0, 282, 0, 0, 15, 0, 0, 0, 19, 71, 5,
- 12, 0, 0, 0, 0, -1, 0, 0, 282, 0, 0, 0, 0, 0, 0, 0,
+ 12, 0, 0, 0, 0, -1, 0, 0, 282, 0, 4, 0, 0, 0, 0, 0,
// #0x0240
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3, 0, -1, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 4, 0, 6,
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 85cb66bcd..b140cd9ca 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -232,6 +232,7 @@
// Remove item/equip from storage
#define SMSG_PLAYER_STORAGE_REMOVE 0x00f6
#define SMSG_PLAYER_STORAGE_CLOSE 0x00f8 /**< Storage access closed */
+#define SMSG_PLAYER_STORAGE_PASSWORD 0x023a
#define SMSG_ADMIN_KICK_ACK 0x00cd
#define SMSG_ADMIN_GET_LOGIN_ACK 0x01e0