diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-17 04:38:03 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-17 04:38:03 -0200 |
commit | f6aaeaf0dc767d53352f98b92812be653e1d2287 (patch) | |
tree | 7d4bebf462d0ffd7f6072447266e50bbfebfb61f /npc/items/teleporter.txt | |
parent | 2ec3ee9d4201d32d0ae92762703559377fc4a1de (diff) | |
download | serverdata-f6aaeaf0dc767d53352f98b92812be653e1d2287.tar.gz serverdata-f6aaeaf0dc767d53352f98b92812be653e1d2287.tar.bz2 serverdata-f6aaeaf0dc767d53352f98b92812be653e1d2287.tar.xz serverdata-f6aaeaf0dc767d53352f98b92812be653e1d2287.zip |
LoF Teleporter can bring you to Frostia or Halinarzo... Under certain cases.
Diffstat (limited to 'npc/items/teleporter.txt')
-rw-r--r-- | npc/items/teleporter.txt | 47 |
1 files changed, 28 insertions, 19 deletions
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; |