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 | |
parent | 665fe52e08856d940be111360a2008873bf32e12 (diff) | |
download | serverdata-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')
-rw-r--r-- | npc/000-2-1/knife.txt | 19 | ||||
-rw-r--r-- | npc/functions/clientversion.txt | 2 | ||||
-rw-r--r-- | npc/functions/sailordialogue.txt | 2 | ||||
-rw-r--r-- | npc/functions/savepoint.txt | 2 |
4 files changed, 9 insertions, 16 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; - } diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index 5d20e4f7..28636436 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -1,4 +1,4 @@ -// Evol scripts. +// Evol functions. // Author: // 4144 // Description: diff --git a/npc/functions/sailordialogue.txt b/npc/functions/sailordialogue.txt index 20d81508..33d86ac6 100644 --- a/npc/functions/sailordialogue.txt +++ b/npc/functions/sailordialogue.txt @@ -1,4 +1,4 @@ -// Evol scripts. +// Evol functions. // Author: // Reid // Description: diff --git a/npc/functions/savepoint.txt b/npc/functions/savepoint.txt index 1e5e9211..ef366ce8 100644 --- a/npc/functions/savepoint.txt +++ b/npc/functions/savepoint.txt @@ -1,4 +1,4 @@ -// Evol scripts. +// Evol functions. // Author: // Reid // Description: |