summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/items/teleporter.txt47
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;