summaryrefslogtreecommitdiff
path: root/src/localplayer.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/localplayer.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/localplayer.cpp')
-rw-r--r--src/localplayer.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index b3e13a2a..1dd8bdf2 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -104,10 +104,7 @@ Item* LocalPlayer::getInvItem(int index)
void LocalPlayer::equipItem(Item *item)
{
- // XXX What's itemId and slot exactly? Same as eAthena?
- /*
- Net::GameServer::Player::equip(itemId, slot));
- */
+ Net::GameServer::Player::equip(item->getInvIndex());
}
void LocalPlayer::unequipItem(Item *item)
@@ -138,12 +135,7 @@ void LocalPlayer::useItem(Item *item)
void LocalPlayer::dropItem(Item *item, int quantity)
{
- // XXX Convert for new server
- /*
- MessageOut outMsg(CMSG_PLAYER_INVENTORY_DROP);
- outMsg.writeShort(item->getInvIndex());
- outMsg.writeShort(quantity);
- */
+ Net::GameServer::Player::drop(item->getInvIndex(), quantity);
}
void LocalPlayer::pickUp(FloorItem *item)