<talkaction words="!ranks" script="ranks.lua" />
function onSay(cid, words, param)
if(param == "exp") or (param == "lvl") then
doPlayerPopupFYI(cid, getHighscoreString(8))
elseif(param == "magic") or (param == "mlvl") then
doPlayerPopupFYI(cid, getHighscoreString(7))
elseif(param == "fishing") or (param == "fish") then
doPlayerPopupFYI(cid, getHighscoreString(6))
elseif(param == "shielding") or (param == "shield") then
doPlayerPopupFYI(cid, getHighscoreString(5))
elseif(param == "distance") or (param == "dist") then
doPlayerPopupFYI(cid, getHighscoreString(4))
elseif(param == "sword") then
doPlayerPopupFYI(cid, getHighscoreString(3))
elseif(param == "axe") then
doPlayerPopupFYI(cid, getHighscoreString(2))
elseif(param == "club") then
doPlayerPopupFYI(cid, getHighscoreString(1))
elseif(param == "fist") then
doPlayerPopupFYI(cid, getHighscoreString(0))
end
end
function onSay(cid, words, param)
if(param == "exp") or (param == "") then
doPlayerPopupFYI(cid, getHighscoreString(8))
elseif(param == "magic") or (param == "ml") then
doPlayerPopupFYI(cid, getHighscoreString(7))
elseif(param == "fishing") or (param == "fish") then
doPlayerPopupFYI(cid, getHighscoreString(6))
elseif(param == "shielding") or (param == "shield") then
doPlayerPopupFYI(cid, getHighscoreString(5))
elseif(param == "distance") or (param == "dist") then
doPlayerPopupFYI(cid, getHighscoreString(4))
elseif(param == "sword") then
doPlayerPopupFYI(cid, getHighscoreString(2))
elseif(param == "axe") then
doPlayerPopupFYI(cid, getHighscoreString(3))
elseif(param == "club") then
doPlayerPopupFYI(cid, getHighscoreString(1))
elseif(param == "fist") then
doPlayerPopupFYI(cid, getHighscoreString(0))
end
return TRUE
end
here it is for TFS 0.3 beta 1 :
talkactions.xml:
ranks.lua:
maybe I has mixed up sword and axe... didn't remember what is first. Anyway here is a way to make it in talkactions like slawkens said
JUST FOR TFS 0.3 BETA 1
[18/12/2008 22:42:57] data/talkactions/scripts/highscore.lua:158: LuaSQL: there are open cursors
[18/12/2008 22:42:57] stack traceback:
[18/12/2008 22:42:57] [C]: in function 'close'
[18/12/2008 22:42:57] data/talkactions/scripts/highscore.lua:158: in function <data/talkactions/scripts/highscore.lua:1>
i get this error"
t opens but it gives a bit of lag to the server :S
if you use 0.3, then use my version of script :>