+ Reply to Thread
Results 1 to 6 of 6

  Click here to go to the first Rift Team post in this thread.   Thread: Rules for Event.Buff.Add ?

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

    Default Rules for Event.Buff.Add ?

    What are the rules for this event firing ?

    We've just tried Murdantix, and it seems as though the Mangle debuff isnt triggering every time someone gains the buff.

    I am tracking the information passed in from the event paramaters, and if I then look at the results:

    19:49:23: [Raid Buff Watcher] Searching source/target/ability for: Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Ambi, S=Ambi, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Adelea, S=Adelea, A=Mangled
    19:49:23: [Raid Buff Watcher] T=Ambi, S=Ambi, A=Mangled

    It ALWAYS catches it when it lands on me, but rarely catches it when it lands on the other tank.

    The situation is always the same, I have Murdantix targetted and Murdantix has the tank targetted, so I dont think its a visibility thing.
    http://forums.riftgame.com/image.php?type=sigpic&userid=125779&dateline=13553  38065

  2.   Click here to go to the next Rift Team post in this thread.   #2
    Rift Team
    Join Date
    Oct 2010
    Posts
    927

    Default

    Quote Originally Posted by Adelea View Post
    What are the rules for this event firing ?
    It should trigger whenever a stack is gained. If you're certain it's not working (I'd write a tiny little buff notifier script to just show when it thinks a buff showed up on each player) then put it online somewhere and I'll see if I can duplicate the issue.

    Note that, depending on how the stacks work, losing a stack may trigger Event.Buff.Change.

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

    Default

    Code:
    RBW = {}
    local unitDetails = {}
    RBW.seenBuffs = {}
    
    function RBW.AdEvent(u,t)
      local bd = Inspect.Buff.Detail(u,t)
      if not unitDetails[u] then
        unitDetails[u] = Inspect.Unit.Detail(u)
      end
      for k,v in pairs(bd) do
        if not unitDetails[v.caster] then
          local ud = Inspect.Unit.Detail(v.caster)
          if not ud then ud = {name = "UNKNOWN SOURCE"} end
          unitDetails[v.caster] = ud
        end
        local src=unitDetails[v.caster].name or "UNKNOWN SOURCE"
        local trg=unitDetails[u].name or "UNKNOWN TARGET"
        table.insert(RBW.seenBuffs, { s=src, t=trg, a=v.name})
      end
    end
    
    function RBW.SlashHandler(args)
      local r = {}
      local numargs = 0
      for token in string.gmatch(args, "[^%s]+") do
        r[numargs] = token
        numargs=numargs+1
      end
      if numargs>0 then
        if r[0] == "search" then
    	  if numargs == 2 then
    		print ("Searching source/target/ability for: "..r[1])
    		for k,v in ipairs(RBW.seenBuffs) do
    		  if (string.find(v.s, r[1])) or (string.find(v.t, r[1])) or (string.find(v.a, r[1])) then
    			print ("T="..v.t..", S="..v.s..", A="..v.a)
    		  end
    		end
    	  end
    	  return
    	end
      end
    end
    
    table.insert(Event.Buff.Add, { RBW.AdEvent, "RBW", "EventHandlerAdd" })
    table.insert(Command.Slash.Register("rbw"), { RBW.SlashHandler, "RBW", "SlashHandler" })
    The above is pretty much what my addon is doing at the moment.

    Stores every buff seen via Event.Buff.Add in a table RBW.seenBuffs.

    This can then be searched with "/rbw search something"

    After fighting Murdantix, the output in the 1st post is what I see reported.

    It should be going 3 or 4 on Adelea, then 3 or 4 on Ambi, then back to 3 or 4 on Adelea.

    But what I'm seeing is lots on Adelea, with the very occassionaly one on Ambi.

    I've noticed this before, but today was the first time I was running with something that recorded everything rather than just the things I was actually interested in.
    http://forums.riftgame.com/image.php?type=sigpic&userid=125779&dateline=13553  38065

  4.   Click here to go to the next Rift Team post in this thread.   #4
    Rift Team
    Join Date
    Oct 2010
    Posts
    927

    Default

    I don't know if this is a good sign or not, but I can't duplicate this bug on the main 1.6 codebase. It may have been fixed, or I may simply be unable to reproduce it.

    If it still happens in 1.6, or something similar still happens, let me know. Exact repro steps (starting from "make a party", ideally involving four or fewer players) would be appreciated

    (Probably easier to troubleshoot this on a more common NPC, note ;) )

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

    Default

    Has one of the recent hotfixes touched upon this maybe?

    I didnt see any missed buff event's today in HK.
    http://forums.riftgame.com/image.php?type=sigpic&userid=125779&dateline=13553  38065

  6.   This is the last Rift Team post in this thread.   #6
    Rift Team
    Join Date
    Oct 2010
    Posts
    927

    Default

    Quote Originally Posted by Adelea View Post
    Has one of the recent hotfixes touched upon this maybe?

    I didnt see any missed buff event's today in HK.
    I didn't do anything in the addon system, but there may have been some other bug that got fixed. If it happens again, let me know, otherwise I'm going to call this "fixed by magic"

+ 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