summaryrefslogtreecommitdiff
path: root/npc/000-2-3/box.txt
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2012-12-03 00:41:17 +0100
committerReid <reidyaro@gmail.com>2012-12-03 00:41:17 +0100
commit361331cbdcdd12577e992c69383ae0e31929512c (patch)
tree20a3e4367055716219536ba685910ec6140c59a0 /npc/000-2-3/box.txt
parent9859a4a8bd1227090e8d7de8b6d52488761d9e80 (diff)
downloadserverdata-361331cbdcdd12577e992c69383ae0e31929512c.tar.gz
serverdata-361331cbdcdd12577e992c69383ae0e31929512c.tar.bz2
serverdata-361331cbdcdd12577e992c69383ae0e31929512c.tar.xz
serverdata-361331cbdcdd12577e992c69383ae0e31929512c.zip
Add new function in every script where getitem is called.
Diffstat (limited to 'npc/000-2-3/box.txt')
-rw-r--r--npc/000-2-3/box.txt24
1 files changed, 10 insertions, 14 deletions
diff --git a/npc/000-2-3/box.txt b/npc/000-2-3/box.txt
index 12f5b10b..0866993a 100644
--- a/npc/000-2-3/box.txt
+++ b/npc/000-2-3/box.txt
@@ -63,8 +63,10 @@
mesq l("Now go outside and talk with Gugli, he'll tell you what we need.");
next;
- getinventorylist;
- if ((checkweight("JohanneKey", 1) == 0) || (@inventorylist_count == 100)) goto l_Inventory;
+ set @item, 718;
+ set @count, 1;
+ callfunc "InventoryPlace", @item, @count;
+
setq ShipQuests_Nard, 1;
getitem "JohanneKey", 1;
@@ -86,27 +88,21 @@ l_Give:
mesn "Nard";
mesq l("You are now part of the crew. Thanks again for your help.");
- getinventorylist;
- if ((checkweight("Bandana", 1) == 0) || (@inventorylist_count == 100)) goto l_Inventory;
+ set @item, 2900;
+ set @count, 1;
+ callfunc "InventoryPlace", @item, @count;
+
setq ShipQuests_Nard, 3;
getitem "Bandana", 1;
// Need to add a skill for the crew at this line.
close;
-l_Inventory;
- mes "";
- mesn;
- mesq l("It looks like you can't carry anything else for now.");
- next;
- mesq l("You should come back when you'll have some free space.");
-
- close;
-
l_Already:
mes "";
mesn "Nard";
- mesq l("You already took a Bandana, please put this one back in the box.");
+ mesq l("You already took a Bandana, please put this one back in the box.");
+
close;
}