Delayed message in chat
Hello, world!
I have this simple code: Code:
function ButtonHelp_OnClick() |
|
Quote:
|
something like this
Quote:
C_Timer.After(duration, callback) duration is in seconds Code:
C_Timer.After(1, function () SendChatMessage("I need help!") end) Code:
local function doSomething() |
Thank you! But i can't make this code working... It causes interface error and only display SendChatMessage message, not the C_Timer.After one... :confused:
|
What is your code now?
|
Requires a hardware event for certain channels now.
https://wow.gamepedia.com/API_SendChatMessage |
Quote:
This code not working: Code:
function ButtonHelp_OnClick() Code:
<Button name="ButtonHelp" inherits="UIPanelButtonTemplate" text="Help Button"> Code:
/say Help me! |
If you can't do it as a macro because the hardware event is required for the second /say or the /in is seemingly being swallowed, you won't be able to do it as an addon.
|
All times are GMT -6. The time now is 04:33 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI