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