Quais comandos? Faça a listagem dos mesmos..
info
Group: Artesão
Joined: 21/07/13
Posts: 143
Reputation: +26

info
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino

Acho que o comando é igual !Spells,não precisa configurar ¬¬'
info
Group: Campones
Joined: 07/09/13
Posts: 12
Reputation: +1

Edited Setembro 9 by PirulitoLegal
info
Group: Campones
Joined: 16/09/12
Posts: 88
Reputation: +21

A lista de comandos vai aparecer quando você digitar !commands ou /commands, se você estiver com o god vai aparecer todos os comandos incluindo os do god, mas se você estiver com um player normal vai aparecer só os comandos que um player pode usar.
Tag talkactions.xml:
<talkaction words="/commands;!commands" event="script" value="commands.lua"/>
Script talkactions/scripts/commands.lua
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, 1948, str)
return true
end
Edited Setembro 9 by WillOliveira
info
Group: Campones
Joined: 07/09/13
Posts: 12
Reputation: +1

Lol Funfo REP+




info
Group: Campones
Joined: 07/09/13
Posts: 12
Reputation: +1
Pessoal Queria uma talkactions Que O Pleyer Falase /commands ou !commands e mostra os comandos, Meu Servidor e Um Wodbo 8.0
Grato,Pirulito Legal!!
Edited Setembro 9 by PirulitoLegal