Difference between revisions of "Osiris/API/ItemGetOwner"

From Divinity Engine Wiki
Jump to: navigation, search
(Created page with "===== Full Definition(s) ===== * query '''ItemGetOwner'''('''''[in]'''(ITEMGUID)'''''_Item''', '''''[in]'''(CHARACTERGUID)'''''_Character''') ===== Description ===== Returnes...")
 
Line 1: Line 1:
 
===== Full Definition(s) =====
 
===== Full Definition(s) =====
* query '''ItemGetOwner'''('''''[in]'''(ITEMGUID)'''''_Item''', '''''[in]'''(CHARACTERGUID)'''''_Character''')
+
* query '''ItemGetOriginalOwner'''('''''[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 owner of the item.
+
* '''_Character''': The original 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/ItemGetOwner|ItemGetOwner]]
 
*[[Osiris/API/ItemSetOriginalOwner|ItemSetOriginalOwner]]
 
*[[Osiris/API/ItemSetOriginalOwner|ItemSetOriginalOwner]]
*[[Osiris/API/ItemGetOriginalOwner|ItemGetOriginalOwner]]
 
 
 
   
 
   
 
[[Category:Osiris Queries|ItemGetOwner]]
 
[[Category:Osiris Queries|ItemGetOwner]]

Revision as of 16:06, 19 December 2017

Full Definition(s)
  • query ItemGetOriginalOwner([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 original owner of the item.
See Also