como eu faço? minha versao eh 9.10
Postado em agosto 08, 2011
//VitinhoOops

<<<=- Minhas Bars -=>>>



como eu faço? minha versao eh 9.10
//VitinhoOops

<<<=- Minhas Bars -=>>>



Voce ja testou algum system de rank...????
msm que nao seja especificamente para 9.10??
Nao, aonde eu encontro?
//VitinhoOops

<<<=- Minhas Bars -=>>>



entaum amgio test esse
Vamos logo ao script: Talkactions crie um arqui.lua e renomeio para ranking.lua
function onSay(cid, words, param)
t = {}
b = {}
n = 0
str = nil
str2 = ""
for i, pid in ipairs(getPlayersOnline()) do
t[i] = getPlayerLevel(pid)
end
doShowTextDialog(cid, 2160, getString(t))
end
function getString(t)
b = {}
for w, z in ipairs(getPlayersOnline()) do
b[w] = order(t)
e = getName().. " " .. b[w]
str = str == nil and e or str.. "\n" .. e
table.remove(t, table.find(t, n))
end
return str
end
function getName()
for s, d in ipairs(getPlayersOnline()) do
if order(t) == getPlayerLevel(d) and not(string.find(str2, getCreatureName(d))) then
str2 = str2 == "" and getCreatureName(d) or str2..getCreatureName(d)
p = getCreatureName(d)
break
end
end
return p
end
function order(t)
n = 0
for y, x in ipairs(t) do
if x > n then
n = x
end
end
return n
end
E a tag:
<talkaction words="!rank" script="ranking.lua" />
se ajudei rep++