diff options
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/npchandler.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp index aeb8cf95..54a3abe0 100644 --- a/src/net/tmwa/npchandler.cpp +++ b/src/net/tmwa/npchandler.cpp @@ -213,30 +213,18 @@ void NpcHandler::talk(int npcId) MessageOut outMsg(CMSG_NPC_TALK); outMsg.writeInt32(npcId); outMsg.writeInt8(0); // Unused - - Event event(Event::TalkSent); - event.setInt("npcId", npcId); - event.trigger(Event::NpcChannel); } void NpcHandler::nextDialog(int npcId) { MessageOut outMsg(CMSG_NPC_NEXT_REQUEST); outMsg.writeInt32(npcId); - - Event event(Event::NextSent); - event.setInt("npcId", npcId); - event.trigger(Event::NpcChannel); } void NpcHandler::closeDialog(int npcId) { MessageOut outMsg(CMSG_NPC_CLOSE); outMsg.writeInt32(npcId); - - Event event(Event::CloseSent); - event.setInt("npcId", npcId); - event.trigger(Event::NpcChannel); } void NpcHandler::menuSelect(int npcId, int choice) @@ -244,11 +232,6 @@ void NpcHandler::menuSelect(int npcId, int choice) MessageOut outMsg(CMSG_NPC_LIST_CHOICE); outMsg.writeInt32(npcId); outMsg.writeInt8(choice); - - Event event(Event::MenuSent); - event.setInt("npcId", npcId); - event.setInt("choice", choice); - event.trigger(Event::NpcChannel); } void NpcHandler::integerInput(int npcId, int value) @@ -256,11 +239,6 @@ void NpcHandler::integerInput(int npcId, int value) MessageOut outMsg(CMSG_NPC_INT_RESPONSE); outMsg.writeInt32(npcId); outMsg.writeInt32(value); - - Event event(Event::IntegerInputSent); - event.setInt("npcId", npcId); - event.setInt("value", value); - event.trigger(Event::NpcChannel); } void NpcHandler::stringInput(int npcId, const std::string &value) @@ -270,11 +248,6 @@ void NpcHandler::stringInput(int npcId, const std::string &value) outMsg.writeInt32(npcId); outMsg.writeString(value, value.length()); outMsg.writeInt8(0); // Prevent problems with string reading - - Event event(Event::StringInputSent); - event.setInt("npcId", npcId); - event.setString("value", value); - event.trigger(Event::NpcChannel); } void NpcHandler::sendLetter(int npcId, const std::string &recipient, |