summaryrefslogtreecommitdiff
path: root/src/net/eathena/itemhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-09 23:47:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-09 23:47:57 +0300
commit4d92eb29651fdddc0188410fa2d67ae13ba18d5a (patch)
tree1b85a23449fae7b3ebf862209ef598d857f17cfd /src/net/eathena/itemhandler.cpp
parent659ceeecb82c3c8cc617be93d0d45e15965435ae (diff)
downloadmanaplus-4d92eb29651fdddc0188410fa2d67ae13ba18d5a.tar.gz
manaplus-4d92eb29651fdddc0188410fa2d67ae13ba18d5a.tar.bz2
manaplus-4d92eb29651fdddc0188410fa2d67ae13ba18d5a.tar.xz
manaplus-4d92eb29651fdddc0188410fa2d67ae13ba18d5a.zip
eathena: add partial support for packet SMSG_GRAFFITI_VISIBLE 0x01c9.
Diffstat (limited to 'src/net/eathena/itemhandler.cpp')
-rw-r--r--src/net/eathena/itemhandler.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/itemhandler.cpp b/src/net/eathena/itemhandler.cpp
index f37bb6f09..438a4c146 100644
--- a/src/net/eathena/itemhandler.cpp
+++ b/src/net/eathena/itemhandler.cpp
@@ -40,6 +40,7 @@ ItemHandler::ItemHandler() :
SMSG_ITEM_VISIBLE,
SMSG_ITEM_DROPPED,
SMSG_ITEM_REMOVE,
+ SMSG_GRAFFITI_VISIBLE,
0
};
handledMessages = _messages;
@@ -61,6 +62,10 @@ void ItemHandler::handleMessage(Net::MessageIn &msg)
processItemRemove(msg);
break;
+ case SMSG_GRAFFITI_VISIBLE:
+ processGraffiti(msg);
+ break;
+
default:
break;
}
@@ -85,4 +90,16 @@ void ItemHandler::processItemDropped(Net::MessageIn &msg)
}
}
+void ItemHandler::processGraffiti(Net::MessageIn &msg)
+{
+ msg.readInt32("graffiti id");
+ msg.readInt32("creator id");
+ msg.readInt16("x");
+ msg.readInt16("y");
+ msg.readUInt8("job");
+ msg.readUInt8("visible");
+ msg.readUInt8("is content");
+ msg.readString(80, "text");
+}
+
} // namespace EAthena