diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-05 19:17:33 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-05 19:17:33 -0600 |
commit | a0c7d1f61783e77e552896824855377e4bb43f8d (patch) | |
tree | e952181b83482abeffbd8ad9c62789b8f72e42e5 /src/gui/npcpostdialog.cpp | |
parent | 9113afb868f6c1da5911437d3ddabdcf169cbec2 (diff) | |
download | mana-client-a0c7d1f61783e77e552896824855377e4bb43f8d.tar.gz mana-client-a0c7d1f61783e77e552896824855377e4bb43f8d.tar.bz2 mana-client-a0c7d1f61783e77e552896824855377e4bb43f8d.tar.xz mana-client-a0c7d1f61783e77e552896824855377e4bb43f8d.zip |
Implement TMWServ's NpcHandler
Diffstat (limited to 'src/gui/npcpostdialog.cpp')
-rw-r--r-- | src/gui/npcpostdialog.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/npcpostdialog.cpp b/src/gui/npcpostdialog.cpp index 5c083612..2b178cff 100644 --- a/src/gui/npcpostdialog.cpp +++ b/src/gui/npcpostdialog.cpp @@ -28,7 +28,11 @@ #include "gui/widgets/chattab.h" -#include "net/tmwserv/gameserver/player.h" +#include "npc.h" + +#include "net/net.h" +#include "net/npchandler.h" + #include "utils/gettext.h" #include <guichan/widgets/label.hpp> @@ -84,7 +88,8 @@ void NpcPostDialog::action(const gcn::ActionEvent &event) } else { - Net::GameServer::Player::sendLetter(mSender->getText(), mText->getText()); + Net::getNpcHandler()->sendLetter(current_npc, mSender->getText(), + mText->getText()); } setVisible(false); clear(); |