lua:ch:inventory
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lua:ch:inventory [2014/12/24 04:56] – aethyn | lua:ch:inventory [2014/12/24 04:57] (current) – aethyn | ||
---|---|---|---|
Line 2: | Line 2: | ||
Example: | Example: | ||
+ | |||
+ | Loop through a PC's inventory and remove items with vnum 100 | ||
<code lua>for _,object in ipairs(ch.inventory) do | <code lua>for _,object in ipairs(ch.inventory) do |
lua/ch/inventory.1419396984.txt.gz · Last modified: 2014/12/24 04:56 by aethyn