diff options
author | Reid Yaro <reidyaro@gmail.com> | 2013-05-20 03:49:50 +0100 |
---|---|---|
committer | Reid Yaro <reidyaro@gmail.com> | 2013-05-20 03:49:50 +0100 |
commit | 485f5a396a1f1b92f18bd56c757b32f4c068084c (patch) | |
tree | 3ba0a96cdc7381d8f6b09d4736d9127e1fc402f7 | |
parent | 67671ebe9cc05420deb9e762cda165af8c095823 (diff) | |
download | serverdata-485f5a396a1f1b92f18bd56c757b32f4c068084c.tar.gz serverdata-485f5a396a1f1b92f18bd56c757b32f4c068084c.tar.bz2 serverdata-485f5a396a1f1b92f18bd56c757b32f4c068084c.tar.xz serverdata-485f5a396a1f1b92f18bd56c757b32f4c068084c.zip |
Correct a bug on inventoryplace script.
-rw-r--r-- | npc/000-1/cookiemaster.txt | 8 | ||||
-rw-r--r-- | npc/functions/inventoryplace.txt | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/npc/000-1/cookiemaster.txt b/npc/000-1/cookiemaster.txt index 5838baab..fdd68d57 100644 --- a/npc/000-1/cookiemaster.txt +++ b/npc/000-1/cookiemaster.txt @@ -147,16 +147,14 @@ l_Reward: next; mesq l("Anyway, here you have your cookie."); - - callfunc "InventoryPlace", 517, 100000; + set @item, 517; + set @count, 1; + callfunc "InventoryPlace", @item, @count; setq General_Cookies, 1; getitem "DeliciousCookie", 1; npctalk3 l("You receive a @@!", getitemlink("CreamyBiscuit")); - - - next; mesq l("I'm sure that you'll enjoy the effect, but be prudent, these cookies are rare, and you'll need to help the community one more time before to get another one."); next; diff --git a/npc/functions/inventoryplace.txt b/npc/functions/inventoryplace.txt index 2a78ccfe..5d4b2d20 100644 --- a/npc/functions/inventoryplace.txt +++ b/npc/functions/inventoryplace.txt @@ -19,7 +19,8 @@ function script InventoryPlace { if ((@iteminfo < 4) && (@countitem > 0)) return; if (@inventorylist_count + @count <= 100) return; -l_Warm: +l_Warn: + mes ""; mesn "Narrator"; mes col(l("It looks like you can't carry anything else for now."), 9); next; |