From 71631b8c72eef79f721ab3b4a5c03425a0e0aabb Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 27 Jul 2019 20:10:02 -0300 Subject: Warp items will now cancel ship travel. They're allowed again onboard. --- db/re/item_db.conf | 1 + db/re/map_zone_db.conf | 11 ----------- npc/items/lofteleporter.txt | 4 ++++ npc/items/teleporter.txt | 3 ++- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 6e80f1e35..5fb5f2194 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -2670,6 +2670,7 @@ item_db: ( Script: <" // We would want warp to be delayed a bit but meh sleep2(rand(1000,2500)); + @timer_navio_running=0; warp "Save", 0, 0; "> }, diff --git a/db/re/map_zone_db.conf b/db/re/map_zone_db.conf index 37071377a..191b3610a 100644 --- a/db/re/map_zone_db.conf +++ b/db/re/map_zone_db.conf @@ -228,17 +228,6 @@ zones: ( disabled_items: { ExplosiveArrow: true Grenade: true - // Warp items because ship will override them - TimeFlask: true - CandorWarpCrystal: true - TulimWarpCrystal: true - HalinWarpCrystal: true - HurnsWarpCrystal: true - LoFWarpCrystal: true - NivalWarpCrystal: true - FrostiaWarpCrystal: true - LilitWarpCrystal: true - ReturnPotion: true } mapflags: ( diff --git a/npc/items/lofteleporter.txt b/npc/items/lofteleporter.txt index 44cf93c59..2540c90dc 100644 --- a/npc/items/lofteleporter.txt +++ b/npc/items/lofteleporter.txt @@ -71,21 +71,25 @@ OnUse: warp "017-1", 120, 89; TELEPORTER_TIME=loftel_time(40, .@x); LOCATION$="LoF"; + @timer_navio_running=0; break; case 3: warp "024-1", 155, 82; TELEPORTER_TIME=loftel_time(120, .@x); LOCATION$="Frostia"; + @timer_navio_running=0; break; case 4: warp "009-1", 113, 91; TELEPORTER_TIME=loftel_time(120, .@x); LOCATION$="Halin"; + @timer_navio_running=0; break; case 5: warp "Save", 0, 0; TELEPORTER_TIME=loftel_time(20, .@x); //LOCATION$="Save"; + @timer_navio_running=0; break; } closedialog; diff --git a/npc/items/teleporter.txt b/npc/items/teleporter.txt index dad9b97a7..40bf61821 100644 --- a/npc/items/teleporter.txt +++ b/npc/items/teleporter.txt @@ -41,8 +41,9 @@ OnUse: else getitem BrokenWarpCrystal, 1; - // Apply Cooldown, same variable as LoF Teleporter + // Apply Cooldown, same variable as LoF Teleporter, cancel ship travels TELEPORTER_TIME=gettimetick(2)+300; + @timer_navio_running=0; // Save new location and warp you there EnterTown(@dest$); -- cgit v1.2.3-70-g09d2