有没有编程大哥99我~ 我做了个魔兽世界开旗的一段话~ 但是开旗被中断还是会继续计时,怎么调可以点1次就重新计时啊

JelloTV-avatar

JelloTV

2022-05-11T04:58:37+00:00

SendChatMessage("老子在开旗,帮我控人,开始。", channel)
local time_left = 5
local iterations = 6
local channel = "Say"

function msg()
if time_left > 0 then
SendChatMessage(time_left, channel)
else
SendChatMessage("开了,牛逼", channel)
end
time_left = time_left - 1
end

ticker = C_Timer.NewTicker(1, msg, iterations)