Advertisement
Xzempt

Untitled

Apr 3rd, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1.     if event == "COMBAT_LOG_EVENT_UNFILTERED" then
  2.     local arg = { ... }
  3.         for i,v in ipairs(arg) do
  4.             if (arg[2] == "SPELL_AURA_APPLIED") then
  5.                 local me = UnitName("player")
  6.                 if (arg[7] == me) then
  7.                     if (string.find(arg[i], "(.*)Raw(.*)Fury(.*)")) then
  8.                     print("spell aura applied")
  9.                         if not count then
  10.                         print("Setting count")
  11.                             count = 1
  12.                         else
  13.                             if (count == 5) then
  14.                             print("Count = " ..count)
  15.                                 RaidNotice_AddMessage(RaidBossEmoteFrame,"Raw Fury has stacked to 5! Use the trinket now! " ..UnitName("player"), ChatTypeInfo["RAID_WARNING"]);
  16.                                 PlaySoundFile("Sound\\interface\\RaidWarning.wav");
  17.                                 count = 0
  18.                             else
  19.                                 count = count + 1
  20.                                 print("Adding to count " ..count)
  21.                             end
  22.                         end
  23.                     end
  24.                     if (string.find(arg[i], "(.*)Forged(.*)Fury(.*)")) then
  25.                         count = 0
  26.                     end
  27.                 end
  28.             end
  29.         end
  30.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement