[DiscordArchive] For what eluna?
[DiscordArchive] For what eluna?
Archived author: Kaev • Posted: 2018-05-31T11:47:29.072000+00:00
Original source
Easiest way would probably be via AIO
Archived author: Kaev • Posted: 2018-05-31T11:48:13.061000+00:00
Original source
Otherwise you could change the item packet that it will always add the GUID to the description
Archived author: Kaev • Posted: 2018-05-31T11:48:33.219000+00:00
Original source
I'm not sure if you can access the GUID via Client Lua API
Archived author: ayase • Posted: 2018-05-31T11:49:42.797000+00:00
Original source
I searched wow addons wiki.I didn't find this API.
Archived author: ayase • Posted: 2018-05-31T11:50:29.565000+00:00
Original source
There is no good way to get an itemguid.
Archived author: Kaev • Posted: 2018-05-31T11:57:28.779000+00:00
Original source
I think the client doesn't even know about the item GUID
Archived author: ayase • Posted: 2018-05-31T11:59:16.347000+00:00
Original source
I currently use aio.Use bag and slot.
Archived author: ayase • Posted: 2018-05-31T11:59:30.054000+00:00
Original source
```
local headGameTooltipOnTooltipSetItemScript = GameTooltip:GetScript("OnTooltipSetItem")
local function GetGuidByPos(bag,slot)
ItemGuidMatch[bag] = ItemGuidMatch[bag] or {}
return ItemGuidMatch[bag][slot]
end
local function headGameTooltipOnTooltipSetItem(self)
local _, ItemLink = self:GetItem()
if ItemLink then
local owner = self:GetOwner()
if (owner~=nil) then
local bag,slot = GetItemSlotInfo(owner)
if (bag and slot) then
if (GetGuidByPos(bag,slot)==nil) then
AIO.Handle("AyaseCore_Addons_Query","GetItemGuid",bag,slot)
else
handleItemGuidInfo(self,GetGuidByPos(bag,slot))
end
end
end
end
return headGameTooltipOnTooltipSetItemScript(self)
end
function ItemGuidHandle.SetItemGuid(player,bag,slot,guid)
--print(guid,entry,name)
ItemGuidMatch[bag] = ItemGuidMatch[bag] or {}
ItemGuidMatch[bag][slot] = guid
end
```
Archived author: ayase • Posted: 2018-05-31T12:00:06.886000+00:00
Original source
But it's not a good idea.
Archived author: Kaev • Posted: 2018-05-31T12:31:35.213000+00:00
Original source
http://wowwiki.wikia.com/wiki/API_GameTooltip_AddLine
[Embed: API GameTooltip AddLine]
→ MethodsContents[show] ← Widget API ← GameTooltip AddLine GameTooltip:AddLine(text [, red, green, blue [, wrapText]]); Appends a line of text to tooltip. Arguments text string - text which will...
http://wowwiki.wikia.com/wiki/API_GameTooltip_AddLine