Difference between revisions of "Osiris/API/ItemGetOwner"
From Divinity Engine Wiki
Line 1: | Line 1: | ||
===== Full Definition(s) ===== | ===== Full Definition(s) ===== | ||
− | * query ''' | + | * query '''ItemGetOwner'''('''''[in]'''(ITEMGUID)'''''_Item''', '''''[in]'''(CHARACTERGUID)'''''_Character''') |
===== Description ===== | ===== Description ===== | ||
Returnes the Owner of the '''_Item''' as '''_Character''', which is the last character to have the item in their inventory. This can be overridden through [[Osiris/API/ItemSetOwner|ItemSetOwner]]. | Returnes the Owner of the '''_Item''' as '''_Character''', which is the last character to have the item in their inventory. This can be overridden through [[Osiris/API/ItemSetOwner|ItemSetOwner]]. | ||
===== Return Values ===== | ===== Return Values ===== | ||
* '''Success/Failure''': Fails if the '''_Item''' does not exist. | * '''Success/Failure''': Fails if the '''_Item''' does not exist. | ||
− | * '''_Character''': The | + | * '''_Character''': The owner of the item. |
+ | ===== Notes ===== | ||
+ | * An item's Owner is cleared when that Owner dies. | ||
===== See Also ===== | ===== See Also ===== | ||
*[[Osiris/API/ItemSetOnlyOwnerCanUse|ItemSetOnlyOwnerCanUse]] | *[[Osiris/API/ItemSetOnlyOwnerCanUse|ItemSetOnlyOwnerCanUse]] | ||
*[[Osiris/API/ItemSetOwner|ItemSetOwner]] | *[[Osiris/API/ItemSetOwner|ItemSetOwner]] | ||
− | |||
*[[Osiris/API/ItemSetOriginalOwner|ItemSetOriginalOwner]] | *[[Osiris/API/ItemSetOriginalOwner|ItemSetOriginalOwner]] | ||
+ | *[[Osiris/API/ItemGetOriginalOwner|ItemGetOriginalOwner]] | ||
+ | |||
[[Category:Osiris Queries|ItemGetOwner]] | [[Category:Osiris Queries|ItemGetOwner]] |
Latest revision as of 16:07, 19 December 2017
Full Definition(s)
- query ItemGetOwner([in](ITEMGUID)_Item, [in](CHARACTERGUID)_Character)
Description
Returnes the Owner of the _Item as _Character, which is the last character to have the item in their inventory. This can be overridden through ItemSetOwner.
Return Values
- Success/Failure: Fails if the _Item does not exist.
- _Character: The owner of the item.
Notes
- An item's Owner is cleared when that Owner dies.