Wednesday, April 18, 2012

[REQUEST] FreezeHelper Fix

FreezeHelper, an old addon for hunters that keep track of Freeze Trap AFTER a mob/player has entered the trap basically, like Sorren Timers and KHunterTimers but only works for Freeze Trap.

The mod can be found at http://wowui.incgamers.com/?p=mod&m=3394

What I wonder if anyone would be interested fixing it? It's still LUA 5.0 coded and it might be a simple turn to 5.1 (tho im not a coder so this is just wild guesses)

(I have my personal reason liking it more than Sorren Timers or KHunterTimers.)

Sorry of this topic is in the wrong forum :/|||I don't know if this will help, but to bring it to lua 5.1 compatibility just replace 'gfind' with 'gmatch' on lines 118, 127 and 133 of FreezeHelper.lua. Also update the Interface number to 20300 in the .toc. Could be other (API?) things broken with it though but I don't have a hunter to test...|||Did what you just said, the errors popping up is gone but its still not working.

Tho some part of the addon works, looked through the addon and found something in line 122, "FreezeHelper:Show();". This is suppose too be executed when the addon detects someone steps on the trap and gets trapped.

Tried in ingame console typing "/script FreezeHelper:Show();" and its seems to work fine. The only problem atm is that the addon can't detect someone steps on the trap and gets trapped. This is the part where I need help with.|||In combat some frames can't be hidden or shown using :Hide() or :Show().|||Nope, that was not the case, tried "/script FreezeHelper:Show();" incombat and it worked perfectly.

Edit: Okey got it working, tho maybe not perfectly fixed cuz I dont really understand what I did and what it would have for effects.

First changed all the gfind's to gmatch as Drool said.

Then at line 386 changed return 1 to return 0 and in line 388 return 0 to return 1.

And after that the addon worked perfectly, tho haven't tested it long enough to say it works "perfectly".|||Okey instead of the previous "fix" I think I really did it this time (tho not really sure)

-- This changes where made according to the newer TBC hunter talent tree.

Line 298: From "local _, texture, _, _, rank, _, _, _ = GetTalentInfo( 3, 7);"

To "local _, texture, _, _, rank, _, _, _ = GetTalentInfo( 3, 8);"

Line 309: From "duration = duration + (rank * 3);"

To "duration = duration + ( rank * ( duration * 0.15 ) );"

--

-- This changes where made according to new talent and Freezing Trap changes.

Line 376: From "if cooldown == 15 then"

To " local _, _, _, _, rank, _, _, _ = GetTalentInfo( 3, 17);

if cooldown == ( 30 - ( rank * 2 ) ) then"

And then ofcourse the changes Drool suggested and now this addon works perfectly.|||Quote:








Okey instead of the previous "fix" I think I really did it this time (tho not really sure)

-- This changes where made according to the newer TBC hunter talent tree.

Line 298: From "local _, texture, _, _, rank, _, _, _ = GetTalentInfo( 3, 7);"

To "local _, texture, _, _, rank, _, _, _ = GetTalentInfo( 3, 8);"

Line 309: From "duration = duration + (rank * 3);"

To "duration = duration + ( rank * ( duration * 0.15 ) );"

--

-- This changes where made according to new talent and Freezing Trap changes.

Line 376: From "if cooldown == 15 then"

To " local _, _, _, _, rank, _, _, _ = GetTalentInfo( 3, 17);

if cooldown == ( 30 - ( rank * 2 ) ) then"

And then ofcourse the changes Drool suggested and now this addon works perfectly.




Ok all that is jibberish to me. Could you possibly post ur version of the mod on incgamers? I like this mod and i wish to use it but i couldn't possibly sort out the LUA myself.|||You don't need to unserstand it, just find the line number and replace the text there with the version above.

No comments:

Post a Comment