View Single Post
08-11-22, 02:18 PM   #1
Benalish
A Flamescale Wyrmkin
 
Benalish's Avatar
Join Date: Dec 2012
Posts: 123
Concatenate parameters and string

Hello there. This code should report who cast the buff, which buff cast, and who received it

Lua Code:
  1. local f = CreateFrame("Frame")
  2. f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
  3. f:SetScript("OnEvent", function(self, event, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10,
  4.                                               arg11, arg12, arg13)
  5.     if (event == "COMBAT_LOG_EVENT_UNFILTERED") then
  6.         if (arg2 == "SPELL_AURA_APPLIED") then --do stuffs
  7.                 end
  8.     end
  9. end)

What exactly do I have to write in order to get a sentence in the form "arg4 cast arg10 on arg7"?
  Reply With Quote