summaryrefslogtreecommitdiff
path: root/src/net/gameserver
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-11-06 16:02:12 +0000
committerDavid Athay <ko2fan@gmail.com>2008-11-06 16:02:12 +0000
commit2e7a4d66bd9ce5077b7a0062aff856d669e05b97 (patch)
treefbe2623101ca6fa849d9a7f739f73b40f34d1abb /src/net/gameserver
parent222db257d7de12f1077eb43d448d6b357d4642e7 (diff)
downloadmana-2e7a4d66bd9ce5077b7a0062aff856d669e05b97.tar.gz
mana-2e7a4d66bd9ce5077b7a0062aff856d669e05b97.tar.bz2
mana-2e7a4d66bd9ce5077b7a0062aff856d669e05b97.tar.xz
mana-2e7a4d66bd9ce5077b7a0062aff856d669e05b97.zip
Added interface for sending post.
Diffstat (limited to 'src/net/gameserver')
-rw-r--r--src/net/gameserver/player.cpp8
-rw-r--r--src/net/gameserver/player.h1
2 files changed, 1 insertions, 8 deletions
diff --git a/src/net/gameserver/player.cpp b/src/net/gameserver/player.cpp
index 79ada480..cd85447c 100644
--- a/src/net/gameserver/player.cpp
+++ b/src/net/gameserver/player.cpp
@@ -170,18 +170,12 @@ void Net::GameServer::Player::tradeWithNPC(int item, int amount)
void Net::GameServer::Player::sendLetter(const std::string &player,
const std::string &text)
{
- MessageOut msg(PGMSG_SEND_POST);
+ MessageOut msg(PGMSG_NPC_POST_SEND);
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);
diff --git a/src/net/gameserver/player.h b/src/net/gameserver/player.h
index 3eba8a13..75e28270 100644
--- a/src/net/gameserver/player.h
+++ b/src/net/gameserver/player.h
@@ -61,7 +61,6 @@ namespace Net
void tradeMoney(int amount);
void tradeWithNPC(int item, int amount);
void sendLetter(const std::string &player, const std::string &text);
- void getLetters();
void raiseAttribute(int attribute);
void lowerAttribute(int attribute);
void respawn();