Page 10 of 25
Re: GM detection and banning chance reduction
Posted: Fri Nov 18, 2011 5:06 am
by Budzer
Well it seems, that pause for gmnearby isn't working for me to. Only info in MM window that GM was detected, alarm sound (btw. great job with this new user function) and no other action.
Also have a question. Is there any chance for GMdetect to have any false positives?
Re: GM detection and banning chance reduction
Posted: Fri Nov 18, 2011 6:01 am
by spawni
had two false positves so far, when other players use the "say" command near to my bot.
The players which talk to me were normal players.
Re: GM detection and banning chance reduction
Posted: Fri Nov 18, 2011 6:22 am
by lisa
The userfunction doesn't monitor /say conversations, no idea why it would post a positive for GM if someone talked in /say, that makes no sence at all.
You can get false positives though because of the way the pawn information is constantly moving around in memory, it should be very rare though.
Re: GM detection and banning chance reduction
Posted: Fri Nov 18, 2011 6:36 am
by lisa
to pause when GM nearby use this
Code: Select all
function gmnearby()
_pause = 30 -- 30 second pause
_time = os.time()
cprintf(cli.yellow,"Paused for GM detected, hold down (".. getKeyName(settings.hotkeys.STOP_BOT.key)..") to stop the pause..\n")
repeat
rest(2000)
_pause = _pause - 2
print(_pause.." seconds remaining.")
until os.time() - _time >= _pause or keyPressed(settings.hotkeys.STOP_BOT.key)
print("Bot resumed.")
end
_pause = 30 -- 30 second pause
Obviously change the value to what you want, it's set to 30 seconds in that code. It will also do a print every 2 seconds so you know it is working.
I tested and works fine.
--=== NOTE ===--
using yrest() will not stop the bot from doing any actions in the gmnearby() loop, you need to use rest() and because of this keypresses arn't registerd while in the 2 second loop, so if you want to leave the pause loop you need to hold down the STOP_BOT key so that it is pressed when the loop finishes which is every 2 seconds.
Re: GM detection and banning chance reduction
Posted: Fri Nov 18, 2011 10:04 am
by spawni

sometimes a fresh start is the best thing.
Installed mm totally new in a different folder - implemented only the gmnearby - and - it worked!
One things is open:
When whispered by the testchar - sound is not playing (when gmnearby-functions starts sound is playing)
btw - used lisas function from the 1. Post - not the short one
Code: Select all
function gmnearby()
printf("ich bin in gmnearby()");
_pause = 30 -- 30 seconds
_time = os.time()
cprintf(cli.yellow,"Paused for GM detected, hold down (".. getKeyName(settings.hotkeys.STOP_BOT.key)..") to stop the pause..\n")
repeat
rest(2000)
_pause = _pause - 2
print(_pause.." seconds remaining.")
until os.time() - _time >= _pause or keyPressed(settings.hotkeys.STOP_BOT.key)
print("Bot resumed.")
end
Re: GM detection and banning chance reduction
Posted: Fri Nov 18, 2011 12:27 pm
by Budzer
lisa wrote:The userfunction doesn't monitor /say conversations, no idea why it would post a positive for GM if someone talked in /say, that makes no sence at all.
You can get false positives though because of the way the pawn information is constantly moving around in memory, it should be very rare though.
Thanks for answer. I was wondering about that as lately I get GMdetect late at night, when i wouldn't expect any frog worker to actually work

