summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorDastgir <dastgirp@gmail.com>2019-03-09 21:57:11 +0530
committerDastgir <dastgirp@gmail.com>2019-03-09 21:57:11 +0530
commit6f7ad82c7a804a224fd8ca405a0ebc4b739dc3e4 (patch)
tree549ed2643812d0fe64aebd5334b06dfd3bdd5c97 /src/map
parent3b2fffae9f65bf064f7ab66a697196fd75550127 (diff)
downloadhercules-6f7ad82c7a804a224fd8ca405a0ebc4b739dc3e4.tar.gz
hercules-6f7ad82c7a804a224fd8ca405a0ebc4b739dc3e4.tar.bz2
hercules-6f7ad82c7a804a224fd8ca405a0ebc4b739dc3e4.tar.xz
hercules-6f7ad82c7a804a224fd8ca405a0ebc4b739dc3e4.zip
Expanded getinventorylist:
* getinventorylist now creates extra variable named @inventorylist_idx, which returns items corresponding inventory index.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 24cb8e4f4..b13e2fb76 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -14830,6 +14830,7 @@ static BUILDIN(getinventorylist)
}
pc->setreg(sd,reference_uid(script->add_variable("@inventorylist_expire"), j),sd->status.inventory[i].expire_time);
pc->setreg(sd,reference_uid(script->add_variable("@inventorylist_bound"), j),sd->status.inventory[i].bound);
+ pc->setreg(sd, reference_uid(script->add_variable("@inventorylist_idx"), j), i);
j++;
}
}