summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-19 01:46:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-19 01:46:29 +0300
commitd6b553b99c602f20dd3183a0a12861e5d25941db (patch)
tree3cd583ddba5e1ad8d1ba0b8edd98cf411f05c861 /src/net/eathena/beinghandler.cpp
parent88735abcdaf6e25a008f76c9a82730e8be9773f8 (diff)
downloadmanaverse-d6b553b99c602f20dd3183a0a12861e5d25941db.tar.gz
manaverse-d6b553b99c602f20dd3183a0a12861e5d25941db.tar.bz2
manaverse-d6b553b99c602f20dd3183a0a12861e5d25941db.tar.xz
manaverse-d6b553b99c602f20dd3183a0a12861e5d25941db.zip
eathena: add partial support for packet SMSG_BEING_VIEW_EQUIPMENT 0x0997.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 798506991..74dabe61a 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -133,6 +133,7 @@ BeingHandler::BeingHandler(const bool enableSync) :
SMSG_BEING_FONT,
SMSG_BEING_MILLENIUM_SHIELD,
SMSG_BEING_CHARM,
+ SMSG_BEING_VIEW_EQUIPMENT,
0
};
handledMessages = _messages;
@@ -397,6 +398,10 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
processBeingCharm(msg);
break;
+ case SMSG_BEING_VIEW_EQUIPMENT:
+ processBeingViewEquipment(msg);
+ break;
+
default:
break;
}
@@ -1884,4 +1889,36 @@ void BeingHandler::processBeingCharm(Net::MessageIn &msg)
msg.readInt16("charm count");
}
+void BeingHandler::processBeingViewEquipment(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+
+ const int count = (msg.readInt16("len") - 45) / 31;
+ msg.readString(24, "name");
+ msg.readInt16("job");
+ msg.readInt16("head");
+ msg.readInt16("accessory");
+ msg.readInt16("accessory2");
+ msg.readInt16("accessory3");
+ msg.readInt16("robe");
+ msg.readInt16("hair color");
+ msg.readInt16("body color");
+ msg.readUInt8("gender");
+ for (int f = 0; f < count; f ++)
+ {
+ msg.readInt16("index");
+ msg.readInt16("item id");
+ msg.readUInt8("item type");
+ msg.readInt32("location");
+ msg.readInt32("wear state");
+ msg.readInt8("refine");
+ for (int d = 0; d < 4; d ++)
+ msg.readInt16("card");
+ msg.readInt32("hire expire date (?)");
+ msg.readInt16("equip type");
+ msg.readInt16("item sprite number");
+ msg.readUInt8("flags");
+ }
+}
+
} // namespace EAthena