summaryrefslogtreecommitdiff
path: root/src/emap/scriptdefines.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-21 18:01:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-21 20:11:59 +0300
commit36fb4cda271bda394b7e5e3b5911c6d9858aa8f8 (patch)
tree5f196194ab5e3810cfbc4d8346b275cbf1f41583 /src/emap/scriptdefines.h
parent2a2edf5da86b7a5847f62242744376e7a9b304c7 (diff)
downloadevol-hercules-36fb4cda271bda394b7e5e3b5911c6d9858aa8f8.tar.gz
evol-hercules-36fb4cda271bda394b7e5e3b5911c6d9858aa8f8.tar.bz2
evol-hercules-36fb4cda271bda394b7e5e3b5911c6d9858aa8f8.tar.xz
evol-hercules-36fb4cda271bda394b7e5e3b5911c6d9858aa8f8.zip
Add script functions requestItemIndex and requestItemsIndex.
This functions request from player inventory indexes for items. Example: requestItemIndex @item; requestItemsIndex @item$, num;
Diffstat (limited to 'src/emap/scriptdefines.h')
-rw-r--r--src/emap/scriptdefines.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emap/scriptdefines.h b/src/emap/scriptdefines.h
index 1a6cf14..2121763 100644
--- a/src/emap/scriptdefines.h
+++ b/src/emap/scriptdefines.h
@@ -18,7 +18,7 @@
} \
struct SessionExt *data = session_get(sd->fd)
-#define getSessionData() \
+#define getSessionData(data) \
if (!st->rid) \
return true; \
TBL_PC *sd = script->rid2sd(st); \