23 lines
488 B
Lua
23 lines
488 B
Lua
![]() |
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
|
|||
|
|