From 5c627fd6cb53cad66a39d77c5a394ad27a3d22c5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 22 Feb 2020 01:19:37 -0300 Subject: What's this? Looks like a bug. Add "missing" ontouch code --- npc/002-5/main.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'npc') diff --git a/npc/002-5/main.txt b/npc/002-5/main.txt index 22269552e..99980daaf 100644 --- a/npc/002-5/main.txt +++ b/npc/002-5/main.txt @@ -35,6 +35,13 @@ L_Error: warp "000-1", 22, 22; Exception("PLAYER INVALID PC_DEST ON #NardShip: " + PC_DEST$, RB_DEFAULT | RB_ISFATAL); end; + +OnTouch: + if (PC_DEST$ != "" && @timer_navio_running == 0) { + addtimer nard_time(PC_DEST$), "#NardShip::OnEvent"; + @timer_navio_running = 1; + } + end; } // Do not add .distance here. -- cgit v1.2.3-60-g2f50