5lave Ots
Active Member
hello otlanders,
i tried to make a script but i fail, simply it was made to show up text above the highest player (storage) on the server and if there are two players have got the same storage it checks another storage(storage2) so that it shows as the server highest players
im using tibia 8,60 windows server 0.3.6
REP++
edited
maybe a script like this but it select the high score rebirth player, then level
bump
i tried to make a script but i fail, simply it was made to show up text above the highest player (storage) on the server and if there are two players have got the same storage it checks another storage(storage2) so that it shows as the server highest players
im using tibia 8,60 windows server 0.3.6
LUA:
local str1 = 1005
local str2 = 1074
local players = {}
function onThink(interval)
for _, name in ipairs(getOnlinePlayers()) do
local cid = getPlayerByName(name)
local rebs = getPlayerRebirth(cid)
local pos = getPlayerPosition(cid)
table.insert(players, rebs)
if rebs > 0 then
local top = table.maxn(players)
if top > 0 then
doSendAnimatedText(getPlayerPosition(top), 'King', 180)
end
end
end
return true
end
edited
maybe a script like this but it select the high score rebirth player, then level
Code:
local ranks = {
['fist'] = {0},
['club'] = {1},
['sword'] = {2},
['axe'] = {3},
['distance'] = {4},
['shield'] = {5},
['fish'] = {6},
['magic'] = {7},
['level'] = {8},
['Reborn'] = {9},
}
function onSay(cid, words, param)
local msg = string.lower(param)
if ranks[msg] ~= nil then
str = getHighscoreString((ranks[msg][1]))
else
str = getHighscoreString((8))
end
doShowTextDialog(cid,6500, str)
return TRUE
end
bump
Last edited by a moderator: