stoneage8.5/服务器端lua文件/ablua/magic/announce.lua
2020-06-22 17:49:02 +08:00

23 lines
488 B
Lua

function NetLoopFunction()
if minute > 0 then
if math.mod(looptime , minute) == 0 then
char.talkToAllServer("[温馨提示]" .. message)
end
looptime = looptime + 1
end
end
function announce(charaindex, data)
message = other.getString(data, " ", 1)
char.talkToAllServer("[温馨提示]" .. message)
minute = other.atoi(other.getString(data, " ", 2))
looptime = 1
end
function main()
minute = 0
magic.addLUAListFunction("公告", "announce", "", 1, "[公告 内容 间隔(分钟)")
end