summaryrefslogtreecommitdiff
path: root/src/net/gameserver/player.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-10-15 15:45:14 +0000
committerDavid Athay <ko2fan@gmail.com>2008-10-15 15:45:14 +0000
commit438be47fa7078cd235bda7d2461024ddc222c026 (patch)
tree45afebcc356b7e77a8999ef1bda638c638522fae /src/net/gameserver/player.cpp
parent61a5caef2951f7e0e3a660514eb5d778d787df8f (diff)
downloadmana-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.cpp22
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);
+}