User Tools

Site Tools


lua:ch:inventory

This is an old revision of the document!


Returns a table of OBJs.

Example:

-- Loop though a PC's inventory and remove item with vnum 100  for _,object in ipairs(ch.inventory) do
 
  if object.vnum == 100 then
 
    object:destroy()
 
  end
 
end
lua/ch/inventory.1419397016.txt.gz · Last modified: 2014/12/24 04:56 by aethyn