summaryrefslogtreecommitdiff
path: root/npc/000-2-1/knife.txt
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2012-12-01 03:50:41 +0100
committerReid <reidyaro@gmail.com>2012-12-01 03:50:41 +0100
commitd1832b732abcfa958e1351235421dfbcf74db24c (patch)
tree9b1e12ab8ad1dc0c73fbb95bdb4aa4f609217739 /npc/000-2-1/knife.txt
parent665fe52e08856d940be111360a2008873bf32e12 (diff)
downloadserverdata-d1832b732abcfa958e1351235421dfbcf74db24c.tar.gz
serverdata-d1832b732abcfa958e1351235421dfbcf74db24c.tar.bz2
serverdata-d1832b732abcfa958e1351235421dfbcf74db24c.tar.xz
serverdata-d1832b732abcfa958e1351235421dfbcf74db24c.zip
Update functions scripts,
Add new function script to check if an item has enough space and weight before to launch getitem(test).
Diffstat (limited to 'npc/000-2-1/knife.txt')
-rw-r--r--npc/000-2-1/knife.txt19
1 files changed, 6 insertions, 13 deletions
diff --git a/npc/000-2-1/knife.txt b/npc/000-2-1/knife.txt
index 71138fac..4a9892e7 100644
--- a/npc/000-2-1/knife.txt
+++ b/npc/000-2-1/knife.txt
@@ -25,12 +25,14 @@
close;
l_Give:
+ mes "";
+ set @item, 3500;
+ set @count, 3;
getinventorylist;
- if ((checkweight("Knife", 1) == 0) || (@inventorylist_count == 100)) goto l_Inventory;
- setq ShipQuests_Knife, 1;
- getitem "Knife", 1;
+ callfunc "InventoryPlace", @item, @count;
+
+ getitem "Knife", 3;
- mes "";
mesn "Narrator";
mes col(l("To open your inventory, use the F3 key or use your mouse to select it in the above menu in your client."), 9);
next;
@@ -40,13 +42,4 @@ l_Give:
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;
-
}