summaryrefslogtreecommitdiff
path: root/npc/000-1/jalad.txt
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2012-11-28 00:45:44 +0100
committerReid <reidyaro@gmail.com>2012-11-28 00:45:44 +0100
commite434701602c7b19767599e95f9b0adea5985e122 (patch)
tree31e9130845059b05759217295d3146584d4999f8 /npc/000-1/jalad.txt
parent136d6d208ebe8a7db001bd6d90f2fbe056cb2a05 (diff)
downloadserverdata-e434701602c7b19767599e95f9b0adea5985e122.tar.gz
serverdata-e434701602c7b19767599e95f9b0adea5985e122.tar.bz2
serverdata-e434701602c7b19767599e95f9b0adea5985e122.tar.xz
serverdata-e434701602c7b19767599e95f9b0adea5985e122.zip
Fix several issues on ale and jalad scripts,
Complete both scripts.
Diffstat (limited to 'npc/000-1/jalad.txt')
-rw-r--r--npc/000-1/jalad.txt22
1 files changed, 15 insertions, 7 deletions
diff --git a/npc/000-1/jalad.txt b/npc/000-1/jalad.txt
index e82efa15..85eec266 100644
--- a/npc/000-1/jalad.txt
+++ b/npc/000-1/jalad.txt
@@ -22,9 +22,7 @@
menu
l("I was going to ask you if you would need any help."), l_Continue,
- l("What is exactly your real job?"), l_Job;
-
-l_Job:
+ l("What is exactly your real job?"), -;
mes "";
mesn;
@@ -34,28 +32,28 @@ l_Job:
next;
menu
- l("I will surely visit him. Do you need any help with your boxes?"), l_Continue;
-
-l_Continue:
+ l("I will surely visit him. Do you need any help with your boxes?"), -;
mes "";
mesn;
mesq l("Surely. Take this box full of @@s.", getitemlink("Plushroom"));
next;
+ if (checkweight("PlushroomBox", 1) == 0) goto l_CantGive;
setq ShipQuests_Jalad, 1;
getitem "PlushroomBox", 1;
mes "";
mesn;
mesq l("They are so tasty when cooked together with some @@. Don't drop any of them!", getitemlink("Piou Legs"));
+
close;
l_CallFunc:
callfunc "SailorFood";
menu
- rif(getq(ShipQuests_Jalad) == 1, l("I'm still busy, I need to find the other sailors.")), -,
+ rif(getq(ShipQuests_Jalad) == 1 && (getq(ShipQuests_Ale) == 0 || getq(ShipQuests_Astapolos) == 0 || getq(ShipQuests_Gulukan) == 0 || getq(ShipQuests_QMuller) == 0 || getq(ShipQuests_Tibbo) == 0), l("I'm still busy, I need to find the other sailors.")), -,
l("What's that?"), l_Plushroom;
mes "";
@@ -73,6 +71,15 @@ l_CallFunc:
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_Bottom:
mes "";
mesn;
@@ -106,6 +113,7 @@ l_NoTask:
mes "";
mesn;
mesq l("Sometimes, I wish somebody is sent here to help us.");
+
close;
}