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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: GM detection and banning chance reduction

#141 Post by rock5 » Fri Nov 04, 2011 12:50 am

Why do all that? Why not just save the current values, set them to values that play well, play the sound, then restore the settings? Can't you change the master volume?
  • 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

#142 Post by lisa » Fri Nov 04, 2011 1:20 am

Yup sure can change mastervolume, initially I was just going to leave master volume as is and only adjust interface volume according to what master volume is set to.
It kind of developed into also changing mastervolume if below 20.
Reason I decided not to just adjust both is that if the player has it set to actually hear things and they have master at 50 and we change it to 100 then any other sounds like ambient music will get very load.

While I write this I am thinking best would be to make function set master to low(20) and then set interface to 100. That way if people do listen to ingame things it will probably get lower in volume and never get to load.

The other thing I took into concideration is I decided on these values from what my PC speakers are set to, others might have PC volume much higher.

Right now I am thinking of making this a userfunction, put the load alarm.wav into folder interface/addons/ingamefunctions and just change master to 20, interface to 100 and also have a user variable at the top of function for people to alter so it alters master volume.

Code: Select all

local volumeadjustment = 10
MasterVolumeSlider_SetValue(20 + volumeadjustment)
Something like that anyway and just leave interface at 100.
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

#143 Post by lisa » Fri Nov 04, 2011 2:04 am

Updated first post with V 2.3
Added in usage of the playalarm userfunction i just created, link is on first post.
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

i don´t get it

#144 Post by spawni » Sat Nov 12, 2011 11:29 am

Read most of the postings tried a lot and it won´t work.

What have I done:

1. Doing the things from posting No.1
- Putting

Code: Select all

 <![CDATA[
         startGMDetect()
 ]]>
in the WP-File - Onload-Section

- changed the testchar-name to a char of mine in lua

- put the GM-detection-options in the bot-chars 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="PAUSEONGM"      value="300" />  -- 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
- copied the userfunciton_gmmonitor.lua in the addon-folder from rom-installation

- added the wav-file (and installed prog from lisa - because first time error-message appeared)

restart of all clients and started botting - no error message on start
- wispering with the second char - nothing happens (not even a aawispher-file)

:oops:

i tried it with the egg script:

Code: Select all


<onLoad>
 <![CDATA[
         startGMDetect()
 ]]>
-- beep by whisper edit by spawni 27.09  ----
function beepwhispers()
repeat
local time, moreToCome, name, msg = EventMonitorCheck("Whispers", "4,1")
if time ~= nil then
printf("\a\a\a");
end
-- new code from board-tip --
until moreToCome ~= true
-- origin code --
-- until moreToCome == false --
end
EventMonitorStart("Whispers", "CHAT_MSG_WHISPER");
registerTimer("beepwhispers", secondsToTimer(5), beepwhispers)

-- end of beep by whisper --

rest is standard.

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

Re: GM detection and banning chance reduction

#145 Post by lisa » Sat Nov 12, 2011 11:37 am

- copied the userfunciton_gmmonitor.lua in the addon-folder from rom-installation

- added the wav-file (and installed prog from lisa - because first time error-message appeared)
This is a userfunction and those 2 files should go in the micromacro/scripts/rom/userfunctions folder
-------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.
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

#146 Post by spawni » Sat Nov 12, 2011 11:53 am

ty for the fast reply.

I tried eventmonitortext - and it gives back an ok.
But I thought when I wisper to the bot with the char noted in line 6 - the bot has to pause?
He still keeps going do hens....

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

Re: GM detection and banning chance reduction

#147 Post by lisa » Sat Nov 12, 2011 12:49 pm

Have a look in rom/logs/GMdetectwhispers.xml

Anytime you get whispered it should log the message in that file, regardless of if char is set to charname or if GM.

If there is nothing in the file then there is an issue to it recognizing the whisper.
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

#148 Post by spawni » Sat Nov 12, 2011 1:44 pm

yup - there is an entry there - so the real function (for example pause for a time) will only work when real gm is near or wispers?

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

Re: GM detection and banning chance reduction

#149 Post by spawni » Sat Nov 12, 2011 4:43 pm

:D - everything works fine now - maybe it was a problem running several clients and haven´t shut them all down after install.

After a break I used a harvest-script in the house and the gm-detect gets on - cause the test-char was in the house too -*gngn*

thx for your help

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

Re: GM detection and banning chance reduction

#150 Post by lisa » Sat Nov 12, 2011 7:42 pm

The nearby and whisper part of the userfunction work independantly, the whisper part may still be not working for you.
So give it another test with whispering.
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

#151 Post by spawni » Mon Nov 14, 2011 4:38 am

The wispers are now shown in the log-File.
So I think everythink works fine now.

I also implemented "beep when wispered" - so I get double notifications.

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

Re: GM detection and banning chance reduction

#152 Post by spawni » Mon Nov 14, 2011 10:49 am

I do have two little questions left:

- how does your script regognize the "real" GM - what is the difference between normal players and the GM?
- when my test-char comes into the house where I do all the crafting - the bot doesn´t stop crafting - just the alarm-sound goes on and the message says "GM detected". - normal reaction?

For the last question I will do a test on my own. When i make a littel waypoint and let the bot walk - and i come near with the test char - it should stop right?

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

Re: GM detection and banning chance reduction

#153 Post by lisa » Mon Nov 14, 2011 10:57 am

Some parts work independant of others.

The GMnearbylogout will work regardless of the pause. If you set it to true it will log out if a GM is nearby.

