summaryrefslogtreecommitdiff
path: root/npc/functions/inventoryplace.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-21 16:04:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-21 16:04:32 +0300
commit66a7953e6f6b4d7951c306e1d305ab3b904f557a (patch)
treed96f9df4db7a506277b5659aa6165e0efa7b1700 /npc/functions/inventoryplace.txt
parentefb1c01272dc109188f1a4559db05a73405a7d38 (diff)
downloadserverdata-66a7953e6f6b4d7951c306e1d305ab3b904f557a.tar.gz
serverdata-66a7953e6f6b4d7951c306e1d305ab3b904f557a.tar.bz2
serverdata-66a7953e6f6b4d7951c306e1d305ab3b904f557a.tar.xz
serverdata-66a7953e6f6b4d7951c306e1d305ab3b904f557a.zip
Replace temp variables into scope temp variables.
Diffstat (limited to 'npc/functions/inventoryplace.txt')
-rw-r--r--npc/functions/inventoryplace.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/npc/functions/inventoryplace.txt b/npc/functions/inventoryplace.txt
index c2f95c5c..02c013de 100644
--- a/npc/functions/inventoryplace.txt
+++ b/npc/functions/inventoryplace.txt
@@ -7,18 +7,18 @@
// getarg(0) item ID,
// getarg(1) number of items,
// Variables:
-// @iteminfo = Item information type. (See doc for list of item's types)
-// @countitem = Count item's number.
+// .@iteminfo = Item information type. (See doc for list of item's types)
+// .@countitem = Count item's number.
function script InventoryPlace {
getinventorylist;
- set @iteminfo, getiteminfo(getarg(0), 2);
- set @countitem, countitemcolor(getarg(0));
+ set .@iteminfo, getiteminfo(getarg(0), 2);
+ set .@countitem, countitemcolor(getarg(0));
if (checkweight(getarg(0), getarg(1)) == 0) goto L_Warn;
- if ((@iteminfo < 4) && (@countitem == 0) && (@inventorylist_count < 100)) return;
- if ((@iteminfo < 4) && (@countitem > 0)) return;
- if (@inventorylist_count + getarg(1) <= 100) return;
+ if ((.@iteminfo < 4) && (.@countitem == 0) && (.@inventorylist_count < 100)) return;
+ if ((.@iteminfo < 4) && (.@countitem > 0)) return;
+ if (.@inventorylist_count + getarg(1) <= 100) return;
L_Warn:
mes "";