diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-11 21:01:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-11 21:01:41 +0300 |
commit | c54d7e82f0f05f51ce45db59d14e1b70fe33ef3b (patch) | |
tree | ce3722978690c09af7fd6357033ef5c699c0fede /src/net | |
parent | 58adb06d27a8fc69d4010bf61b4a6c9841fa1c5c (diff) | |
download | manaverse-c54d7e82f0f05f51ce45db59d14e1b70fe33ef3b.tar.gz manaverse-c54d7e82f0f05f51ce45db59d14e1b70fe33ef3b.tar.bz2 manaverse-c54d7e82f0f05f51ce45db59d14e1b70fe33ef3b.tar.xz manaverse-c54d7e82f0f05f51ce45db59d14e1b70fe33ef3b.zip |
eathena: add packet CMSG_ADMIN_UNEQUIP_ALL 0x07f5.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/adminhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 9 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/tmwa/adminhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/adminhandler.h | 2 |
6 files changed, 20 insertions, 0 deletions
diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h index 1a84edf66..75d4f7340 100644 --- a/src/net/adminhandler.h +++ b/src/net/adminhandler.h @@ -86,6 +86,8 @@ class AdminHandler notfinal virtual void setTileType(const int x, const int y, const int type) const = 0; + + virtual void unequipAll(const Being *const being) const = 0; }; } // namespace Net diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 6b584269c..c05c00771 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -179,6 +179,15 @@ void AdminHandler::setTileType(const int x, const int y, outMsg.writeInt16(type, "type"); } +void AdminHandler::unequipAll(const Being *const being) const +{ + if (!being) + return; + + MessageOut outMsg(CMSG_ADMIN_UNEQUIP_ALL); + outMsg.writeInt32(being->getId(), "account id"); +} + void AdminHandler::processAdminGetLoginAck(Net::MessageIn &msg) { msg.readInt32("account id"); diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h index f2eab8a08..3a98e16bc 100644 --- a/src/net/eathena/adminhandler.h +++ b/src/net/eathena/adminhandler.h @@ -71,6 +71,8 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler void setTileType(const int x, const int y, const int type) const; + void unequipAll(const Being *const being) const override final; + protected: void processAdminGetLoginAck(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 0e5ee60da..d16fd66ad 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -311,6 +311,7 @@ #define CMSG_ADMIN_MUTE_NAME 0x0212 #define CMSG_ADMIN_ID_TO_LOGIN 0x01df #define CMSG_ADMIN_SET_TILE_TYPE 0x0198 +#define CMSG_ADMIN_UNEQUIP_ALL 0x07f5 #define CMSG_GUILD_CHECK_MASTER 0x014d #define CMSG_GUILD_REQUEST_INFO 0x014f diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp index b8b88baca..2e98504c7 100644 --- a/src/net/tmwa/adminhandler.cpp +++ b/src/net/tmwa/adminhandler.cpp @@ -147,4 +147,8 @@ void AdminHandler::setTileType(const int x A_UNUSED, const int y A_UNUSED, { } +void AdminHandler::unequipAll(const Being *const being A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h index eb34886f0..de83c8c9c 100644 --- a/src/net/tmwa/adminhandler.h +++ b/src/net/tmwa/adminhandler.h @@ -70,6 +70,8 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler void setTileType(const int x, const int y, const int type) const; + + void unequipAll(const Being *const being) const override final; }; } // namespace TmwAthena |