summaryrefslogtreecommitdiff
path: root/src/net/eathena/skillrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-25 09:13:32 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-25 09:13:32 +0300
commit4325c90ab0845d3c98f09917ff51bdb0a139c2d7 (patch)
treee791b1597a661ab03822bd7ee56996b535fb7d91 /src/net/eathena/skillrecv.cpp
parent84ec06e6d2814ec0cbef904fb352baf1f43bf7c7 (diff)
downloadmanaverse-4325c90ab0845d3c98f09917ff51bdb0a139c2d7.tar.gz
manaverse-4325c90ab0845d3c98f09917ff51bdb0a139c2d7.tar.bz2
manaverse-4325c90ab0845d3c98f09917ff51bdb0a139c2d7.tar.xz
manaverse-4325c90ab0845d3c98f09917ff51bdb0a139c2d7.zip
Add packet SMSG_SKILL_WARP_POINT 0x0abe.
Diffstat (limited to 'src/net/eathena/skillrecv.cpp')
-rw-r--r--src/net/eathena/skillrecv.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/net/eathena/skillrecv.cpp b/src/net/eathena/skillrecv.cpp
index 6307cb3ab..3f22d02bd 100644
--- a/src/net/eathena/skillrecv.cpp
+++ b/src/net/eathena/skillrecv.cpp
@@ -442,6 +442,24 @@ void SkillRecv::processSkillWarpPoint(Net::MessageIn &msg)
dialog->addText(msg.readString(16, "map name"));
}
+void SkillRecv::processSkillWarpPoint2(Net::MessageIn &msg)
+{
+ const int count = (msg.readInt16("len") - 6) / 16;
+ const int skillId = msg.readInt16("skill id");
+
+ TextSelectDialog *const dialog = CREATEWIDGETR(TextSelectDialog,
+ // TRANSLATORS: warp select window name
+ _("Select warp target"),
+ // TRANSLATORS: warp select button
+ _("Warp"),
+ AllowQuit_false);
+ skillWarpListener.setDialog(dialog);
+ skillWarpListener.setSkill(skillId);
+ dialog->addActionListener(&skillWarpListener);
+ for (int f = 0; f < count; f ++)
+ dialog->addText(msg.readString(16, "map name"));
+}
+
void SkillRecv::processSkillMemoMessage(Net::MessageIn &msg)
{
const int type = msg.readUInt8("type");