lua:ch:inventory
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| lua:ch:inventory [2014/12/24 04:57] – aethyn | lua:ch:inventory [2026/10/13 20:06] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Returns a table of [[: | ||
| - | |||
| - | Example: | ||
| - | |||
| - | 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 | ||
| - | |||
| - | object: | ||
| - | |||
| - | end | ||
| - | |||
| - | end | ||
| - | </ | ||
lua/ch/inventory.1419397051.txt.gz · Last modified: by aethyn
