From 9ac79140b1aea5b8bed42eba5eea21b0a8bb9dba Mon Sep 17 00:00:00 2001
From: Hal9OOO <miglietta.francesco@gmail.com>
Date: Wed, 12 Dec 2012 21:24:05 +0100
Subject: Player now cannot take clothes before having talked with Magic Arpan
 in order to avoid some questvars to be initialized.

---
 npc/000-2-1/arpan.txt | 4 ++++
 npc/000-2-1/chest.txt | 7 +++++++
 2 files changed, 11 insertions(+)

(limited to 'npc')

diff --git a/npc/000-2-1/arpan.txt b/npc/000-2-1/arpan.txt
index a0122913..cbc9ee1a 100644
--- a/npc/000-2-1/arpan.txt
+++ b/npc/000-2-1/arpan.txt
@@ -119,6 +119,10 @@ OnEquip:
 l_OhWell:
     mes "";
     mesq lg("Oh well, we rescued you when you were yaying adrift in the sea.");
+    next;
+
+    menu
+        l("And then what happened?"), l_Story;
 
 l_Story:
     mes "";
diff --git a/npc/000-2-1/chest.txt b/npc/000-2-1/chest.txt
index b898ee6b..7ff7cbf9 100644
--- a/npc/000-2-1/chest.txt
+++ b/npc/000-2-1/chest.txt
@@ -13,6 +13,8 @@
 000-2-1.gat,51,37,0	script	Chest#0	317;2,{
 
     set @q, getq(ShipQuests_Arpan);
+    
+    if (@q == 0) goto l_Talk;
     if (getnpcdir ("") == 4) goto l_Give;
 
     setnpcdir 2;
@@ -37,6 +39,11 @@ OnTimer220:
     if (getnpcdir ("") == 6) setnpcdir 0;
     end;
 
+l_Talk:
+    message strcharinfo(0), l("You need to talk to Magic Arpan first!");
+
+    close;
+
 l_Quit:
     setnpcdir 6;
     initnpctimer;
-- 
cgit v1.2.3-70-g09d2