Shadow Dan
Sh4dowDan
Very useful command that shows you list of possible commands.
I didn't found a single script working with new TFS versions.
This type of coding is too hard for me for now. Could be nice if anyone have any ideas how to upgrade this script.
Old code from TFS with tibia version 8.6
I didn't found a single script working with new TFS versions.
This type of coding is too hard for me for now. Could be nice if anyone have any ideas how to upgrade this script.
Old code from TFS with tibia version 8.6
Code:
local config = {
ingameGuilds = getBooleanFromString(getConfigValue('ingameGuildManagement'))
}
function onSay(cid, words, param, channel)
if(not checkExhausted(cid, 555, 5)) then
return true
end
local playerAccess, t = getPlayerAccess(cid), {}
for i, talk in ipairs(getTalkActionList()) do
if(not talk.hidden and playerAccess >= talk.access) then
if(config.ingameGuilds or (talk.functionName ~= "guildjoin" and talk.functionName ~= "guildcreate")) then
table.insert(t, talk)
end
end
end
table.sort(t, function(a, b) return a.access > b.access end)
local lastAccess, str = -1, ""
for i, talk in ipairs(t) do
local line = ""
if(lastAccess ~= talk.access) then
if(i ~= 1) then
line = "\n"
end
lastAccess = talk.access
end
str = str .. line .. talk.words .. "\n"
end
doShowTextDialog(cid, 2160, str)
return true
end