| Tested: | Hour of Twilight 4.3 |
| Updated: | 11-30-11 06:32 AM |
| Created: | 12-17-10 03:35 PM |
| Downloads: | 2,724 |
| Favorites: | 52 |
| MD5: |
File Name |
Version |
Size |
Author |
Date |
0.4 |
2kB |
havoc74 |
12-30-10 06:03 PM |
![]() |
Comment Options |
|
|
|
|
A Deviate Faerie Dragon
Forum posts: 17
File comments: 196
Uploads: 0
|
Thanks for the update, but what did you do exactly ? It seems transmog is messing with the lvl now...
|
|
|
|
|
||
I see the need of your suggestion and will look into it as soon as I can. In the mean time, if you've got any coding experience, please feel free to implement your suggestion and post your code here. I probly won't be able to get to it till the weekend, I apologize for the delay. Married, and father of 4, plus a full time 3rd shift job - it gets pretty hectic around here. Thank you for your patience ![]()
__________________
havoc74 havoc@hellbatgames.com http://hellbatgames.com Thearic of Hydraxis (Alliance) Furis of Hydraxis (Horde) |
||
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
Can you also hook the event "UNIT_INVENTORY_CHANGED" to update the ilevel too?
Right now, if you equip an item from your inventory onto your character, you have to close the character sheet and reopen it to get the updated values. That and/or the "EQUIPMENT_SWAP_FINISHED" event ![]() Thanks! Love the addon! I'm recommending it to my guild as I'm typing. |
|
|
|
|
||
|
Re: color
__________________
havoc74 havoc@hellbatgames.com http://hellbatgames.com Thearic of Hydraxis (Alliance) Furis of Hydraxis (Horde) |
||
|
|
|
|
|
|
color
could you color it please?
|
|
|
|
|
|
||
|
Re: Re: Re: Re: Re: Error Message
EDIT: Ok, i'm home, have slept, and now looking at your code snippet again, and it makes so much more sense to me now. lol I'll get this updated soon, I just need to do some testing and stuff. EDIT: Ok, all fixed. Thanks again zaphon, I used your code in the update, hope that's ok ![]()
__________________
havoc74 havoc@hellbatgames.com http://hellbatgames.com Thearic of Hydraxis (Alliance) Furis of Hydraxis (Horde)
Last edited by havoc74 : 12-30-10 at 06:04 PM.
|
||
|
|
|
|
||
|
A Defias Bandit
Forum posts: 2
File comments: 35
Uploads: 0
|
Re: Re: Re: Re: Error Message
Click on someone, inspect them, put your mouse over an item their wearing, you should see a tooltip. Now put your mouse cursor over another player, than go back to the inspect frame, and put your mouse over a piece of gear. You won't get a tooltip at all for the item (as you are changing the inspect to scan the other player).
Last edited by zaphon : 12-29-10 at 05:10 PM.
|
|
|
|
|
|
||
|
Re: Re: Re: Error Message
__________________
havoc74 havoc@hellbatgames.com http://hellbatgames.com Thearic of Hydraxis (Alliance) Furis of Hydraxis (Horde) |
||
|
|
|
|
||
|
A Defias Bandit
Forum posts: 2
File comments: 35
Uploads: 0
|
Re: Re: Error Message
Code:
diff -rw AiL/AiL.lua AiL-new/AiL.lua 65c65,66 < if (unit and CanInspect(unit)) then --- > local isInspectOpen = (InspectFrame and InspectFrame:IsShown()) or (Examiner and Examiner:IsShown()); > if ((unit) and (CanInspect(unit)) and (not isInspectOpen)) then |
|
|
|
|
|
||
|
A Defias Bandit
Forum posts: 2
File comments: 35
Uploads: 0
|
Re: Error Message
Code:
if (total < 1 or itn < 1) then
return;
end
|
|
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 1
File comments: 11
Uploads: 0
|
Error Message
Got the following error. Not sure what I did. I was just walking to my mailbox in Stormwind. It looks like it might be a conflict with Auctioneer's tooltip.
Date: 2010-12-24 15:01:08 ID: 1 Error occured in: Global Count: 1 Message: ..\AddOns\AiL\AiL.lua line 38: attempt to compare nil with number Debug: [C]: ? AiL\AiL.lua:38: AiL\AiL.lua:35 AiL\AiL.lua:68: AiL\AiL.lua:62 [C]: ? ...AddOns\Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:327: ...AddOns\Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:321 Details: http://shorttext.com/t07qseiw2u |
|
|
|
|
|
|
A Defias Bandit
Forum posts: 2
File comments: 35
Uploads: 0
|
I just picked up this mod over nivItemLevel as it doesn't cause me to get errors all the time. However, I did add a piece of code that's a bit more helpful to me (I comment out the part that adds my iLvL to the unit frame, as I didn't want to see it all the time). Instead I have added the iLvL to the Character Information Pane. Here's the diff if you want to add it (maybe as an option, whatever).
Code:
diff -rw AiL/AiL.lua AiL-changed/AiL.lua
78a79,86
> PAPERDOLL_STATINFO["AIL"] = {
> updateFunc = function(statFrame, unit)
> PaperDollFrame_SetLabelAndText(statFrame, "AiL", GetAiL("player"))
> statFrame:Show()
> end
> }
> tinsert(PAPERDOLL_STATCATEGORIES["GENERAL"].stats, "AIL")
>
|
|
|
|
|
|
|
That was what I was going to do if you couldn't find a solution, so thanks
![]() I had some small issues getting it included so below is the correct way to edit (if you want this functionality): (Simply add this after the GetAiL function) Lua Code:
and (Find the first line, comment it, and add the second) Lua Code:
__________________
Never be satisfied with satisfactory.
Last edited by Cralor : 12-21-10 at 04:43 PM.
|
|
|
|
|
|
||
I don't want to change AiL, it was never meant to be a comparative addon, just an informative addon. But for you the answer is quite easy. local function ColorText(iLvl) local myLevel = tonumber(GetAIL("player")) local color = "FFFFFF" if iLvl >= (myLevel + 20) then color = "FF0033" -- red elseif iLvl >= (myLevel + 10) then color = "FF6633" -- orange elseif iLvl > myLevel then color = "FFFF00" -- yellow elseif iLvl <= myLevel then color = "33CC00" -- green end return color end Add your ColorText function to the addon, then do this: --GameTooltip:AddLine(format("AiL: " .. ail), r, gb, gb); GameTooltip:AddLine(format(ColorText(ail).."AiL: "..ail.."|r")); comment out the first line as above, and copy/paste the second line in. It uses your function and you can do it locally.
__________________
havoc74 havoc@hellbatgames.com http://hellbatgames.com Thearic of Hydraxis (Alliance) Furis of Hydraxis (Horde) |
||
|
|
![]() |