User Tools

Site Tools


lua:ch:inventory

Returns a table of OBJs.

Example:

Loop through a PC's inventory and remove items with vnum 100

for _,object in ipairs(ch.inventory) do
 
  if object.vnum == 100 then
 
    object:destroy()
 
  end
 
end
lua/ch/inventory.txt · Last modified: 2014/12/24 04:57 by aethyn