diff options
author | David Athay <ko2fan@gmail.com> | 2008-10-15 15:45:14 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-10-15 15:45:14 +0000 |
commit | 438be47fa7078cd235bda7d2461024ddc222c026 (patch) | |
tree | 45afebcc356b7e77a8999ef1bda638c638522fae /src/net/gameserver/player.cpp | |
parent | 61a5caef2951f7e0e3a660514eb5d778d787df8f (diff) | |
download | mana-438be47fa7078cd235bda7d2461024ddc222c026.tar.gz mana-438be47fa7078cd235bda7d2461024ddc222c026.tar.bz2 mana-438be47fa7078cd235bda7d2461024ddc222c026.tar.xz mana-438be47fa7078cd235bda7d2461024ddc222c026.zip |
src/localplayer.cpp
src/net/beinghandler.cpp
src/net/protocol.h
src/net/gameserver/player.h
src/net/gameserver/player.cpp
src/net/beinghandler.h
ChangeLog
tmw.cbp
Diffstat (limited to 'src/net/gameserver/player.cpp')
-rw-r--r-- | src/net/gameserver/player.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/net/gameserver/player.cpp b/src/net/gameserver/player.cpp index d8050d2b..28fd954a 100644 --- a/src/net/gameserver/player.cpp +++ b/src/net/gameserver/player.cpp @@ -160,6 +160,21 @@ void Net::GameServer::Player::tradeWithNPC(int item, int amount) Net::GameServer::connection->send(msg); } +void Net::GameServer::Player::sendLetter(const std::string &player, + const std::string &text) +{ + MessageOut msg(PGMSG_SEND_POST); + msg.writeString(player); + msg.writeString(text); + Net::GameServer::connection->send(msg); +} + +void Net::GameServer::Player::getLetters() +{ + MessageOut msg(PGMSG_GET_POST); + Net::GameServer::connection->send(msg); +} + void Net::GameServer::Player::raiseAttribute(int attribute) { MessageOut msg(PGMSG_RAISE_ATTRIBUTE); @@ -179,3 +194,10 @@ void Net::GameServer::Player::respawn() MessageOut msg(PGMSG_RESPAWN); Net::GameServer::connection->send(msg); } + +void Net::GameServer::Player::changeDir(unsigned char dir) +{ + MessageOut msg(PGMSG_DIRECTION_CHANGE); + msg.writeInt8(dir); + Net::GameServer::connection->send(msg); +} |