marcryzius
New Member
- Joined
- Mar 22, 2009
- Messages
- 61
- Reaction score
- 0
I'm posting this script because a person in my msn he asked me so I'm posting them to everyone.
this is the script that checks all commands talkactions according to access the player.
this script is unique to OtLand not authorize anyone to post elsewhere.eace:
this is the script that checks all commands talkactions according to access the player.
Lua:
--[[> marcryzius <]]--
function onSay(cid, words, param)
local file = assert(io.open('data/talkactions/talkactions.xml','r'))
local tab = {'Your commands is:\n"Access" <> "Words"\n'}
local lerfile,gpa = file:read(-1),getPlayerAccess(cid)
file:close()
for ler in lerfile:gmatch('<talkaction (.-)/>') do
if((tonumber(ler:match('access="(%d+)"')) == nil) and 0 or tonumber(ler:match('access="(%d+)"')) <= gpa)then
table.insert(tab,'"access" = '..(tonumber(ler:match('access="(%d+)"')) or 0)..' "words" = "'..ler:match('words="(.-)"')..'"')
end
end
return TRUE,doShowTextDialog(cid,2421,table.concat(tab,'\n'))
end
this script is unique to OtLand not authorize anyone to post elsewhere.eace:
Last edited: