summaryrefslogtreecommitdiff
path: root/src/net/gameserver
diff options
context:
space:
mode:
authorJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-08 09:35:21 +0000
committerJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-08 09:35:21 +0000
commitf80ff244eea2c3e6b37acf156f0d6933220d2cce (patch)
treeb18ec0bdfde0f2a780942732032f17fc4cb08dda /src/net/gameserver
parentc7ca39c9fc863fbd59f9e859cbcfc2a65188f6f2 (diff)
downloadmana-f80ff244eea2c3e6b37acf156f0d6933220d2cce.tar.gz
mana-f80ff244eea2c3e6b37acf156f0d6933220d2cce.tar.bz2
mana-f80ff244eea2c3e6b37acf156f0d6933220d2cce.tar.xz
mana-f80ff244eea2c3e6b37acf156f0d6933220d2cce.zip
Re-designed equipment window, un-equip created.
Diffstat (limited to 'src/net/gameserver')
-rw-r--r--src/net/gameserver/player.cpp7
-rw-r--r--src/net/gameserver/player.h1
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);