Glad someone is picking up the project and updating it, when you are happy with your code I will add it to the first post.
Just one thing
Code: Select all
if string.find(msg,"GM") or string.find(msg,gmMinLevel) or string.find(msg,"Moderator") or string.find(msg,testcharname) or string.find(msg,"Game Master") or string.find(msg,"Gamemaster")then
so replace that line with
Code: Select all
local detected = false
for k,v in pairs(gmTagList) do
if string.find(msg,v) then
detetcted = true
break
end
end
if detetced = true then
Code: Select all
local gmTagList = {gmMinLevel,testcharname,"GM","Moderator","Game Master","Gamemaster"}
Also that will only look for the stated lvl, "85" and nothing more, so if they are lvl 100 it won't be detected in that search as it is purely text search.