From c2d88645247d31a5b7736a65afabb6d951aa2cb5 Mon Sep 17 00:00:00 2001 From: omatt Date: Sun, 7 Aug 2016 22:27:49 +0200 Subject: chest 000-1, typo name, add sound --- npc/000-1/chest.txt | 4 +++- npc/000-2-1/chest.txt | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/npc/000-1/chest.txt b/npc/000-1/chest.txt index c69dc2ac..9e623aa8 100644 --- a/npc/000-1/chest.txt +++ b/npc/000-1/chest.txt @@ -11,12 +11,13 @@ // 0 Treasure Chest has not been opened yet. // 1 Treasure Chest has been opened. -000-1,83,70,0 script #chest NPC_CHEST,{ +000-1,83,70,0 script Chest#000-1 NPC_CHEST,{ if (.dir != 4) { .dir = 2; initnpctimer; startnpctimer; + misceffect 24; close; } @@ -33,6 +34,7 @@ .dir = 6; initnpctimer; startnpctimer; + misceffect 25; close; OnTimer160: diff --git a/npc/000-2-1/chest.txt b/npc/000-2-1/chest.txt index f82ab9e9..ff5a3232 100644 --- a/npc/000-2-1/chest.txt +++ b/npc/000-2-1/chest.txt @@ -10,7 +10,7 @@ // 1 Talked to Arpan and needs to get clothes. // 2 Has the clothes. -000-2-1,51,37,0 script Chest NPC_CHEST_BIG,{ +000-2-1,51,37,0 script Chest#000-2-1 NPC_CHEST_BIG,{ .@q = getq(ShipQuests_Arpan); if (.@q == 0) goto L_Talk; @@ -19,6 +19,7 @@ .dir = 2; initnpctimer; startnpctimer; + misceffect 24; close; L_Give: @@ -31,7 +32,7 @@ L_Give: npctalk3 l("You take the clothes from the chest."); goto L_Quit; -OnTimer220: +OnTimer360: stopnpctimer; if (.dir == 2) .dir = 4; if (.dir == 6) .dir = 0; @@ -46,6 +47,7 @@ L_Quit: .dir = 6; initnpctimer; startnpctimer; + misceffect 25; close; OnInit: -- cgit v1.2.3-70-g09d2