User Tools

Site Tools


lua:ch:inventory

This is an old revision of the document!


Returns a table of OBJs.

Example:

Looping through a PCs inventory to look for an item with vnum 100:

for _,object in ipairs(ch.inventory) do

if object.vnum == 100 then

''-- do something''

end

end

lua/ch/inventory.1419396230.txt.gz · Last modified: 2014/12/24 04:43 by aethyn