-
Posted by mazzop on Mon, 05 Dec 2011 16:54:03
hello, i made an addon to help me doing ML, its my first addon and i wsnt sure what i am doing and its sloppy but its working so hey ;) addon forwards item links guildies whisper me to a channel (her is for officer but i would want that into some custom chanel in the future), those whispers are formatted in a way i know autors guild rank and item level of item they send me
my question is if thers a way to always get players guildrank and itemlevel from itemlink, for guildrank they need to be close, and for itemlink it seems i must have item in cache or smth, thus those if == nil rules
sorry for my english
local iName, iLink, iRarity, iLevel = GetItemInfo(itemLink); local pguildName, pguildRankName = GetGuildInfo(arg2); if pguildRankName == nil then if iLevel == nil then SendChatMessage(arg2.." - "..itemLink,"OFFICER" ,"COMMON", ""); else SendChatMessage(arg2.." - "..itemLink..":"..iLevel,"OFFICER" ,"COMMON", ""); end else if iLevel == nil then SendChatMessage(arg2.." ["..pguildRankName.."] - "..itemLink,"OFFICER" ,"COMMON", ""); else SendChatMessage(arg2.." ["..pguildRankName.."] - "..itemLink..":"..iLevel,"OFFICER" ,"COMMON", "");
-
Posted by jnwhiteh on Tue, 06 Dec 2011 13:35:01
Thanks for posting, I hope someone else finds it useful!