Not signed in (Sign In)
    • CommentAuthorLordship
    • CommentTimeApr 27th 2007
     
    I use the Ornate Spyglass to sometimes look for nodes. Problem with that and gatherer was that sometimes a node was covered by the Gatherer Node Icon. So I put the following hack into place:

    In GatherEvent.lua
    function Gatherer.Event.OnLoad()
    ...
    this:RegisterEvent("COMBAT_TEXT_UPDATE")
    ...

    function Gatherer.Event.OnEvent( event, ... )
    ...
    elseif (event == "COMBAT_TEXT_UPDATE") then
    if (arg1 == "AURA_START" or arg1 == "AURA_END") then
    if (arg2 == "Longsight") then
    if (arg1 == "AURA_START") then
    Gatherer.Config.SetSetting("track.distance",210)
    Gatherer.MiniNotes.ForceUpdate()
    elseif (arg1 == "AURA_END") then
    Gatherer.Config.SetSetting("track.distance",110)
    Gatherer.MiniNotes.ForceUpdate()
    end
    end
    end
    ...

    There a probably a thousand more elegant ways of doing this, but this one kinda works. "Kinda", because some nodes in the 210 radius revert to the grey circle, others stay the node icon. Then I go out of Longsight, into longsight again and then it randomly works on some other nodes. Mostly all the nodes revert to the grey circle, but sometimes some nodes don't. Am I misunderstanding the purpose of Gatherer.MiniNotes.ForceUpdate() or what else am I doing wrong ?

    Thanks for the great addon
World of Warcraft™ and Blizzard Entertainment™ are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.