• 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 Ingame Highscores Script

Kaywin

Lord of War WoW/Tibia 2D
Joined
Oct 24, 2008
Messages
541
Reaction score
6
Location
SwedeN
You just have to paste it inside talkactions.xml.

Its for TFS 0.3.4 pl2, At least what I have been testing it on.

xml Code:
Code:
[B]<talkaction[/B] [COLOR="RoyalBlue"]words[/COLOR][COLOR="SeaGreen"]=[/COLOR][COLOR="Red"]"!score"[/COLOR] [COLOR="RoyalBlue"]event[/COLOR][COLOR="SeaGreen"]=[/COLOR][COLOR="Red"]"buffer"[/COLOR][B]>[/B][COLOR="SeaGreen"]<![CDATA[
        if param == "fist" or param == "fist fighting" then
            doShowTextDialog(cid, 1950, getHighscoreString(0))
        elseif param == "club" or param == "club fighting" then
            doShowTextDialog(cid, 1950, getHighscoreString(1))
        elseif param == "sword" or param == "shielding" then
            doShowTextDialog(cid, 1950, getHighscoreString(2))
        elseif param == "axe"  or param == "axe fighting" then
            doShowTextDialog(cid, 1950, getHighscoreString(3))
        elseif param == "dist" or param == "distance" or param == "distance fighting" then
            doShowTextDialog(cid, 1950, getHighscoreString(4))
        elseif param == "shield" or param == "shielding" then
            doShowTextDialog(cid, 1950, getHighscoreString(5))
        elseif param == "fishing" or param == "fish" then
            doShowTextDialog(cid, 1950, getHighscoreString(6))
        elseif param == "magic" or param == "magic level" then
            doShowTextDialog(cid, 1950, getHighscoreString(7))
        elseif param == "level" or param == "" then
            doShowTextDialog(cid, 1950, getHighscoreString(8))
        elseif tonumber(param) >= 0 and tonumber(param) <= 8 then
            doShowTextDialog(cid, 1950, getHighscoreString(tonumber(param)))
        else
            _result = FALSE
        end
    ]]></[/COLOR][B]talkaction>[/B]
 
Last edited:
isn't shawak's better?
 
I don't know haven't tested hes script, But I use TFS 0.3.4 and this script works perfect with that :)
 
Saw some guys requested it so i thought why don't put it up
 
Code:
<talkaction words="!score" event="buffer"><![CDATA[
	local kurwa = {
		["fist"] = {item = 1950, id = 0},
		["club"] = {item = 1950, id = 2},
		["sword"] = {item = 1950, id = 3},
		["axe"] = {item = 1950, id = 4},
		["dist"] = {item = 1950, id = 5},
		["shield"] = {item = 1950, id = 6},
		["fishing"] = {item = 1950, id = 7},
		["magic"] = {item = 1950, id = 8},
		["level"] = {item = 1950, id = 9}
	}

	local noob = kurwa[param]
	if (noob) then
		doShowTextDialog(cid, noob.item, getHighscoreString(noob.id))
		_result = TRUE
	else
		_result = FALSE
	end
    ]]></talkaction>

? xd

@Shawak:
I know I'm noob but please don't insult me,. ok? ;/
 
Code:
<talkaction words="!score" event="buffer"><![CDATA[
	local kurwa = {
		["fist"] = {item = 1950, id = 0},
		["club"] = {item = 1950, id = 2},
		["sword"] = {item = 1950, id = 3},
		["axe"] = {item = 1950, id = 4},
		["dist"] = {item = 1950, id = 5},
		["shield"] = {item = 1950, id = 6},
		["fishing"] = {item = 1950, id = 7},
		["magic"] = {item = 1950, id = 8},
		["level"] = {item = 1950, id = 9}
	}

	local noob = kurwa[param]
	if (noob) then
		doShowTextDialog(cid, noob.item, getHighscoreString(noob.id))
		_result = TRUE
	else
		_result = FALSE
	end
    ]]></talkaction>

? xd

@Shawak:
I know I'm noob but please don't insult me,. ok? ;/
:confused:

I like ur variables :peace:.
 
Back
Top