creio que esse comando apareça os comandos de todos os players...
se for isso, troca por esse:
local config = {
guildTalksEnabled = getBooleanFromString(getConfigValue('ingameGuildManagement'))
}
function onSay(cid, words, param, channel)
local playerAccess, t = getPlayerAccess(cid), {}
for i, talk in ipairs(getTalkActionList()) do
if(not talk.hide and playerAccess >= talk.access) then
local tmp = talk.words:sub(1, 1):trim()
if((guildTalksEnabled or (talk.words ~= "!joinguild" and talk.words ~= "!createguild")) and (tmp == "!" or tmp == "/")) 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








info
Grupo: Infante
Registrado: 27/08/11
Posts: 1.9k
Reputação: +85
Gênero: Masculino
Char no Tibia: Bruno Maciel
Estou com um bug no systema de comando
BUG
[16/06/2013 21:34:02] [Error - TalkAction Interface]
[16/06/2013 21:34:02] data/talkactions/scripts/comandos.lua:onSay
[16/06/2013 21:34:02] Description:
[16/06/2013 21:34:03] data/talkactions/scripts/comandos.lua:3: attempt to index global 'file' (a nil value)
[16/06/2013 21:34:03] stack traceback:
[16/06/2013 21:34:03] data/talkactions/scripts/comandos.lua:3: in function <data/talkactions/scripts/comandos.lua:1>
SCRIPT
function onSay(cid, words, param)
file = io.open('comandos.txt','r')
comandos = file:read(-1)
doShowTextDialog(cid,7528,comandos)
file:close()
end
Rep++