Re: GM detection and banning chance reduction
Posted: Fri Nov 18, 2011 1:40 pm
by spawni
hmm .... don“t want to spreed rumors.
But I have false positve in special case for at least four times
Your bot is going to an instance (in my case to cyclops lair) - in the moment you want to enter the instance someone uses the "say" ingame (standing very close) - the alarm went on.
Just what I have seen....
Re: GM detection and banning chance reduction
Posted: Fri Nov 18, 2011 1:55 pm
by Budzer
I have just tested gmnerby and have a question is it normal, that my bot keep running forward for some time, while pause is actived?
Edit:
I have solution, at least it works for me... After pause I added line:
keyboardPress( key.VK_W );
"W" is of course key for move forward.
Now it stops same time, as bot is starting to pause.
Re: GM detection and banning chance reduction
Posted: Fri Nov 18, 2011 9:32 pm
by lisa
Hmm good point with the keypress, a better way though would be to release the movement keys before entering the loop, This does however bring up the issue as to what if you are in combat at the time.
I was hoping to just keep the pause code simple but it seems simple won't do.
I'll do some more on it later today at some stage.
Re: GM detection and banning chance reduction
Posted: Sun Nov 20, 2011 2:17 am
by spawni
ty @Budzer - had the same prob

Re: GM detection and banning chance reduction
Posted: Sun Nov 20, 2011 3:46 am
by lisa
Budzer wrote:
Thanks for answer. I was wondering about that as lately I get GMdetect late at night, when i wouldn't expect any frog worker to actually work

They had been playing around with using GM's from other servers to kind of drift from server to server, so even at 1am your server time a GM might pop in to say hi.
From what I heard it was just being tested to see how effective it was, no idea if they still do it now.
Re: GM detection and banning chance reduction
Posted: Thu Nov 24, 2011 7:42 am
by kuchen91
can i change
if( pawn.Class1 == 0 or pawn.Class2 == 0 or pawn.Level > 70 or pawn.Name == testcharname ) then
to
if(pawn.Level > 0) then
that if i am whispered, i can answer everyone? or maybe stop, sit down and pause as long, as there are other players around me?
Re: GM detection and banning chance reduction
Posted: Mon Nov 28, 2011 6:46 pm
by kuripot
where i can find the gmdetection log?.. one of my character are logging out coz he detect GM.. i just want to look my gmdetection log... if GM whisper my character or my character just log out when he detect the GM
Re: GM detection and banning chance reduction
Posted: Mon Nov 28, 2011 7:06 pm
by lisa
micromacro/scripts/rom/logs/GMdetectwhispers.xml
Re: GM detection and banning chance reduction
Posted: Tue Nov 29, 2011 4:41 am
by gloover
lisa wrote:micromacro/scripts/rom/logs/GMdetectwhispers.xml

little correction: its a log file not xml GMdetectwhispers.
log
Re: GM detection and banning chance reduction
Posted: Tue Nov 29, 2011 3:08 pm
by botique
on my computer that log file is however called GMdetectwhispers.xml
Sure, its content is not xml, but that is the name of the file.
Re: GM detection and banning chance reduction
Posted: Tue Nov 29, 2011 6:59 pm
by lisa
gloover wrote:little correction: its a log file not xml GMdetectwhispers.log
I can't remember exactly why I did it as a .xml but it doesn't change the format. I may have done it for easy reading with notepad++ can't remember, either way it is deffinately .xml
Code: Select all
filename = getExecutionPath() .. "/logs/GMdetectwhispers.xml";
Re: GM detection and banning chance reduction
Posted: Wed Nov 30, 2011 5:47 am
by gloover
Ups, sorry lisa, you've right - your original version of gmdetec userfunction save the log into xml file.
I did some modiffications for me, one of them was to save all dialogs to a .log file
Sorry again - my mistake!
Re: GM detection and banning chance reduction
Posted: Thu Dec 01, 2011 4:36 am
by do002
Hi Lisa, i just tested this function and it works perfectly. I was just wondering if you could tell me how to make the bot play the alarm sound whenever there is someone whispering to me. Thank you
Re: GM detection and banning chance reduction
Posted: Thu Dec 01, 2011 9:22 am
by spawni
just search for "Beep when whispered" in forum - there is a snippet which can be implemented additonal
http://www.solarstrike.net/phpBB3/viewt ... =27&t=2896