ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   IsItemLinkStolen usage help (https://www.esoui.com/forums/showthread.php?t=4380)

SnowmanDK 03/06/15 04:09 PM

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?).

merlight 03/06/15 04:14 PM

* IsItemStolen(*integer* _bagId_, *integer* _slotIndex_)
* IsItemLinkStolen(*string* _itemLink_)

Or you can use
data = SHARED_INVENTORY:GenerateSingleSlotData(bagId, slotIndex)
if data.stolen then ... end

SnowmanDK 03/06/15 04:23 PM

Quote:

Originally Posted by merlight (Post 19294)
* 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 ;)


All times are GMT -6. The time now is 08:52 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI