This class is for existing item. Every item copy parameters of his Item definition and can have own values.
drop (count) - Drops item. event (name) - Execute event "name". Returns true if there was any code wor this event. @return boolean exists - Returns if itemexists. get (name, defval) - Returns value of item's parameter. id - Returns id of item. Id is itemDefinition name. is (name) - Returns if item has this ID, case non sensitive! name - Returns name of item. Name is translated itemDefinition name via names.dd2. placeOnFloor - Places item on floor placeToInventory - Places item to leader's inventory set (name, value) - Change value of item's parameter.
drop (count)
Drops item. If there are more items in stock drops only "count" of them.
Parameters
count - of droped items in stock, default = 1
event (name)
Execute event "name". Returns true if there was any code wor this event. @return boolean
Parameters
name - of event
exists
Returns if itemexists.
Returns
boolean
get (name, defval)
Returns value of item's parameter.
Parameters
name - of parameter defval - return value if parameter doesn't exists, default = ""
Returns
text
id
Returns id of item. Id is itemDefinition name.
Returns
text
is (name)
Returns if item has this ID, case non sensitive!
Parameters
name - name of item
Returns
bool
name
Returns name of item. Name is translated itemDefinition name via names.dd2.
Returns
text
placeOnFloor
Places item on floor
placeToInventory
Places item to leader's inventory
set (name, value)
Change value of item's parameter.
Parameters
name - of parameter value - new value of parameter
Generated by Hideoshi's Documentation Tool on 28.10.2003 20:08:54