From 3eb2a28b8c79cad5071d9512054783f1a1cef602 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Feb 2016 21:11:48 +0300 Subject: Add chat command /monsterinfo --- src/net/eathena/adminhandler.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/net/eathena/adminhandler.cpp') diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 1b49e4c45..878cd2156 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -24,6 +24,10 @@ #include "being/being.h" +#include "const/gui/chat.h" + +#include "net/chathandler.h" + #include "net/eathena/messageout.h" #include "net/eathena/protocolout.h" @@ -158,4 +162,9 @@ void AdminHandler::requestStats(const std::string &name) const outMsg.writeString(name, 24, "name"); } +void AdminHandler::monsterInfo(const std::string &name) const +{ + chatHandler->talk("@monsterinfo " + name, GENERAL_CHANNEL); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2