Jump to content

/commands para TFS 1.1


kaleudd

Recommended Posts

instalação:

Em talkactions.xml adicione:

<talkaction words="/commands" script="commands.lua" />

Em talkactions/scripts crie um arquivo chamado commands.lua e adicione:

function onSay(cid, words, param)
local p = Player(cid) 
local file = io.open("data/talkactions/talkactions.xml", "r+")
local str = ""
local text = ""
for line in (file:lines()) do
    str = str.."\n"..line
end
file:close()

for a in string.gmatch(str, '<talkaction words="(.-)"') do
    text = text..'\n'..a
end

    p:showTextDialog(2160, text)
    return true
end

como funciona:

 

AGOpTCq.png

 

créditos:

Snowsz

Edited by kaleudd
Link to comment
Share on other sites

×
×
  • Create New...