Page 9 of 25
Re: GM detection and banning chance reduction
Posted: Tue Nov 15, 2011 4:15 am
by spawni
ty - I try that this evening and give feedback then
@Billdoor.
First thought that too - but lisa has written in this thread:
This is a userfunction and those 2 files should go in the micromacro/scripts/rom/userfunctions folder
Quote:
-------Installation instructions -------
userfunction_gmmonitor.lua
place file in your rom-bot rom/userfunctions folder
Make sure your SVN is up to date and reverted, make sure to copy the ingamefunctions folder to appropriate place.
If it doesn't work try using the test I also have on first topic for making sure the event monitoring is working.
Re: GM detection and banning chance reduction
Posted: Tue Nov 15, 2011 10:02 am
by spawni
I made a screenshot - see down below
Re: GM detection and banning chance reduction
Posted: Tue Nov 15, 2011 10:32 am
by spawni
ty lisa - you brought me to the solution.
It is all working now.
I had two addons which handle the d303-problems.
Uninstalled both - only take the d303fix - restart all - and - tata - it works
TY for your patience with me

Re: GM detection and banning chance reduction
Posted: Tue Nov 15, 2011 10:43 am
by spawni

one last question
I turned nearbylogout to "false
Code: Select all
<option name="GMnearbylogout" value="false" />
I thought - in this case - when a GM comes by - the bot stops doing what he does.
So this is what I tried:
Wrote a script in which the bot runs through a players house
Then I entered the house with the test -gm
But in my case only the alarm gets on - i am seeing the gm warning - but bot runs and runs and runs....
hum?
Re: GM detection and banning chance reduction
Posted: Tue Nov 15, 2011 12:10 pm
by lisa
Pause is only for whispers.
logoutnearby is only for if GM is in memory range.
They work independantly.
K updating to V 2.4
Adding in usage of a userfunction for GMnearbylogout if false.
So you can decide what you want to do if GM is within memory range.
Just create a function somewhere, even in the WP onLoad and call it
gmnearby()
ie.
Code: Select all
function gmnearby()
local _time = os.time()
repeat
yrest(2000)
until (os.time() - _time) >= 300 -- 5 minute pause.
end
Re: GM detection and banning chance reduction
Posted: Wed Nov 16, 2011 2:16 am
by jasn
Hmmm , Im not 100% sure, but it seems like the gm detection is not loading as it should do.
I have only tried it on 2 characters this morning, and neither of them got the "GM detection started" in mm window.
Could some one else also do a check pls.
Ps. it has worked before the latest patch. i dont have the latest GM 2.4 version. im using the former one. svn update says revision: 673
(And i have tripple checked the "config´s" on the WP files and the profile´s .)
Re: GM detection and banning chance reduction
Posted: Wed Nov 16, 2011 2:41 am
by spawni
GM detection is working on my pc - i got the message in the mm-monitor.
But I still have the probleme, that if GMnearbylogout if false, an even if i put function gmnearby() in the WP_onlaod-Section,
the bot does not stop moving when the testchar comes nearby.
So now the whisper-funtion can be forgotten - works properly - char stops on whipser. Also you told me this function is working independent from the nearby-thing
When GMnearbylogout if true - the bot logs out. If false - only the alarm goes on.
So in the lua-file I am at this positon at this time...
Why does the script not come to "elseif gmnearby"?
Couldn´t have to do anything with the time-thing -or?
Code: Select all
if settings.profile.options.GMnearbylogout == true then
RoMScript("Logout();");
error("Logging out because GM detected.")
elseif gmnearby then
gmnearby()
end
@lisa: yesterday you give me the thought that gettime and time are different and I implemented your code to print the values in MM-Montior.
Does the two printed times have to be exact the same?
Have I done everything wrong in my wp-onload-section?
Code: Select all
<onLoad>
-- Loading GM-detection
-- remember: always put the options in profile-file
-- remember: you have to put the lua-file in userfunctions-folder
-- remember: you habe to put in the d303fix to addons - or it won´t work
<![CDATA[
startGMDetect()
]]>
-- just stop what you are doing in case a gm is near you - works if gmnearbylogout is set to false--
function gmnearby()
local _time = os.time()
repeat
yrest(2000)
until (os.time() - _time) >= 300 -- 5 minute pause.
end
-- edit by spawni 27.09 beep by whisper ----
function beepwhispers()
repeat
local time, moreToCome, name, msg = EventMonitorCheck("Whispers", "4,1")
if time ~= nil then
printf("\a\a\a");
end
until moreToCome ~= true
end
EventMonitorStart("Whispers", "CHAT_MSG_WHISPER");
registerTimer("beepwhispers", secondsToTimer(5), beepwhispers)
-- end of beepwhispers ---
</onLoad>
Re: GM detection and banning chance reduction
Posted: Wed Nov 16, 2011 2:53 am
by lisa
try this
Code: Select all
<onLoad>
-- Loading GM-detection
-- remember: always put the options in profile-file
-- remember: you have to put the lua-file in userfunctions-folder
-- remember: you habe to put in the d303fix to addons - or it won´t work
function gmnearby()
local _time = os.time()
repeat
yrest(2000)
until (os.time() - _time) >= 300 -- 5 minute pause.
end
startGMDetect()
-- just stop what you are doing in case a gm is near you - works if gmnearbylogout is set to false--
-- edit by spawni 27.09 beep by whisper ----
function beepwhispers()
repeat
local time, moreToCome, name, msg = EventMonitorCheck("Whispers", "4,1")
if time ~= nil then
printf("\a\a\a");
end
until moreToCome ~= true
end
EventMonitorStart("Whispers", "CHAT_MSG_WHISPER");
registerTimer("beepwhispers", secondsToTimer(5), beepwhispers)
-- end of beepwhispers ---
</onLoad>
There will be a difference in the gettime and time but it shouldn't be more then 5 seconds as the event monitor is set to monitor every 5 seconds.
so you might get a whisper and 4 seconds later the monitor is performed so there would be a difference of 4 seconds between gettime and time.
Re: GM detection and banning chance reduction
Posted: Wed Nov 16, 2011 1:02 pm
by spawni
won´t work....
Still - whisper works fine - getting near bot as testchar - detection goes on - but no pausing...
screen shows try with gmnearby
and the whisper-try (works fine)
Re: GM detection and banning chance reduction
Posted: Wed Nov 16, 2011 9:20 pm
by lisa
The prints from gettime and time are extremely different, which makes me wonder why it still did the macro for player info because it shouldn't be doing it with such a huge difference between them.
Have you got the latest userfunction?
from your pic
gettime has 897
time has 1 million
Well anyway add in a print to the function gmnearby() so you know if it is even being called.
Re: GM detection and banning chance reduction
Posted: Wed Nov 16, 2011 11:41 pm
by spawni
can you give me a code-snippet - I havent implemented an print to check if function is loaded.
I use the new files and I make an svn-update and revert once a week - anyway - this evening I will try a new round - getting all files new and fresh and delete all old ones.
The time-diffrence is messing me up..
Re: GM detection and banning chance reduction
Posted: Thu Nov 17, 2011 1:22 am
by lisa
Just had a look in the ingamefunctions and I was sure it used to use GetTime() for getting the time in game.
Rock was it changed at some stage?
Try using this
to replace runes of magic/interface/addons/ingamefunction/igf_events.lua
Make sure to restart game after changing the file.
and then run the test again for the prints, the numbers should be close and not so extremely different.
Re: GM detection and banning chance reduction
Posted: Thu Nov 17, 2011 4:36 am
by rock5
lisa wrote:Just had a look in the ingamefunctions and I was sure it used to use GetTime() for getting the time in game.
Rock was it changed at some stage?
It was always "os.clock()". I believe there was some discussion about changing it but it was never changed.
Re: GM detection and banning chance reduction
Posted: Thu Nov 17, 2011 5:21 am
by spawni
ty @lisa - will try that file this evening.
Re: GM detection and banning chance reduction
Posted: Thu Nov 17, 2011 12:54 pm
by spawni
giving up
Re: GM detection and banning chance reduction
Posted: Thu Nov 17, 2011 8:57 pm
by lisa
spawni wrote:giving up
That file I posted didn't help?
It should have been using the exact same function for time so the values should be the same. I don't understand why it wouldn't work.
Re: GM detection and banning chance reduction
Posted: Thu Nov 17, 2011 11:28 pm
by spawni
nope - the file you send me haven´t changed a thing.
I try to reinstall complete mm this weekend - cause I don´t have an idea what to try next.
Another question for the testings: In which case do I have to restart the complete RoM-Client?
Only if I do something in an addon-section from the game client.
All other changes it should be enough to restart mm - right?
Re: GM detection and banning chance reduction
Posted: Thu Nov 17, 2011 11:35 pm
by lisa
If you change anything in an addon(runes of magic/interface/addons) then you should restart the game.
If you change anything in a rombot script then you just need to end current script and start the script again, no need to completely restart MM.
If you change some of the actual MM files, not rombot, then you will need to restart MM.
Re: GM detection and banning chance reduction
Posted: Fri Nov 18, 2011 12:08 am
by spawni
ty lisa
And for me to be sure - the only files in the game-folder of rom (in the addon-area) - are ingamefunctions from folder "devtools".
(I always put all the usefunctions, fly and swim and so on in that folder too - but they dont have to be there - right?)
Sorry for basic questions
Re: GM detection and banning chance reduction
Posted: Fri Nov 18, 2011 12:31 am
by rock5
That's right. fly and swim hacks, as well as any other userfunctions, go into the "rom/userfunctions" folder. "ingamefunction" is the only game addon that goes into the games "interface/addons" folder. Also, don't be fooled by any userfunctions that start with "addon_" instead of "userfunction_", such as my "addon_Rock5s_Mail_Functions", they are still userfunctions.