5lave Ots
Active Member
hello otlanders
i just made this script trying to send an animated text on the highest rebirth players
i'm an LUA newbie so i dont know how to complete it
when it runes i got: LUA GetThingPosition(creature not found)
hope someone could fix it{tibia 8.6 0.4}
i just made this script trying to send an animated text on the highest rebirth players
i'm an LUA newbie so i dont know how to complete it
Lua:
local reb_table = {}
function onThink(interval)
for _, name in ipairs(getOnlinePlayers()) do
local cid = getPlayerByName(name)
local rebs = getPlayerRebirth(cid)
if rebs > 0 then
table.insert(reb_table,rebs)
local top = table.maxn(reb_table)
local pid = getPlayerByName(top)
doSendAnimatedText(getPlayerPosition(pid), 'King', 180)
return true
end
end
return true
end
hope someone could fix it{tibia 8.6 0.4}