Postado Agosto 7, 2014 10 anos Queria um script que quando falasse !comando aparecesse todos os comandos do ot tipo !buybless !aol .. entre outros
Postado Agosto 7, 2014 10 anos Tag: Citar <talkaction words="!comandos" event="script" value="commands.lua"/> Script: Citar 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 Não sei de quem são os creditos por que não tem no ot que tá aqui.
Postado Agosto 7, 2014 10 anos Em data/talkactions/scripts crie um arquivo com o nome !sistemas.lua e coloque isso nele: function onSay(cid, words) local msg = [[ Os comandos aki dentro ]] doPlayerPopupFYI(cid, msg) return true end Em data/talkactions no talckactions.xml adicione isso: <talkaction words="!sistemas" event="script" value="!sistemas.lua"/>
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.