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
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: GM detection and banning chance reduction

#381 Post by lisa » Mon Dec 02, 2013 9:15 pm

yeah I originally wrote this when I was pretty new to LUA, a lot has changed in my experience since then ;)

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
Since this list is getting long I would be tempted to make a user input section at the top in the form of a table.

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
and up the top of file do

Code: Select all

local gmTagList = {gmMinLevel,testcharname,"GM","Moderator","Game Master","Gamemaster"}
Something like that anyway, just an idea =)

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.
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
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: GM detection and banning chance reduction

#382 Post by BlubBlab » Mon Dec 02, 2013 10:11 pm

I have thought that already. :ugeek:
I'm not sure maybe I make one function for both tables.

"85" is the level for the GM's on the official server at the moment, because it can easily differ so I moved it to the config part.
I took the job because it was needed their was a few guys who got caught in the past weeks, so I thought something must be done.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: GM detection and banning chance reduction

#383 Post by BlubBlab » Fri Dec 06, 2013 5:47 pm

So this finally works (tested)
my config:

Code: Select all

	        <option name="GMDETECT"         value="true" /> -- enables the GM detection userfunction
		<option name="GMnearbylogout"      value="true" /> -- If a GM is close to the character it will log out.
		<option name="GMonServer"      value="pause" /> -- possible: logout/pause/relog
		<option name="PAUSEONGM"      value="0" />  -- Pauses when GM whispers for value in seconds. ie 300 = 5 minutes
		<option name="RECALL"         value="true" /> -- if in combat while pausing it will use recall and whisper/logout
		<option name="playerDETECT"      value="true" /> -- enables the player detection userfunction
<!--
<option name="GMPAUSETIME"      value="60" />  -- Pauses when GM is on server. ie 300 = 5 minutes
<option name="GMRELOGETIME"      value="60" />  -- RELOG time when GM is on server. ie 300 = 5 minutes
-->
For the rest take a look in the script
EDIT I changed the standard setting to:

Code: Select all

local gmSearchMethode = "memory"
Because it curse so much trouble doing that automatically
Attachments
userfunction_gmmonitor.lua
V 7.7
(18.25 KiB) Downloaded 155 times
Last edited by BlubBlab on Sat Dec 07, 2013 3:45 pm, edited 5 times in total.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

spyfromsiochain
Posts: 84
Joined: Sun Aug 18, 2013 9:57 am

Re: GM detection and banning chance reduction

#384 Post by spyfromsiochain » Sat Dec 07, 2013 10:19 am

Well I get an error after the last version of gmdetect v. 7.6

looks like its when it asks the names of the gms (suppose its a loop from time to time) when that appends I get the error ingame: Search failed, target does not exist or is offline

the bot stops the normal behavior and starts going forwards none stop, till it checks all the names in list, after that is breaks and retrieves the last waypoint position.

I am doing anything wrong in the configuration of the profile?:

Code: Select all

	    <!-- GM detection options -->
		   <option name="GMDETECT"         value="true" /> -- enables the GM detection userfunction
      <option name="GMnearbylogout"      value="true" /> -- If a GM is close to the character it will log out.
      <option name="GMonServer"      value="logout" /> -- possible: logout/pause/relog
      <option name="PAUSEONGM"      value="0" />  -- Pauses when GM whispers for value in seconds. ie 300 = 5 minutes
      <option name="RECALL"         value="true" /> -- if in combat while pausing it will use recall and whisper/logout
      <option name="playerDETECT"      value="true" /> -- enables the player detection userfunction
<!-- <option name="GMPAUSETIME"      value="60" />  --> -- Pauses when GM is on server. ie 300 = 5 minutes
<!-- <option name="GMRELOGETIME"      value="60" />  --> -- RELOG time when GM is on server. ie 300 = 5 minutes
I look at those fans with no blades and it amazes me everytime, how can they push air without using blades lol - lisa (pro sentence :D)

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: GM detection and banning chance reduction

#385 Post by BlubBlab » Sat Dec 07, 2013 10:55 am

The error is normal because the script ask for each GM if he/she is online, when the script found one the bot should stop moving

If the List is too long and the bot get confused about it (I tested the server search from a still stand ), you can deactivated it with:

