From 83455b8803cfaaa537c8d15c64b5553c664885f5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 18:26:33 +0300 Subject: Add packet CMSG_SKILL_USE_POSITION_MORE 0x096a. --- src/net/eathena/skillhandler.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/net/eathena/skillhandler.cpp') diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index ef0b7d399..162448660 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -91,6 +91,18 @@ void SkillHandler::usePos(const int id, const int level, outMsg.writeInt16(static_cast(y)); } +void SkillHandler::usePos(const int id, const int level, + const int x, const int y, + const std::string &text) const +{ + MessageOut outMsg(CMSG_SKILL_USE_POSITION_MORE); + outMsg.writeInt16(static_cast(level), "level"); + outMsg.writeInt16(static_cast(id), "id"); + outMsg.writeInt16(static_cast(x), "x"); + outMsg.writeInt16(static_cast(y), "y"); + outMsg.writeString(text, 80, "text"); +} + void SkillHandler::useMap(const int id, const std::string &map) const { MessageOut outMsg(CMSG_SKILL_USE_MAP); -- cgit v1.2.3-70-g09d2