From 31f7e91e3051699c6845ecdd629bb2cab6fcd664 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 14 Jan 2019 15:21:42 -0200 Subject: Tutorial Island, and the redesign --- npc/000-0-0/chest.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'npc/000-0-0/chest.txt') diff --git a/npc/000-0-0/chest.txt b/npc/000-0-0/chest.txt index 8c332c844..2674400ac 100644 --- a/npc/000-0-0/chest.txt +++ b/npc/000-0-0/chest.txt @@ -17,16 +17,14 @@ .@questState = getq(ShipQuests_Arpan); - if (.@questState == 0) - { + if (.@questState == 0) { npctalk3 l("You should talk to Magic Arpan first."); end; } if (.busy == false) { - if (.@questState <= 1) - { + if (.@questState == 1) { inventoryplace CreasedShirt, 2; setq1 ShipQuests_Arpan, 2; getitem CreasedShirt, 1; @@ -48,15 +46,13 @@ OnTimer220: OnTimer500: .busy = false; // unlock - if (.dir == 0) - { + if (.dir == 0) { stopnpctimer; // stop here if the chest is closed } end; OnUnTouch: - if (getareausers(.x - 2, .y - 4, .x + 2, .y + 6) > 0 || .dir == 0) - { + if (getareausers(.x - 2, .y - 4, .x + 2, .y + 6) > 0 || .dir == 0) { end; } OnTimer30000: -- cgit v1.2.3-70-g09d2