summaryrefslogtreecommitdiff
path: root/src/net/tmwa/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-09 18:26:33 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-09 18:26:33 +0300
commit83455b8803cfaaa537c8d15c64b5553c664885f5 (patch)
treed3bbf5bdfadd91f0cb8ceb50b41f4b18a530cc21 /src/net/tmwa/skillhandler.cpp
parent65a3fdc46d3728a3e8d5f40f7a89bbb86124919f (diff)
downloadmv-83455b8803cfaaa537c8d15c64b5553c664885f5.tar.gz
mv-83455b8803cfaaa537c8d15c64b5553c664885f5.tar.bz2
mv-83455b8803cfaaa537c8d15c64b5553c664885f5.tar.xz
mv-83455b8803cfaaa537c8d15c64b5553c664885f5.zip
Add packet CMSG_SKILL_USE_POSITION_MORE 0x096a.
Diffstat (limited to 'src/net/tmwa/skillhandler.cpp')
-rw-r--r--src/net/tmwa/skillhandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp
index da6a04b7e..26902f18e 100644
--- a/src/net/tmwa/skillhandler.cpp
+++ b/src/net/tmwa/skillhandler.cpp
@@ -93,6 +93,18 @@ void SkillHandler::usePos(const int id, const int level,
outMsg.writeInt16(static_cast<int16_t>(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<int16_t>(level), "level");
+ outMsg.writeInt16(static_cast<int16_t>(id), "id");
+ outMsg.writeInt16(static_cast<int16_t>(x), "x");
+ outMsg.writeInt16(static_cast<int16_t>(y), "y");
+ outMsg.writeString(text, 80, "text");
+}
+
void SkillHandler::useMap(const int id, const std::string &map) const
{
MessageOut outMsg(CMSG_SKILL_USE_MAP);