From 37432edac65a6b85c7a3414a421f2afd3e67a14e Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 31 Mar 2009 15:11:26 -0600 Subject: Add first draft of net handlers eAthena NPC handler has been implemented and is being used for NPC interraction. --- src/gui/npcstringdialog.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/gui/npcstringdialog.cpp') diff --git a/src/gui/npcstringdialog.cpp b/src/gui/npcstringdialog.cpp index e5137d9c..8d45e332 100644 --- a/src/gui/npcstringdialog.cpp +++ b/src/gui/npcstringdialog.cpp @@ -28,9 +28,8 @@ #include "../npc.h" -#include "../net/messageout.h" #ifdef EATHENA_SUPPORT -#include "../net/ea/protocol.h" +#include "../net/ea/npchandler.h" #endif #include "../utils/gettext.h" @@ -87,12 +86,9 @@ void NpcStringDialog::action(const gcn::ActionEvent &event) std::string text = mValueField->getText(); mValueField->setText(""); + // Net::getNpcHandler()->stringInput(current_npc, text); #ifdef EATHENA_SUPPORT - MessageOut outMsg(CMSG_NPC_STR_RESPONSE); - outMsg.writeInt16(text.length() + 9); - outMsg.writeInt32(current_npc); - outMsg.writeString(text, text.length()); - outMsg.writeInt8(0); + npcHandler->stringInput(current_npc, text); #endif } -- cgit v1.2.3-70-g09d2