From 136d6d208ebe8a7db001bd6d90f2fbe056cb2a05 Mon Sep 17 00:00:00 2001
From: Reid <reidyaro@gmail.com>
Date: Wed, 28 Nov 2012 00:38:25 +0100
Subject: Complete Astapolos script.

---
 npc/000-1/astapolos.txt | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/npc/000-1/astapolos.txt b/npc/000-1/astapolos.txt
index 278bfc5b..8c29d893 100644
--- a/npc/000-1/astapolos.txt
+++ b/npc/000-1/astapolos.txt
@@ -58,27 +58,38 @@
     next;
     mesq lg("You have been so nice to me. So please, take one.");
     next;
-    
+
+    if (checkweight("CroconutBox", 1) == 0) goto l_CantGive;    
     setq ShipQuests_Astapolos, 1;
     getitem "CroconutBox", 1;
     
     mes "";
     mesn;
     mesq l("Good luck! And don't forget to visit Peter and our little friends when you will be back onboard!");
+
     close;
 
+l_CantGive:
+    mes "";
+    mesn;
+    mesq l("It seems that you can't carry more box yet.");
+    next;
+    mesq lg("Just come back to me once you'll have some more free place.");
+
+    close;
 
 l_Whyning:
     mes "";
     mesn;
     mesq l("Then just leave me alone.");
+
     close;
 
 l_CallFunc:
     callfunc "SailorFood";
 
-    menu  
-        rif(getq(ShipQuests_Astapolos) == 1, l("I'm still busy, I need to find the other sailors.")), -,
+    menu
+        rif(getq(ShipQuests_Astapolos) == 1 && (getq(ShipQuests_Ale) == 0 || getq(ShipQuests_Gulukan) == 0 || getq(ShipQuests_Jalad) == 0 || getq(ShipQuests_QMuller) == 0 || getq(ShipQuests_Tibbo) == 0), l("I'm still busy, I need to find the other sailors.")), -,
         l("How are things going?"), l_HowAreYou,
         l("Who are you?"), l_Who;
 
@@ -142,6 +153,7 @@ l_NoTask:
     mes "";
     mesn;
     mesq l("Just leave me alone.");
+
     close;
 
 }
-- 
cgit v1.2.3-70-g09d2