This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Timed commands
Post Reply
Return to board index
Post by
MegaVolt
I'm trying to make a macro that does one thing and another a few seconds later.
I know this doesn't work with casts but I think I read about some command a while ago that makes this possible at least with chat commands (e.g. saying "something" in the chat by pressing the macro and 5 seconds later automatically saying "something else").
Does anyone know how to make this work?
Post by
Wanderingfox
You need access to the /in command. There's a few addons that will implement it, but for the most part any addon that runs Lib-AceTimer should implement it.
In short, you'd do something like:
/cast someSpell
/in 10 /say Blah!
Post by
Wikipedia
The addon 'InCommand' does solely this, I belive it's only running Lib-AceTimer
:>
Post by
MegaVolt
That explains why /in didn't do anything for me ... I didn't know an extra addon was needed.
Thanks.
Post by
Ketho
/in was provided in the, now deprecated, Ace2 framework, specifically
AceEvent-2.0
line968
_G = "/in"
SlashCmdList = function(msg)
local seconds, command, rest = msg:match("^(+)%s+(/+)(.*)$")
seconds = tonumber(seconds)
if not seconds then
DEFAULT_CHAT_FRAME:AddMessage("Error, bad arguments to /in. Must be in the form of `/in 5 /say hi'")
return
end
if IsSecureCmd(command) then
DEFAULT_CHAT_FRAME:AddMessage(("Error, /in cannot call secure command: %s"):format(command))
return
end
self:ScheduleEvent("AceEventSlashIn-" .. math.random(1, 1000000000), editbox.Execute, seconds, editbox, command .. rest)
end
AceTimer-3.0
has absolutely nothing to do with the /in command, and Ace3 itself never provided /in
The
Ace2
standalone, or
Slas
hIn
/
InDemand
can implement the /in command
Post by
Wanderingfox
So it is. Dunno why I thought it had been carried over... My bad.
Post by
550132
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.