summaryrefslogtreecommitdiff
path: root/src/net/tmwserv/playerhandler.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-07-03 22:17:18 +0200
committerPhilipp Sehmisch <crush@themanaworld.org>2009-07-03 22:28:02 +0200
commit346d68307553c18777df4c49f9b3fe57955c5c0d (patch)
treed27d3fff4f5a366f597ae83d3fb62e2dbd4d69bf /src/net/tmwserv/playerhandler.cpp
parente0de8a124bf94b79d9d64e5406b21e8598a05d56 (diff)
downloadmana-346d68307553c18777df4c49f9b3fe57955c5c0d.tar.gz
mana-346d68307553c18777df4c49f9b3fe57955c5c0d.tar.bz2
mana-346d68307553c18777df4c49f9b3fe57955c5c0d.tar.xz
mana-346d68307553c18777df4c49f9b3fe57955c5c0d.zip
Implemented display of spell recharge information from server in the magic gui (very, very hackish)
Diffstat (limited to 'src/net/tmwserv/playerhandler.cpp')
-rw-r--r--src/net/tmwserv/playerhandler.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/tmwserv/playerhandler.cpp b/src/net/tmwserv/playerhandler.cpp
index 69a2bdb4..bbc73b7c 100644
--- a/src/net/tmwserv/playerhandler.cpp
+++ b/src/net/tmwserv/playerhandler.cpp
@@ -106,6 +106,7 @@ PlayerHandler::PlayerHandler()
GPMSG_LEVEL_PROGRESS,
GPMSG_RAISE_ATTRIBUTE_RESPONSE,
GPMSG_LOWER_ATTRIBUTE_RESPONSE,
+ GPMSG_SPECIAL_STATUS,
0
};
handledMessages = _messages;
@@ -277,6 +278,19 @@ void PlayerHandler::handleMessage(MessageIn &msg)
}
} break;
+
+ case GPMSG_SPECIAL_STATUS :
+ {
+ while (msg.getUnreadLength())
+ {
+ // { B specialID, L current, L max, L recharge }
+ int id = msg.readInt8();
+ int current = msg.readInt32();
+ int max = msg.readInt32();
+ int recharge = msg.readInt32();
+ player_node->setSpecialStatus(id, current, max, recharge);
+ }
+ } break;
/*
case SMSG_PLAYER_ARROW_MESSAGE:
{