diff options
author | Reid <reidyaro@gmail.com> | 2012-12-01 03:50:41 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2012-12-01 03:50:41 +0100 |
commit | d1832b732abcfa958e1351235421dfbcf74db24c (patch) | |
tree | 9b1e12ab8ad1dc0c73fbb95bdb4aa4f609217739 /npc/000-2-1/knife.txt | |
parent | 665fe52e08856d940be111360a2008873bf32e12 (diff) | |
download | clientdata-d1832b732abcfa958e1351235421dfbcf74db24c.tar.gz clientdata-d1832b732abcfa958e1351235421dfbcf74db24c.tar.bz2 clientdata-d1832b732abcfa958e1351235421dfbcf74db24c.tar.xz clientdata-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.txt | 19 |
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; - } |