Page 1 of 1
gmdetec exception
Posted: Sun Oct 28, 2012 1:57 pm
by Louis
Hello friends, I have a question, gmdetect configure to ignore the whispers of my friends and so I do not pull out of the game?
o This is configured in the profile?
Thank you.
I use google translator xDD
Re: gmdetec exception
Posted: Sun Oct 28, 2012 7:06 pm
by lisa
Unless your friends are GM's it shouldn't be an issue, it should detect the whisper and then do a print on screen saying you got whispered and add the info to the log but it shouldn't log out or anything unless they are an actual GM.
If you really want to ignore your friends though you can alter the userfunction_gmmonitor.lua
line 165 should have this
Code: Select all
if msg ~= nil and name ~= "Newbie Pet" then -- make sure something was returned
notice the name ~= "Newbie Pet" that is checking to see if you were whispered by the newbie pet and will ignore any whispers from it.
You can add in or adapt that line to suit your needs.
Re: gmdetec exception
Posted: Sun Oct 28, 2012 7:40 pm
by Louis
Hi Lisa, my gmmonitor detects my alts lvl 1 when the addon autoacceptinvitations whisper, also caught my friends as GM.
I tried editing the line 165 but adding multiple pjs Rombot start I get an error with line 165.
but adding a single pj if it works:
example
if msg ~ = ~ = nil and name "Friend" then - make sure something was returned
there will be some way to add more pjs to line 165?
thanks for everything
Re: gmdetec exception
Posted: Sun Oct 28, 2012 7:56 pm
by lisa
There are a few ways to do it.
You can add each friend with
name ~= "friendsname"
or you could set up a table with the names.
friends = {"someone","someoneelse","whoever"}
and then do
Code: Select all
for k,v in pairs(friends) do
if name == v then return end
end
in the file it would look something like this
Code: Select all
local friends = {"someone","someoneelse","whoever","someotherperson"}
repeat
local time, moreToCome, name, msg = EventMonitorCheck("GMdetect", "4,1")
if msg ~= nil and name ~= "Newbie Pet" then -- make sure something was returned
for k,v in pairs(friends) do
if name == v then return end
end
you can add as many names to the table as you want, it just needs to follow the same format.
names are within " " and a , between each name.
Re: gmdetec exception
Posted: Sun Oct 28, 2012 8:44 pm
by Louis
Thanks Lisa the table works well.
Sorry for the inconvenience
you're my goddess.