PHP:
local messages = {
"Write !buylist for the list of buyable items with killpoints!",
"Use !buy to buy an item with killpoints!",
"Use !killpoints to see how many kills you've got."
}
local i = 0
function onThink(interval, lastExecution)
local message = messages[(i % #messages) + 1]
doBroadcastMessage("Information: " .. message,22)
i = i + 1
return TRUE
end
u need add message for table and can learn how shorten code!! code orginal by colandus and have learn me much from look this code colandus pwn master-m...
orginal:
TFS 0.3 globalevent help - OpenTibia Fans