summaryrefslogtreecommitdiff
path: root/src/net/gameserver/player.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-05 10:14:17 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-05 10:14:17 +0000
commitc887f550b55b6160f074cb3160a4442ca659fad9 (patch)
tree43cd78f7bdbf00e0764792a2dbd49e7b115ac971 /src/net/gameserver/player.cpp
parente880b17081962580afea1d003600afffe062d427 (diff)
downloadmana-client-c887f550b55b6160f074cb3160a4442ca659fad9.tar.gz
mana-client-c887f550b55b6160f074cb3160a4442ca659fad9.tar.bz2
mana-client-c887f550b55b6160f074cb3160a4442ca659fad9.tar.xz
mana-client-c887f550b55b6160f074cb3160a4442ca659fad9.zip
Implemented item dropping.
Diffstat (limited to 'src/net/gameserver/player.cpp')
-rw-r--r--src/net/gameserver/player.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/gameserver/player.cpp b/src/net/gameserver/player.cpp
index 763f3d28..033327c9 100644
--- a/src/net/gameserver/player.cpp
+++ b/src/net/gameserver/player.cpp
@@ -52,6 +52,14 @@ void Net::GameServer::Player::pickUp(int x, int y)
Net::GameServer::connection->send(msg);
}
+void Net::GameServer::Player::drop(int slot, int amount)
+{
+ MessageOut msg(PGMSG_DROP);
+ msg.writeByte(slot);
+ msg.writeByte(amount);
+ Net::GameServer::connection->send(msg);
+}
+
void Net::GameServer::Player::equip(int slot)
{
MessageOut msg(PGMSG_EQUIP);