Concatenate parameters and string
Hello there. This code should report who cast the buff, which buff cast, and who received it
Lua Code:
What exactly do I have to write in order to get a sentence in the form "arg4 cast arg10 on arg7"? |
Depends but the simplest just see it in your chat frame would be:
Lua Code:
You could use concatination: Code:
print(arg4.."cast"..arg10.."on"..arg7) Code:
local msg = "%s cast %s on %s" The last two are useful if you are using something other than print() (like sending to the chat system) |
Also since BfA, CLEU doesn't send its payload to the event handler anymore. You need to use CombatLogGetCurrentEventInfo() to query the args now.
|
All times are GMT -6. The time now is 03:13 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI