summaryrefslogtreecommitdiff
path: root/src/net/eathena/skillrecv.cpp
diff options
context:
space:
mode:
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");