Difference between revisions of "RemoveItem"

300 bytes added ,  13:57, 6 June 2006
You can use reference-variables for ObjectID !
imported>GreyWanderer
(removed "retainownershipflag" since it doesn't support that parameter)
imported>JOG
(You can use reference-variables for ObjectID !)
Line 1: Line 1:
Removes ''count'' number of the specified item from the calling object's inventory.
'''Syntax:'''
'''Syntax:'''
  RemoveItem ''ObjectID'', ''count''
  RemoveItem ''ObjectID'', ''count''
'''Example:'''
 
 
'''Examples:'''
  RemoveItem Gold001 50
  RemoveItem Gold001 50


Ref MyItem
Short count
set MyItem to ArenaAkaviriLongSword
set count to 1
player.removeitem MyItem Count


Removes ''count'' number of the specified item from the calling object's inventory.




If ObjectID is a leveled list, the leveled item generated from the leveled list will be removed.
'''Notes:'''


* You can use a [[Variable_types:_reference_variables|reference variable]] as ''ObjectID'' and a [[Variable_types:_shortint|short]] variable for ''count''.


*If ObjectID is a leveled list, the leveled item generated from the leveled list will be removed.






==See Also==
==See Also==
[[AddItem]]
[[RemoveAllItems]]
[[RemoveAllItems]]


Anonymous user