summaryrefslogtreecommitdiff
path: root/src/net/eathena/itemhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/itemhandler.cpp')
-rw-r--r--src/net/eathena/itemhandler.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/net/eathena/itemhandler.cpp b/src/net/eathena/itemhandler.cpp
index 10a773c13..ba55fa381 100644
--- a/src/net/eathena/itemhandler.cpp
+++ b/src/net/eathena/itemhandler.cpp
@@ -22,6 +22,8 @@
#include "net/eathena/itemhandler.h"
+#include "actormanager.h"
+
#include "net/eathena/protocol.h"
#include "debug.h"
@@ -64,4 +66,22 @@ void ItemHandler::handleMessage(Net::MessageIn &msg)
}
}
+void ItemHandler::processItemDropped(Net::MessageIn &msg)
+{
+ const int id = msg.readInt32();
+ const int itemId = msg.readInt16();
+ const uint8_t identify = msg.readUInt8(); // identify flag
+ const int x = msg.readInt16();
+ const int y = msg.readInt16();
+ const int subX = static_cast<int>(msg.readInt8());
+ const int subY = static_cast<int>(msg.readInt8());
+ const int amount = msg.readInt16();
+
+ if (actorManager)
+ {
+ actorManager->createItem(id, itemId,
+ x, y, amount, identify, subX, subY);
+ }
+}
+
} // namespace EAthena