if you set a time for PAUSEONGM then it will pause when whispered, if no time set then it will log out when whispered.

RECALL is only for if fighting.
spawni wrote:the bot doesn´t stop crafting
You probably dont have GMnearbylogout set to true. It is also possible the crafting is getting you in a loop and so the logout command isn't going through.
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

#154 Post by spawni » Mon Nov 14, 2011 12:13 pm

:oops: I don´t get it....

Maybe my english isn´t good enough to understand it all.... :-(
Maybe I just want things that are not implemented. The comments in the detection option section make me think so.

If I understood it right GMs can go into instances such as miller farm or malatina - so when they go there - they see you botting (for example the normal miller hen script does his work in extra ordinary tempo) - when a GMs sees that - your are done....


So what I thought GM detection can do for me:
  • If a GM comes in - for expamle - instance of a miller farm - where bot is working - the bot stops for the defined pause. Alarm sound going on. I can go to the pc and say "hello -nice to meet you).
  • If a GM whispers - an alarm is going on (which can be done very easy with beep when whisper) and bot stops for the defined pause. I can go to the pc and say "hello -nice to meet you).
If I understood it right - i can do the following:

- log out if a GM is near you (which leads me to the question in which way you can identify a GM) - is this a good idea?
- Pause if a GM whispers to you (which does not work with my test char)
- In combat pausing use the recall-text and log out


Hoping for your patience for my "ddooh" questions.....

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

Re: GM detection and banning chance reduction

#155 Post by rock5 » Mon Nov 14, 2011 1:39 pm

spawni wrote:So what I thought GM detection can do for me:

If a GM comes in - for expamle - instance of a miller farm - where bot is working - the bot stops for the defined pause. Alarm sound going on. I can go to the pc and say "hello -nice to meet you).

If a GM whispers - an alarm is going on (which can be done very easy with beep when whisper) and bot stops for the defined pause. I can go to the pc and say "hello -nice to meet you).
That's exactly the way I would want to use 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

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

Re: GM detection and banning chance reduction

#156 Post by spawni » Mon Nov 14, 2011 3:47 pm

:roll:
but when I try this two things with the Testchar it won´t work
If I walk nearby the boting char with the test-char alarm goes on - but the bot keeps going

If I whisper - the only thing that happens - i get an entry in the log

Code: Select all

	<!-- GM detection options  ACHTUNG ONLOAD-EINTRAG FÜR GM-DETECT UNTEN NICHT VERGESSEN -->
      <option name="GMDETECT"         value="true" /> 
      <option name="GMnearbylogout"      value="false" /> 
      <option name="PAUSEONGM"      value="300" /> 
      <option name="RECALL"         value="true" /> 

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

Re: GM detection and banning chance reduction

#157 Post by lisa » Mon Nov 14, 2011 8:50 pm

The entry in the log should look like this.

Code: Select all

Time: 11/03/11 14:57:38 Char name: **charname** Message: **message**
Char details: **charname** (**guild name**) Priest (67) Scout (46) Dust Devil Canyon Human (Male)
I edited the bits with **
So any time you get whispered you should get a message like that.
If you only get the first line then it isn't working properly.
The second line is when the bot checks the details of the person whispering you.
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

#158 Post by spawni » Mon Nov 14, 2011 11:43 pm

:cry: ok - so I have done something wrong.
Only the first line is shown in my file.

For example

Code: Select all

Time: 11/15/11 05:36:09 Char name: napf Message: na du
Alarmsound is going on when I am near the bot with testchar- but char doesn´t stop moving when I am near. - whisper does not work - I am a little frustrated now. Is there a difference between the language? I play on a german client.

I have done like shown in the 1. Thread

In the WP onload-section

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>	
	<onLoad>
	
	<![CDATA[
         startGMDetect()
   ]]>	
Copied the files like shown (for this I have made a screenshot)

I have done an snv-update and revert

I have edited the testcharname

Code: Select all

testcharname = "mychr" 
In the profile i added this - everything is standard there (only have configured logout to "false" - changed that to "true" - no difference)

Code: Select all

	<!-- GM detection options  -->
	<option name="GMDETECT"         value="true" /> -- enables the GM detection userfunction
      <option name="GMnearbylogout"      value="false" /> -- If a GM is close to the character it will log out.
      <option name="PAUSEONGM"      value="300" />  -- 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
Any idea for me?
Attachments
screenshot from ingamefunctions
screenshot from ingamefunctions

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: GM detection and banning chance reduction

#159 Post by BillDoorNZ » Tue Nov 15, 2011 1:17 am

hmm....according to your image, you have all the ingamefunctions.* files in your mm/scripts/rom/userfunctions folder.

they need to be in <runes of magic install directory>\interface\addons\ingamefunctions\

not sure about the rest of your setup tho

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

Re: GM detection and banning chance reduction

#160 Post by lisa » Tue Nov 15, 2011 1:39 am

My best guess is it comes down to this

Code: Select all

			_ttime = RoMScript("GetTime()")
			if 60 >= ( _ttime - time ) then
line 113
find it in the file and make it look like this

Code: Select all

			_ttime = RoMScript("GetTime()")
			print("Gettime: ".._ttime)
			print("from event monitor: "..time)
			if 60 >= ( _ttime - time ) then
I have a feeling your gettime and time are going to be very different.
Change the code, start up bot and whisper it with the char again.
It will print on to MM screen the values it has for those "times".
Then we will know for sure if it is the issue or not.
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

Locked

Who is online

Users browsing this forum: No registered users and 0 guests