Loop of your inventory and search for the itemlink, and use bag GetItemName to extract name
Lua Code:
|
Quote:
The items are not realy in the bag but in the quest manager. To precise my question : how to match itemlink from EVENT_LOOT_RECEIVED that contains no text, with QuestTool's items that i have all info and specially name. |
Quote:
|
Yes i know, he has implemented his own Internal Questmanager.
I could do something like that But i want to avoid this, because at the end, the purpose is to get icons to show what we loot in LootDrop, and doing a questmanager for that is a bit too much, i think. |
Quote:
On the Event, you simply check the Current Inventory for the same ID, and get the Icon and Name from there, it works very well (didn't found a flaw so far) You can check the Source Code of Mobile Bank Extended ,function "MB.LootRecieved", the only speciality there is that i've looking in the previously saved Table, but i could also do a live lookup of the inventory to get the same result. |
Quote:
|
Quote:
For example: Code:
for i = 0, numEvents do |
I wish there was an easier way to extract item name from item links, but the only way i know it can be done since patch is based on having the item in your inventory.
|
It doesn't have to be the Inventory alone, but all of the values that can be entered as bagId in
the GetItemName(bagId,slotIndex) function. There are Global Variables defined. So far known to me: Lua Code:
* when accessing Guildbank Data you should wait for an event called EVENT_GUILD_BANK_ITEMS_READY Probably similar event for Buyback Tab. So for Khabit's problem ,the only solution i currently know: - Scan Guild Bank Items, save them (important "ID", "Name") - Scan ItemLinks from History, compare the "ID" with the "ID" of the previously saved information. to retrieve the Name. |
Hmm...so, if I'm understanding you correctly, farangkao, there's absolutely no way to reconstruct an item's name from that link for Guild Store sales history events? (Since once an item shows up in that history it's not in a bank, or bag other than the purchaser's inventory or mail possibly)
That's...truly unfortunate and completely breaks a major part of functionality in an addon I'm writing. Awesome. Especially since it's clearly possible with private functions since this displays a properly colorized item name just fine: Code:
if RequestGuildHistoryCategoryNewest(1, GUILD_HISTORY_SALES) then |
Not 100% sure, i will look into the Guild History Tab of the API, if i can find some info.
|
Quote:
Ultimately, part of the addon I'm writing involves being able to search a list of guild sales compiled from all guilds a player is in, so if I cannot search the item names that part of the functionality is a little pointless, heh :) Oh, if only GetItemInfo() worked on item links! Everything internal seems to handle the text-less links that GetGuildEventInfo() now returns (inserting into chat creates a clickable link just fine, creating a tooltip with it looks fine, even just flat-out calling d() on the link is a nice colorized name.) Just need access to whatever they're all calling :P |
well i got my answer about GetMapPlayerPosition('reticleover') just wish they would of released API changes before hand as i wasted time on it
Quote:
|
Quote:
|
All times are GMT -6. The time now is 08:17 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI