+ Reply to Thread
Results 1 to 11 of 11
Like Tree4Likes
  • 3 Post By Adelea
  • 1 Post By chuckySTAR

Thread: Wanted: an addon that automatically removes love bug buff

  1. #1
    RIFT Guide Writer
    Join Date
    Mar 2011
    Posts
    2,422

    Default Wanted: an addon that automatically removes love bug buff

    I'm annoyed by this thing constantly messing with my UI.

  2. #2
    Shield of Telara Adelea's Avatar
    Join Date
    Mar 2011
    Posts
    734

    Default

    Save as RiftAddon.toc

    Code:
    Identifier = "TrashBuffCancel" 
    Name = "TrashBuffCancel" 
    Description = "Cancels trash buffs (sheep, shambler, love bug)" 
    Author = "Adelea@Icewatch-EU" 
    Version = "2.01r1" 
    Email = "adelea@exyles.com"
    Environment = "2.0" 
    RunOnStartup = {
        "TBC_Main.lua",
    }
    Save as TBC_Main.lua

    Code:
    local CANCELBUFFS = {
    	["B69270855B9A593AC"] = "SHEEP",
    	["B2C7F2ABFDAD20E1D"] = "SHAMBLER",
    	["B3F04AB1FD601EC35"] = "LOVE BUG"
    }
    
    local playerID = Inspect.Unit.Lookup("player")
    
    -- Auto buff cancel
    local function Event_Buff_Add(unit, buff)
    	if unit == playerID then
    		for k,v in pairs(buff) do
    			if CANCELBUFFS[v] ~= nil then
    				Command.Buff.Cancel(k)
    			end
    		end
    	end
    end	
    
    table.insert(Event.Buff.Add, {Event_Buff_Add, "TrashBuffCancel", "Event.Buff.Add"})
    http://forums.riftgame.com/image.php?type=sigpic&userid=125779&dateline=13553  38065

  3. #3
    RIFT Guide Writer
    Join Date
    Mar 2011
    Posts
    2,422

    Default

    Thank you but it doesn't work. In fact it just makes things worse since it leaves the temporary ability on screen but greyed out even when the love bug buff is gone.

  4. #4
    Shield of Telara Adelea's Avatar
    Join Date
    Mar 2011
    Posts
    734

    Default

    I dont know then - it is working perfectly fine for me!

    It will only remove it when you get the buff, not sure how it would behave if you had the buff already when you logged in.

    If you cancel the buff manually, does it work when it gets reapplied, or are you still seeing the temporary ability bar?
    http://forums.riftgame.com/image.php?type=sigpic&userid=125779&dateline=13553  38065

  5. #5
    Shield of Telara
    Join Date
    Jan 2011
    Posts
    758

    Default

    Here is a macro
    /cancelbuff love bug

    Solved. Well, not automatic, but it works.

  6. #6
    Plane Touched marodeur's Avatar
    Join Date
    Jan 2011
    Posts
    213

    Default

    Quote Originally Posted by Adelea View Post
    I dont know then - it is working perfectly fine for me!

    It will only remove it when you get the buff, not sure how it would behave if you had the buff already when you logged in.

    If you cancel the buff manually, does it work when it gets reapplied, or are you still seeing the temporary ability bar?
    Your code is working, thanks.

  7. #7
    RIFT Guide Writer Bowler Hat's Avatar
    Join Date
    Feb 2011
    Posts
    1,530

    Default

    Works a treat, thankyou.

  8. #8
    Rift Disciple chuckySTAR's Avatar
    Join Date
    Feb 2011
    Posts
    152

    Default

    Quote Originally Posted by Gery View Post
    Thank you but it doesn't work. In fact it just makes things worse since it leaves the temporary ability on screen but greyed out even when the love bug buff is gone.
    http://forums.riftgame.com/rift-gene...ml#post4159179
    Vince
    GAME OVER
    WORLD FIRST PRE NERFZ REGULOS

  9. #9
    Plane Touched marodeur's Avatar
    Join Date
    Jan 2011
    Posts
    213

    Default

    Quote Originally Posted by Gery View Post
    Thank you but it doesn't work. In fact it just makes things worse since it leaves the temporary ability on screen but greyed out even when the love bug buff is gone.
    Ah i see what you mean, i had the same problem totay twice, a reloadui fixed it.
    I gues it is because the UI isnt updating fast enough, a delay in the cancel function should help.

    Code:
    local e=({next(Inspect.Addon.List())})[1]local i=Inspect.Unit.Lookup("player")local n local t table.insert(Event.Buff.Add,{function(d,e)if d==i then for e,i in pairs(e)do if i=="B3F04AB1FD601EC35"then n=e t=Inspect.Time.Frame()+.3 end end end end,e,"LOVEBUG"})table.insert(Event.System.Update.Begin,{function()if n and t<Inspect.Time.Frame()then Command.Buff.Cancel(n)n=nil end end,e,"LOVEBUGDELAY"})
    That is the lua code from chuckySTAR's macro just replace it with the previous. Thx chuckySTAR.
    Last edited by marodeur; 02-15-2013 at 05:05 AM.

  10. #10
    RIFT Guide Writer
    Join Date
    Mar 2011
    Posts
    2,422

    Default

    Looks like my initial issue was because I already had the buff when I installed to addon fix and also getting love bug from the love letter item broke it. But it's working nicely now

  11. #11
    Plane Walker Moloch's Avatar
    Join Date
    Jan 2011
    Location
    Belgium
    Posts
    385

    Default

    i still get the greyed out ability every time i receive the lovebug for over a week now, is there any chance someone can add the sheep/shambler code to chuckystar's code?

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts