Thread Tools Display Modes
03/06/15, 04:09 PM   #1
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
IsItemLinkStolen usage help

I am trying to detect if items are stolen, but not sure about how to use that one...
I thought it would be something like
Lua Code:
  1. if IsItemLinkStolen(item.bag, item.slot) then
  2.  d(item.name.." is stolen!")
  3. end
but it doesn't detect my stolen items.
What am I doing wrong?
I have tried to find some info, but haven't been able to find any (looking at the wrong places?).
  Reply With Quote
03/06/15, 04:14 PM   #2
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
* IsItemStolen(*integer* _bagId_, *integer* _slotIndex_)
* IsItemLinkStolen(*string* _itemLink_)

Or you can use
data = SHARED_INVENTORY:GenerateSingleSlotData(bagId, slotIndex)
if data.stolen then ... end
  Reply With Quote
03/06/15, 04:23 PM   #3
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
Originally Posted by merlight View Post
* IsItemStolen(*integer* _bagId_, *integer* _slotIndex_)
* IsItemLinkStolen(*string* _itemLink_)

Or you can use
data = SHARED_INVENTORY:GenerateSingleSlotData(bagId, slotIndex)
if data.stolen then ... end
*facepalm*
Guess I didn't read properly. I simply used a mix of commands lol
IsItemStolen(*integer* _bagId_, *integer* _slotIndex_)
works perfectly, thanks a lot merlight

This thread can be closed in my opinion
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » IsItemLinkStolen usage help


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off