• 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!

TalkAction [TFS 0.2.5] Ingame Highscores

in 0.3 you can use something like this:

doShowTextDialog(cid, item.itemid, getHighscoreString((item.actionid - 150)))

(Just create new talkaction)
 
here it is for TFS 0.3 beta 1 :

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

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

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
 
thanks man, I love you. :p

Here is the code with some alterations:
PHP:
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
 
Last edited:
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

I was about to post that!
 
i get this error"
[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>

t opens but it gives a bit of lag to the server :S
 
I have this problem:/
nt5539r51ez9s9ypmhav.jpg
 
When you use the script for TFS 0.3 it works but it includes the CMs GMs and GODs in the highscores, any way to changE?
 
Is there anyway to make it so that Acc manager and Cms, Gods and gamemasters arent in the highscores?
 
[12/03/2009 14:32:35] Lua Script Error: [TalkAction Interface]
[12/03/2009 14:32:35] data/talkactions/scripts/highscores.lua:eek:nSay

[12/03/2009 14:32:35] data/talkactions/scripts/highscores.lua:7: attempt to index global 'luasql' (a nil value)
[12/03/2009 14:32:35] stack traceback:
[12/03/2009 14:32:35] data/talkactions/scripts/highscores.lua:7: in function <data/talkactions/scripts/highscores.lua:1>
 
Last edited:
Error on The Forgotten Server - Version 0.2.10 (Mystic Spirit)

[02/07/2011 17:30:04] Lua Script Error: [TalkAction Interface]
[02/07/2011 17:30:04] data/talkactions/scripts/ranks.lua:eek:nSay
[02/07/2011 17:30:04] data/talkactions/scripts/ranks.lua:158: LuaSQL: there are open cursors
[02/07/2011 17:30:04] stack traceback:
[02/07/2011 17:30:04] [C]: ?
[02/07/2011 17:30:04] [C]: in function 'close'
[02/07/2011 17:30:04] data/talkactions/scripts/ranks.lua:158: in function <data/talkactions/scripts/ranks.lua:1>

Plx Help Me....
 
Back
Top