Code: Select all

--On which Level search for GM's in the List?' "memory","server","" in last case it is deactivated
local gmSearchMethode = "memory"
AHH okay you must delete the "local" from the script in local function searchGMList() and then in a Waypoint you call it:

Code: Select all

searchGMList()
Mom I will reupload it without the local
EDIT:I changed the pause between AskPlayer from huge 800 ms to 50 ms that should make it easier to use long list.
EDIT2: I delete

Code: Select all

while(player.Batteling)do
   yrest(100)
end
The idea behind the code was that the bot continue fighting if bot/char is in battle and afterwards the bot should do what should be done
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Danni
Posts: 59
Joined: Sat Nov 09, 2013 6:24 pm

Re: GM detection and banning chance reduction

#386 Post by Danni » Sat Dec 07, 2013 2:18 pm

Just tried it ... :ugeek: the edit one.

I only added more names onto the list.

After some testing, a GM was on the Server.

MM printed something like: "Player is going to sleep for something sec. Press Del to continue.

BUT the script of mine still went on, it didn't "really" pause. :?:

Secondly,... "sleeping" (a "break") is fine, but could you make it without Del? Or somewhere , where each user can choose it on their own? :?:

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: GM detection and banning chance reduction

#387 Post by BlubBlab » Sat Dec 07, 2013 3:42 pm

The Problem is to "pause" is that GM Detection runs in another coroutine, It could take some time to stop.
Hm I could add a custom sleep function ....DONE I will reupload again.

The "DEL" button is part of the script, the pause time can be customized.

From experience I can say it is better to call the function in a waypoint because while the bot search it can't react to something else
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Danni
Posts: 59
Joined: Sat Nov 09, 2013 6:24 pm

Re: GM detection and banning chance reduction

#388 Post by Danni » Sat Dec 07, 2013 4:40 pm

From experience I can say it is better to call the function in a waypoint because while the bot search it can't react to something else
Just a little question... ;)

And what would be the function? :?:

It probably has to be in Load, isn't it? :geek:

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: GM detection and banning chance reduction

#389 Post by BlubBlab » Sat Dec 07, 2013 6:11 pm

That would be:

Code: Select all

searchGMList()
I can put where you want but I would recommend it to do it in a WP in you WPfile if you run multiply times through.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Danni
Posts: 59
Joined: Sat Nov 09, 2013 6:24 pm

Re: GM detection and banning chance reduction

#390 Post by Danni » Tue Dec 10, 2013 11:04 am

Found a little problem:

I get this msg in MM:
GM detected! Name: Holydeer, Class IDs: 5/6
Alarm has been sounded
The game client did not crash.
11:56pm - ...ROM/scripts/rom/userfunctions/userfunction_gmmonitor.lua:372: Logging out because GM detected.
After checking this person Information via MACRO , I realize it is player, who is standing next to me. This Char is not a GM. Tried doing the WP 3 times, every time, MM log me out, because the char stand next to me. Does "Class IDs: 5/6" means GM?

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: GM detection and banning chance reduction

#391 Post by BlubBlab » Tue Dec 10, 2013 2:49 pm

The ID is 0
Alternative the script search pattern in here:

Code: Select all

local gmPattern = {gmMinLevel,testcharname,"GM","Moderator","Game Master","Gamemaster"}
or if the char has a name like in local gmNameList = {....}

Was the max level raised today?
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Danni
Posts: 59
Joined: Sat Nov 09, 2013 6:24 pm

Re: GM detection and banning chance reduction

#392 Post by Danni » Tue Dec 10, 2013 6:17 pm

I see. :geek:

The patch this time did not raise the max level cap. 8-)
But Rom did integrated already some lvl 85 items, like world boss and Phirius Shell EQ.
:shock:

So my guess is something is wrong. Because:
The ID is 0
:arrow: It isn't
script search pattern
:arrow: no such words are inside
char has a name like in local gmNameList = {....}
:arrow: nope it is not defined here either :|

Might it be that, this happened because I was running 3 clients and 3 MM, so one MM was not able to manage this workload? :?:

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

Re: GM detection and banning chance reduction

#393 Post by rock5 » Tue Dec 10, 2013 10:26 pm

