• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Ranks

dave182

New Member
Joined
Jan 23, 2009
Messages
80
Reaction score
3
I've watch people requesting this, so here you are. Ranks System.

Code:
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

Code:
<talkaction words="!ranks" script="ranks.lua"/>

It works like this: you say !ranks and it will show you the ranks of EXP.

you say !ranks magic and it will show you the ranks of ml.

you say !ranks axe, !ranks distance, !ranks club OR !ranks sword and it will show you these skills (axe, distance, club, sword.)

I put the basically, but it works with fishing, fist and shielding too.

If I help u, REP+ me :)
 
Theres already numerous released talkactions that do this i beleive. =p
 
i have a problem
[12/08/2009 23:07:35] data/talkactions/scripts/ranks.lua:3: attempt to call global 'getHighscoreString' (a nil value)
[12/08/2009 23:07:35] stack traceback:
[12/08/2009 23:07:35] data/talkactions/scripts/ranks.lua:3: in function <data/talkactions/scripts/ranks.lua:1>
 
I have problem...

Code:
[14/02/2011 11:03:15] Lua Script Error: [TalkAction Interface] 
[14/02/2011 11:03:15] data/talkactions/scripts/ranks.lua:onSay
[14/02/2011 11:03:15] data/talkactions/scripts/ranks.lua:3: attempt to call global 'getHighscoreString' (a nil value)
[14/02/2011 11:03:15] stack traceback:
[14/02/2011 11:03:15] 	[C]: in function 'getHighscoreString'
[14/02/2011 11:03:15] 	data/talkactions/scripts/ranks.lua:3: in function <data/talkactions/scripts/ranks.lua:1>

im using tfs 0.2.9 how do I solve it?
 
I have problem...

Code:
[14/02/2011 11:03:15] Lua Script Error: [TalkAction Interface] 
[14/02/2011 11:03:15] data/talkactions/scripts/ranks.lua:onSay
[14/02/2011 11:03:15] data/talkactions/scripts/ranks.lua:3: attempt to call global 'getHighscoreString' (a nil value)
[14/02/2011 11:03:15] stack traceback:
[14/02/2011 11:03:15] 	[C]: in function 'getHighscoreString'
[14/02/2011 11:03:15] 	data/talkactions/scripts/ranks.lua:3: in function <data/talkactions/scripts/ranks.lua:1>

im using tfs 0.2.9 how do I solve it?

Dude, you're a little less then 2 years late..
 
I have problem...

Code:
[14/02/2011 11:03:15] Lua Script Error: [TalkAction Interface] 
[14/02/2011 11:03:15] data/talkactions/scripts/ranks.lua:onSay
[14/02/2011 11:03:15] data/talkactions/scripts/ranks.lua:3: attempt to call global 'getHighscoreString' (a nil value)
[14/02/2011 11:03:15] stack traceback:
[14/02/2011 11:03:15] 	[C]: in function 'getHighscoreString'
[14/02/2011 11:03:15] 	data/talkactions/scripts/ranks.lua:3: in function <data/talkactions/scripts/ranks.lua:1>

im using tfs 0.2.9 how do I solve it?

Sorry Your Late :)
 
Do we really need 2 people telling him that he's late?
 
Back
Top