Maybe to do a rank about no vocations, because on my OT, the people is leveling on Rook xD
So I added dragons, cycs, tarantulas, giant spiders, dragon lord, demons, and they hunt with a team of 30 people xD
It owns, and the were asking me about a !ranks rook, to see top levels of rook (no vocations), if someone knows how to do this, please help.
Thanks
TFS BETA 2.
--------------------
Credits: Azi
So I added dragons, cycs, tarantulas, giant spiders, dragon lord, demons, and they hunt with a team of 30 people xD
It owns, and the were asking me about a !ranks rook, to see top levels of rook (no vocations), if someone knows how to do this, please help.
Thanks
TFS BETA 2.
--------------------
Credits: Azi
Code:
function onSay(cid, words, param)
local hs = db.getResult("SELECT `name`, `level`, `experience` FROM `players` WHERE `vocation`=0 ORDER By `experience` DESC LIMIT 30")
local highscores = {}
local str="Rookgaard level highscores!\n # Name Level Exp\n"
if(hs:getID() ~= -1) then
while(true) do
table.insert(highscores, {hs:getDataString("name"), hs:getDataString("level"), hs:getDataInt("experience")})
if not(hs:next()) then
break
end
end
hs:free()
end
for i=1, #highscores do
str = str..""..i..". "..highscores[i][1].." "..highscores[i][2].." "..highscores[i][3].."\n"
end
doPlayerPopupFYI(cid, str)
return TRUE
end
Last edited: