stoneage8.5/服务器端lua文件/ablua/magic/announce.lua

23 lines
488 B
Lua
Raw Normal View History

2020-06-22 17:49:02 +08:00
function NetLoopFunction()
if minute > 0 then
if math.mod(looptime , minute) == 0 then
char.talkToAllServer("[<5B><>ܰ<EFBFBD><DCB0>ʾ]" .. message)
end
looptime = looptime + 1
end
end
function announce(charaindex, data)
message = other.getString(data, " ", 1)
char.talkToAllServer("[<5B><>ܰ<EFBFBD><DCB0>ʾ]" .. message)
minute = other.atoi(other.getString(data, " ", 2))
looptime = 1
end
function main()
minute = 0
magic.addLUAListFunction("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "announce", "", 1, "[<5B><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)")
end