diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-05-19 13:11:59 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-05-25 15:11:46 +0200 |
commit | f90d1a1bcd8b82886cf8ae07f0d0d83e11e2f53d (patch) | |
tree | 0465b232d1b5ab46a0d0b9fd69ab6be7fc7a002a /src/net | |
parent | eab4971993edade67edc9445624f6ca28c4b30fe (diff) | |
download | mana-f90d1a1bcd8b82886cf8ae07f0d0d83e11e2f53d.tar.gz mana-f90d1a1bcd8b82886cf8ae07f0d0d83e11e2f53d.tar.bz2 mana-f90d1a1bcd8b82886cf8ae07f0d0d83e11e2f53d.tar.xz mana-f90d1a1bcd8b82886cf8ae07f0d0d83e11e2f53d.zip |
Fixed skill display for manaserv
- shows manaserv skills at all
- shows the progress bar for manaserv skills again
- shows the level for this skills (server side patch needed)
TODO: URGENT: Fix attributes and skills getting stored in same list.
Reviewed-by: Bertram.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/manaserv/manaserv_protocol.h | 2 | ||||
-rw-r--r-- | src/net/manaserv/playerhandler.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/net/manaserv/manaserv_protocol.h b/src/net/manaserv/manaserv_protocol.h index 5f94b726..bfa737d8 100644 --- a/src/net/manaserv/manaserv_protocol.h +++ b/src/net/manaserv/manaserv_protocol.h @@ -114,7 +114,7 @@ enum { GPMSG_INVENTORY_FULL = 0x0121, // W inventory slot count { W slot, W itemId, W amount }, { W equip slot, W item Id, W item Instance}* GPMSG_EQUIP = 0x0122, // W item Id, W equip slot type count //{ W equip slot, W capacity used}*//<- When equipping, //{ W item instance, W 0}*//<- When unequipping GPMSG_PLAYER_ATTRIBUTE_CHANGE = 0x0130, // { W attribute, D base value (in 1/256ths), D modified value (in 1/256ths)}* - GPMSG_PLAYER_EXP_CHANGE = 0x0140, // { W skill, D exp got, D exp needed }* + GPMSG_PLAYER_EXP_CHANGE = 0x0140, // { W skill, D exp got, D exp needed, W skill level }* GPMSG_LEVELUP = 0x0150, // W new level, W character points, W correction points GPMSG_LEVEL_PROGRESS = 0x0151, // B percent completed to next levelup PGMSG_RAISE_ATTRIBUTE = 0x0160, // W attribute diff --git a/src/net/manaserv/playerhandler.cpp b/src/net/manaserv/playerhandler.cpp index 841ead56..c2c491d5 100644 --- a/src/net/manaserv/playerhandler.cpp +++ b/src/net/manaserv/playerhandler.cpp @@ -140,8 +140,10 @@ void PlayerHandler::handleMessage(MessageIn &msg) int skill = msg.readInt16(); int current = msg.readInt32(); int next = msg.readInt32(); + int level = msg.readInt16(); PlayerInfo::setStatExperience(skill, current, next); + PlayerInfo::setStatBase(skill, level); } } break; |