corpse
¶
Data related to the current lootable corpse. See Corpse.
Inheritance¶
This type inherits members from spawn.
classDiagram
spawn <|-- corpse
direction RL
class spawn {
}
link spawn "../datatype-spawn/"
class corpse {
}
Members¶
item Item[N]
¶
- Nth item on the corpse
item Item [name]
¶
- Finds an item by partial name in this corpse (use
=<name>
for exact match)
int Items
¶
- Number of items on the corpse
bool Open
¶
- Corpse open?
string To String
¶
- Same as Open
Usage¶
Example
| Print a message if we have items to loot
/if (${Corpse.Open} && ${Corpse.Items}) /echo We are currently looting a corpse with items
-- Print a message if we have items to loot
if mq.TLO.Corpse.Open() and mq.TLO.Corpse.Items() > 0 then
print('We are currently looting a corpse with items')
end