User Tools

Site Tools


lua:ch:inventory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
lua:ch:inventory [2014/12/24 04:56] aethynlua:ch:inventory [2014/12/24 04:57] (current) aethyn
Line 3: Line 3:
 Example: Example:
  
-<code lua>-- Loop though a PC's inventory and remove item with vnum 100  for _,object in ipairs(ch.inventory) do+Loop through a PC's inventory and remove items with vnum 100 
 + 
 +<code lua>for _,object in ipairs(ch.inventory) do
  
   if object.vnum == 100 then   if object.vnum == 100 then
lua/ch/inventory.1419397016.txt.gz · Last modified: 2014/12/24 04:56 by aethyn