From 0d355e3126ab7e0a88bd8e54ce724498f6828c01 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Feb 2015 15:32:42 +0300 Subject: eathena: add pet emote command. --- src/net/eathena/pethandler.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/net/eathena/pethandler.cpp') diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index 29e48ba04..6d1167198 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -121,12 +121,8 @@ void PetHandler::spawn(const Being *const being A_UNUSED, void PetHandler::emote(const uint8_t emoteId, const int petId A_UNUSED) { - mRandCounter ++; - if (mRandCounter > 10000) - mRandCounter = 1000; - - chatHandler->talk(strprintf("\302\202\302e%dz%d", - static_cast(emoteId), mRandCounter), GENERAL_CHANNEL); + createOutPacket(CMSG_PET_EMOTE); + outMsg.writeInt8(emoteId, "emote id"); } void PetHandler::catchPet(const Being *const being) const -- cgit v1.2.3-60-g2f50