itemlink comparising allways fails
Hello Guys,
I acutally try to compare 2 itemlinks from the same item. First from the lootwindow via "GetLootItemLink()" and after that when it reaches the inventory over GetItemLink(). When I compare that both itemlinks in the chatlog they look identical and working well, but when I compare them via code did the check allways fail. Did I make something wrong or did the itemlinks differ when they get over different functions? Lua Code:
EDIT: Found the problem. The post can be deleted. sorry, for the unconvience. |
Personally, I prefer comparing specific parts of an item link. Item links from different sources, whether it's a default style or not, state of gear, etc. all change an item link, and you don't always care about it. So rather than a straight up equality, you should compare what you care about.
|
i guess your problem is: one item link is with brackets, the other without
as far i remember, the itemLink from loot event starts with "|H0" and this one from inventory with "|H1" ups, didn't read your edit :D |
All times are GMT -6. The time now is 10:49 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI