GM detection and banning chance reduction

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Locked
Message
Author
spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: GM detection and banning chance reduction

#161 Post by spawni » Tue Nov 15, 2011 4:15 am

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.

spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: GM detection and banning chance reduction

#162 Post by spawni » Tue Nov 15, 2011 10:02 am

I made a screenshot - see down below
Attachments
eventmonitoring works-fine screenshot
eventmonitoring works-fine screenshot
testfein.PNG (4.4 KiB) Viewed 4777 times
MM after adding the code you posted
MM after adding the code you posted

spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: GM detection and banning chance reduction

#163 Post by spawni » Tue Nov 15, 2011 10:32 am

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 :)

spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: GM detection and banning chance reduction

#164 Post by spawni » Tue Nov 15, 2011 10:43 am

:? 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?

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: GM detection and banning chance reduction

#165 Post by lisa » Tue Nov 15, 2011 12:10 pm

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
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

jasn
Posts: 70
Joined: Sat Jun 25, 2011 8:25 am
Location: Sweden

Re: GM detection and banning chance reduction

#166 Post by jasn » Wed Nov 16, 2011 2:16 am

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 .)

spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: GM detection and banning chance reduction

#167 Post by spawni » Wed Nov 16, 2011 2:41 am

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>

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: GM detection and banning chance reduction

#168 Post by lisa » Wed Nov 16, 2011 2:53 am

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: GM detection and banning chance reduction

#169 Post by spawni » Wed Nov 16, 2011 1:02 pm

:cry:
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)
Attachments
stillnotworking.jpg

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: GM detection and banning chance reduction

#170 Post by lisa » Wed Nov 16, 2011 9:20 pm

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: GM detection and banning chance reduction

#171 Post by spawni » Wed Nov 16, 2011 11:41 pm

:oops:
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..

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: GM detection and banning chance reduction

#172 Post by lisa » Thu Nov 17, 2011 1:22 am

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
igf_events.lua
(5.92 KiB) Downloaded 129 times
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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: GM detection and banning chance reduction

#173 Post by rock5 » Thu Nov 17, 2011 4:36 am

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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: GM detection and banning chance reduction

#174 Post by spawni » Thu Nov 17, 2011 5:21 am

ty @lisa - will try that file this evening.

spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: GM detection and banning chance reduction

#175 Post by spawni » Thu Nov 17, 2011 12:54 pm

giving up

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: GM detection and banning chance reduction

#176 Post by lisa » Thu Nov 17, 2011 8:57 pm

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: GM detection and banning chance reduction

#177 Post by spawni » Thu Nov 17, 2011 11:28 pm

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?

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: GM detection and banning chance reduction

#178 Post by lisa » Thu Nov 17, 2011 11:35 pm

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: GM detection and banning chance reduction

#179 Post by spawni » Fri Nov 18, 2011 12:08 am

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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: GM detection and banning chance reduction

#180 Post by rock5 » Fri Nov 18, 2011 12:31 am

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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Locked

Who is online

Users browsing this forum: No registered users and 1 guest