summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-14 12:21:07 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-14 12:26:38 -0600
commit9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1 (patch)
tree88ac95203280fbe994273ede7ec10b1acfbb9b4b /src/net
parentafc879b5ca185cfd93e604942aac45e76dc3c322 (diff)
downloadmana-9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1.tar.gz
mana-9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1.tar.bz2
mana-9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1.tar.xz
mana-9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1.zip
Add functions to more easily work with equipment
Move hair changes back over to them; related server change was reverted. Also move NPCs back over to extending Player. NPCs will have equipment in the future too, but for now, disable that part while we finish the system.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/beinghandler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 96c5986b..29c10900 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -397,8 +397,7 @@ void BeingHandler::handleMessage(MessageIn &msg)
switch (type) {
case 1: // eAthena LOOK_HAIR
- player->setSprite(Player::HAIR_SPRITE, id * -1,
- ColorDB::get(id2));
+ player->setSpriteID(Player::HAIR_SPRITE, id *-1);
break;
case 2: // Weapon ID in id, Shield ID in id2
player->setSprite(Player::WEAPON_SPRITE, id);
@@ -414,7 +413,7 @@ void BeingHandler::handleMessage(MessageIn &msg)
player->setSprite(Player::TOPCLOTHES_SPRITE, id);
break;
case 6: // eAthena LOOK_HAIR_COLOR
- // ignored (duplicate of LOOK_HAIR)
+ player->setSpriteColor(Player::HAIR_SPRITE, ColorDB::get(id));
break;
case 8: // eAthena LOOK_SHIELD
player->setSprite(Player::SHIELD_SPRITE, id);