From f6aaeaf0dc767d53352f98b92812be653e1d2287 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 17 Dec 2018 04:38:03 -0200 Subject: LoF Teleporter can bring you to Frostia or Halinarzo... Under certain cases. --- npc/items/teleporter.txt | 47 ++++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 19 deletions(-) (limited to 'npc/items/teleporter.txt') diff --git a/npc/items/teleporter.txt b/npc/items/teleporter.txt index 578a6a27f..30a7a7ead 100644 --- a/npc/items/teleporter.txt +++ b/npc/items/teleporter.txt @@ -43,31 +43,40 @@ OnUse: .@x=(reputation("LoF")/10)+min(10, countitem(TimeFlask)-1); // up to 10 minutes reduction from quests, and 10 from time flasks - menu - l("Don't warp"), -, - l("Land Of Fire Village (@@m)", 50-.@x), L_LoF, - l("Save Point (@@m)", 30-.@x), L_Save; + select + l("Don't warp"), + l("Land Of Fire Village (@@m)", 50-.@x), + rif(TELEPORTERS & TP_FROST, l("Frostia (@@m)", 360-.@x)), + rif(TELEPORTERS & TP_HALIN, l("Halinarzo (@@m)", 360-.@x)), + l("Save Point (@@m)", 30-.@x); - close; + if (@menu == 1) + close; -L_Save: - if (loftel_check()) { - dispbottom l("You are hurt, and cannot use this."); - } else { - doevent "shake::OnGM"; - warp "Save", 0, 0; - TELEPORTER_TIME=gettimetick(2)+max((60*30)-(.@x*60), 30); + switch (@menu) { + case 1: } - closedialog; - end; - -L_LoF: if (loftel_check()) { dispbottom l("You are hurt, and cannot use this."); - } else { + } doevent "shake::OnGM"; - warp "017-1", 120, 89; - TELEPORTER_TIME=gettimetick(2)+max((60*50)-(.@x*60), 30); + switch (@menu) { + case 2: + warp "017-1", 120, 89; + TELEPORTER_TIME=gettimetick(2)+max((60*50)-(.@x*60), 30); + break; + case 3: + warp "024-1", 155, 82; + TELEPORTER_TIME=gettimetick(2)+max((60*360)-(.@x*60), 30); + break; + case 4: + warp "009-1", 113, 91; + TELEPORTER_TIME=gettimetick(2)+max((60*360)-(.@x*60), 30); + break; + case 5: + warp "Save", 0, 0; + TELEPORTER_TIME=gettimetick(2)+max((60*30)-(.@x*60), 30); + break; } closedialog; end; -- cgit v1.2.3-60-g2f50