diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/gameserver/player.cpp | 7 | ||||
-rw-r--r-- | src/net/gameserver/player.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/net/gameserver/player.cpp b/src/net/gameserver/player.cpp index c91923d8..e93fff46 100644 --- a/src/net/gameserver/player.cpp +++ b/src/net/gameserver/player.cpp @@ -67,6 +67,13 @@ void Net::GameServer::Player::equip(int slot) Net::GameServer::connection->send(msg); } +void Net::GameServer::Player::unequip(int slot) +{ + MessageOut msg(PGMSG_UNEQUIP); + msg.writeByte(slot); + Net::GameServer::connection->send(msg); +} + void Net::GameServer::Player::attack(int direction) { MessageOut msg(PGMSG_ATTACK); diff --git a/src/net/gameserver/player.h b/src/net/gameserver/player.h index 8b4cde5b..4c27d4d0 100644 --- a/src/net/gameserver/player.h +++ b/src/net/gameserver/player.h @@ -39,6 +39,7 @@ namespace Net void pickUp(int x, int y); void drop(int slot, int amount); void equip(int slot); + void unequip(int slot); void attack(int direction); void changeAction(Being::Action action); void talkToNPC(int id, bool restart); |