Jump to content
  • Advertisement
Sign in to follow this  


This topic is 3976 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey guys... need ur help... this is for any1 who can do LUA in WoW game, dont expect any1 who dont play WoW could get it :( got some addon what show me itemlevel to every1 item window. and id like to add there ItemID and VendorPrice (price what give me vendor for the item)... didnt find any usable addon :( so id like to assemble this1 if any1 helps me: iteminfo.lua: function ItemLevel_AddInfo(tooltip, link) if tooltip and link then local found, _, id = string.find(link, "item:(%d+)%:%d+%:%d+%:%d+"); if found then local name, link, rarity, level, requiredlevel, class, subclass, stacksize, inventorytype, icon = GetItemInfo(id); if name then tooltip:AddLine("ItemLevel: ".. level); tooltip:Show(); end end end end function ItemLevel_SetBagItem(tooltip, bag, itemslot) local hasCooldown, repairCost = tooltip:ItemLevel_SetBagItem(bag, itemslot); local link = GetContainerItemLink(bag, itemslot); ItemLevel_AddInfo(tooltip, link); return hasCooldown, repairCost; end function ItemLevel_SetHyperlink(tooltip, link) tooltip:ItemLevel_SetHyperlink(link); ItemLevel_AddInfo(tooltip, link); end function ItemLevel_SetInventoryItem(tooltip, unit, slot) local hasItem, hasCooldown, repairCost = tooltip:ItemLevel_SetInventoryItem(unit, slot); local link = GetInventoryItemLink(unit, slot); ItemLevel_AddInfo(tooltip, link); return hasItem, hasCooldown, repairCost; end function ItemLevel_SetAuctionItem(tooltip, type, index) tooltip:ItemLevel_SetAuctionItem(type, index); local link = GetAuctionItemLink(type, index); ItemLevel_AddInfo(tooltip, link); end function ItemLevel_SetLootItem(tooltip, slot) tooltip:ItemLevel_SetLootItem(slot); local link = GetLootSlotLink(slot); ItemLevel_AddInfo(tooltip, link); end function ItemLevel_SetMerchantItem(tooltip, index) tooltip:ItemLevel_SetMerchantItem(index); local link = GetMerchantItemLink(index); ItemLevel_AddInfo(tooltip, link); end ItemRefTooltip.ItemLevel_SetHyperlink = ItemRefTooltip.SetHyperlink; ItemRefTooltip.SetHyperlink = ItemLevel_SetHyperlink; GameTooltip.ItemLevel_SetHyperlink = GameTooltip.SetHyperlink; GameTooltip.SetHyperlink = ItemLevel_SetHyperlink; GameTooltip.ItemLevel_SetBagItem = GameTooltip.SetBagItem; GameTooltip.SetBagItem = ItemLevel_SetBagItem; GameTooltip.ItemLevel_SetInventoryItem = GameTooltip.SetInventoryItem; GameTooltip.SetInventoryItem = ItemLevel_SetInventoryItem; GameTooltip.ItemLevel_SetAuctionItem = GameTooltip.SetAuctionItem; GameTooltip.SetAuctionItem = ItemLevel_SetAuctionItem; GameTooltip.ItemLevel_SetLootItem = GameTooltip.SetLootItem; GameTooltip.SetLootItem = ItemLevel_SetLootItem; GameTooltip.ItemLevel_SetMerchantItem = GameTooltip.SetMerchantItem; GameTooltip.SetMerchantItem = ItemLevel_SetMerchantItem;

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!