summaryrefslogtreecommitdiff
path: root/src/net/tmwa/pethandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-28 19:36:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-28 19:36:50 +0300
commita5e3d86efb85bb2a65e160972cc56e89cd764453 (patch)
treef385447603a24a3898b493ce131b4edf8abd86ab /src/net/tmwa/pethandler.cpp
parent8bfdc250ae7c5ab852653b3aa2da7f3781c7c56e (diff)
downloadmanaplus-a5e3d86efb85bb2a65e160972cc56e89cd764453.tar.gz
manaplus-a5e3d86efb85bb2a65e160972cc56e89cd764453.tar.bz2
manaplus-a5e3d86efb85bb2a65e160972cc56e89cd764453.tar.xz
manaplus-a5e3d86efb85bb2a65e160972cc56e89cd764453.zip
Add chat command for stop and start pet ai.
Diffstat (limited to 'src/net/tmwa/pethandler.cpp')
-rw-r--r--src/net/tmwa/pethandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/tmwa/pethandler.cpp b/src/net/tmwa/pethandler.cpp
index 787b288b5..33bd2cb3c 100644
--- a/src/net/tmwa/pethandler.cpp
+++ b/src/net/tmwa/pethandler.cpp
@@ -113,4 +113,10 @@ void PetHandler::setDirection(const BeingDirection::Type type) const
static_cast<int>(type), tick_time), GENERAL_CHANNEL);
}
+void PetHandler::startAi(const bool start) const
+{
+ chatHandler->talk(strprintf("\302\202\302a%dg%d",
+ start ? 1 : 0, tick_time), GENERAL_CHANNEL);
+}
+
} // namespace TmwAthena