Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Lua/XML Help » Concatenate parameters and string


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off