summaryrefslogtreecommitdiff
path: root/src/net/tmwserv/playerhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-07-14 13:51:46 -0600
committerJared Adams <jaxad0127@gmail.com>2009-07-14 13:51:46 -0600
commitdf52e6b900600709ab0069daacf06093c61667b1 (patch)
tree45992865781aeca25c3263475b201beb4c372d7f /src/net/tmwserv/playerhandler.cpp
parentcc0878202c99c896f98918b219253eddcf9abf53 (diff)
downloadmana-df52e6b900600709ab0069daacf06093c61667b1.tar.gz
mana-df52e6b900600709ab0069daacf06093c61667b1.tar.bz2
mana-df52e6b900600709ab0069daacf06093c61667b1.tar.xz
mana-df52e6b900600709ab0069daacf06093c61667b1.zip
Merge and cleanup more stuff
Diffstat (limited to 'src/net/tmwserv/playerhandler.cpp')
-rw-r--r--src/net/tmwserv/playerhandler.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/net/tmwserv/playerhandler.cpp b/src/net/tmwserv/playerhandler.cpp
index fe1b821c..413fbeaf 100644
--- a/src/net/tmwserv/playerhandler.cpp
+++ b/src/net/tmwserv/playerhandler.cpp
@@ -322,14 +322,18 @@ void PlayerHandler::emote(int emoteId)
// TODO
}
-void PlayerHandler::increaseStat(LocalPlayer::Attribute attr)
+void PlayerHandler::increaseAttribute(size_t attr)
{
- // TODO
+ MessageOut msg(PGMSG_RAISE_ATTRIBUTE);
+ msg.writeInt8(attr);
+ Net::GameServer::connection->send(msg);
}
-void PlayerHandler::decreaseStat(LocalPlayer::Attribute attr)
+void PlayerHandler::decreaseAttribute(size_t attr)
{
- // TODO
+ MessageOut msg(PGMSG_LOWER_ATTRIBUTE);
+ msg.writeInt8(attr);
+ Net::GameServer::connection->send(msg);
}
void PlayerHandler::increaseSkill(int skillId)