From 08ce25425e9ded586c7f44c0be851ca7f2afd6e6 Mon Sep 17 00:00:00 2001
From: Reid <reidyaro@gmail.com>
Date: Sat, 30 Jun 2012 21:13:29 +0200
Subject: Correct chest.txt, Mimic script from chest to box.txt , Add new 000-1
 wlk.

---
 data/000-1.wlk      | Bin 16804 -> 19204 bytes
 npc/000-1/chest.txt |   9 ++++-----
 npc/000-2-1/box.txt |   3 +--
 3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/data/000-1.wlk b/data/000-1.wlk
index 043f8e7f..ee636cb6 100644
Binary files a/data/000-1.wlk and b/data/000-1.wlk differ
diff --git a/npc/000-1/chest.txt b/npc/000-1/chest.txt
index cf924891..d8cef032 100644
--- a/npc/000-1/chest.txt
+++ b/npc/000-1/chest.txt
@@ -11,17 +11,16 @@
 
 000-1.gat,58,31,0	script	Chest	316;2,{
 
-    set @q, geta2(ShipQuests, ShipQuests_TreasureChest);
+    set @q, geta(ShipQuests, ShipQuests_TreasureChest);
     if (getnpcdir ("") == 4) goto l_Give;
-
     setnpcdir 2;
     initnpctimer;
     startnpctimer;
     close;
 
 l_Give:
-    if (@q > 1) goto l_Close;
-    seta2 ShipQuests, ShipQuests_TreasureChest, 1;
+    if (@q > 0) goto l_Close;
+    seta ShipQuests, ShipQuests_TreasureChest, 1;
     getitem "WornShirt", 1;
     getitem "WornShorts", 1;
     close;
@@ -38,4 +37,4 @@ OnTimer220:
     if (getnpcdir ("") == 6) setnpcdir 0;
     end;
 
-}
\ No newline at end of file
+}
diff --git a/npc/000-2-1/box.txt b/npc/000-2-1/box.txt
index 381dde7b..4535565f 100644
--- a/npc/000-2-1/box.txt
+++ b/npc/000-2-1/box.txt
@@ -9,11 +9,10 @@
 //    1: Talked to Arpan. Need to get cloths
 //    2: Got cloths
 
-000-2-1.gat,41,37,0	script	Box	317;2,{
+000-2-1.gat,41,37,0	script	Box	316;2,{
 
     set @q, geta2(ShipQuests, ShipQuests_Arpan);
     if (getnpcdir ("") == 4) goto l_Give;
-
     setnpcdir 2;
     initnpctimer;
     startnpctimer;
-- 
cgit v1.2.3-70-g09d2