How about the characters level? The current gmmonitor, I believe, has a cap of 100, more than 100 and it will think it's a GM. That should be enough but if you have an older version it might have a lower cap.
  • 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

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

Re: GM detection and banning chance reduction

#394 Post by rock5 » Tue Dec 10, 2013 10:48 pm

I see BlubBlabs version has a cap of 85. If you are playing on a server with a higher cap such as rom4u then you'll have to raise it.
  • 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

Danni
Posts: 59
Joined: Sat Nov 09, 2013 6:24 pm

Re: GM detection and banning chance reduction

#395 Post by Danni » Tue Dec 10, 2013 11:19 pm

nope level cap for the characters is still at 82. And the char "Holydeer" is only 82. :?

just to buy stuff like world boss items or phirius shell items for lvl 85 is strangly already avialable :shock:

... seems like ROM did a mistake at the patching, but since when does ROM update a clean working patch :twisted:

Danni
Posts: 59
Joined: Sat Nov 09, 2013 6:24 pm

Re: GM detection and banning chance reduction

#396 Post by Danni » Wed Dec 11, 2013 11:10 pm

Today I got two msg. which shouldn't appear:
GM detected! Name: Andrian, Class IDs: 3/6
Alarm has been sounded
The game client did not crash.
11:56pm - ...ROM/scripts/rom/userfunctions/userfunction_gmmonitor.lua:372: Logging out because GM detected.
I know that player personal , so he can't be a GM.
GM detected! Name: Sharika, Class IDs: 1/7
Alarm has been sounded
The game client did not crash.
11:56pm - ...ROM/scripts/rom/userfunctions/userfunction_gmmonitor.lua:372: Logging out because GM detected.
With this Char I am not sure, but I have a question:
:arrow: Are you sure that the ID have to be "0"? :?:
Because when writing a function to switch classes "1" is a GM while the classes starts at "2" I think. But I am not 100% sure. :?

Anyway for the other 2 cases "Holydeer" and "Adrian" , the msg should have not come. So I guess somewhere might be a problem. ;)

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

Re: GM detection and banning chance reduction

#397 Post by rock5 » Thu Dec 12, 2013 1:27 am

Danni wrote::arrow: Are you sure that the ID have to be "0"? :?:
Because when writing a function to switch classes "1" is a GM while the classes starts at "2" I think. But I am not 100% sure. :?
Yes, when changing class you use 2 for warrior but the userfunction is checking a pawns class. pawn classes start at 1 for warrior so it would be 0 for GM.
  • 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

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

Re: GM detection and banning chance reduction

#398 Post by lisa » Thu Dec 12, 2013 2:27 am

I'll d/l V 7.7 and have a look, it is no doubt something simple that was over looked by BlubBlab

--=== Added ===--

Had a bit of a browse and the code itself looks fine.

2 things.

What is the lvl of the other player that is detected as a GM?
What does your list of names look like?

This is the default list.

Code: Select all

local gmNameList = {"Rhakara","Tohros","Saitomentor","Kiovar","Rakymos","Galorian","Inyrion","Riujnara","Lulyane","Akasha","Vayus","Tathros","Ciarog","Aranrod","GMNohdrael","GmNohdrael","Nohdrael","Kiareko","Adelynne","Rednaltor"};
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
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: GM detection and banning chance reduction

#399 Post by lisa » Thu Dec 12, 2013 2:54 am

Give this a try, it will do a full pawn print of the "GM", might give us a better idea as to what is going on.

No other changes as such.
Attachments
userfunction_gmmonitor.lua
v 7.7a
(18.26 KiB) Downloaded 147 times
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

Danni
Posts: 59
Joined: Sat Nov 09, 2013 6:24 pm

Re: GM detection and banning chance reduction

#400 Post by Danni » Sat Dec 28, 2013 2:57 am

@Lisa:

Sry for the delay reply, I was preparing the christmas celebration :)

My Search List look the same. 8-)

For the lvl of the Characters, all were lvl 82, which is the current lvl cap. :)

I now using your new file and will try it out. If the same problem still exist, I will write the result :geek:

Locked

Who is online

Users browsing this forum: No registered users and 1 guest