From 11559679db9c2cff7838076d52b05ad19dd529e5 Mon Sep 17 00:00:00 2001 From: Reid Date: Tue, 4 Sep 2012 01:49:13 +0200 Subject: Remove ShipQuests_TreasureChest const, and replace it by the fourth value of ShipQuests_Darlin. --- npc/000-1/chest.txt | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'npc/000-1/chest.txt') diff --git a/npc/000-1/chest.txt b/npc/000-1/chest.txt index a6cc1ca4..984c8a80 100644 --- a/npc/000-1/chest.txt +++ b/npc/000-1/chest.txt @@ -4,16 +4,18 @@ // Hal9000 // Reid // Description: -// An opening treasure chest. -// Variable: -// ShipQuests_TreasureChest -// Values: -// 0 Not opened. -// 1 Opened. +// A treasure chest, with some... Treasures inside. +// Variable: +// x ShipQuests_Darlin +// Values: +// 0 Never talked with Darlin. +// 1 Spoke, and received quest. +// 2 Opened the treasure chest. +// 3 Get back to Darlin. 000-1.gat,83,70,0 script Chest#1 316;2,{ - set @q, getq(ShipQuests_TreasureChest); + set @q, getq(ShipQuests_Darlin); if (getnpcdir ("") == 4) goto l_Give; setnpcdir 2; @@ -22,8 +24,8 @@ close; l_Give: - if (@q > 0) goto l_Close; - setq ShipQuests_TreasureChest, 1; + if (@q > 1) goto l_Close; + setq ShipQuests_Darlin, 2; set zeny, zeny + 400; getitem 508, 1; getitem 509, 1; -- cgit v1.2.3-60-g2f50