Page 16 of 25
Re: GM detection and banning chance reduction
Posted: Mon Aug 06, 2012 10:33 pm
by lisa
Not sure what to say, try updating the files maybe ?
I used your code and it worked fine.
Code: Select all
<onload>
function beingfollowed(pawn,alarmnumber)
cprintf(cli.lightblue,"Inside beingfollowed \n");
if alarmnumber == 1 then
cprintf(cli.lightblue,"Player following us. Logout. \n");
sendMacro("Logout();");
end
end
while (true) do
yrest(1000)
end
</onload>
Code: Select all
GM detection started
Inside beingfollowed
Inside beingfollowed
Inside beingfollowed
Player following us. Logout.
Use MACRO: Executing RoMScript "Logout();".
Inside beingfollowed
Player following us. Logout.
Use MACRO: Executing RoMScript "Logout();".
Inside beingfollowed
Inside beingfollowed
Stopping execution.
Your post did make me think there needs to be a check for if in party or not, I didn't add that in to the code and it should be there.
Line 81 of the userfunction can be changed
from
Code: Select all
if pawn.Name == player.Name then return end
to this
Code: Select all
if pawn.Name == player.Name or pawn.InParty == true then return end
That should do it.
Re: GM detection and banning chance reduction
Posted: Fri Aug 10, 2012 6:15 am
by Alleexx
For some reason when I use a testchar to whisper my bot nothing at all happens. It just continues. I have changed the testcharname in the userfunction I tried both to have startGMDetect() in profile onload and waypoint onload, I have all options in the profile but still nothing.
When I start the bot it says GM detection started but still it doesn't seem to work.
Re: GM detection and banning chance reduction
Posted: Fri Aug 10, 2012 7:26 am
by lisa
Alleexx wrote:For some reason when I use a testchar to whisper my bot nothing at all happens. It just continues. I have changed the testcharname in the userfunction I tried both to have startGMDetect() in profile onload and waypoint onload, I have all options in the profile but still nothing.
When I start the bot it says GM detection started but still it doesn't seem to work.
My guess is you need to test to make sure you can monitor chat properly, on the first post have a look for this.
A WP purely for testing that you have event monitoring funtional.
Can be any character even brand new and you don't need any extra code in profile for it to work, just run bot with this waypoint file.
Attachment:
File comment: Tests if event monitoring is working, posts LOL in Say, posts on MM window that it is working.
eventmonitortest.xml [618 Bytes]
Downloaded 337 times
I would say that you are just missing the addon which is also mentioned on the first post =)
Re: GM detection and banning chance reduction
Posted: Fri Aug 10, 2012 11:33 am
by Alleexx
I tried that and it said everything worked fine
Re: GM detection and banning chance reduction
Posted: Fri Aug 10, 2012 7:08 pm
by lisa
hmmm, the charname has to be exact, capitals and all.
Does the charname have special characters in it?
Re: GM detection and banning chance reduction
Posted: Sat Aug 11, 2012 1:29 pm
by Alleexx
Charname is exact, no special characters
Re: GM detection and banning chance reduction
Posted: Sat Aug 11, 2012 9:42 pm
by lisa
Not sure what else it could be.
Maybe try redownloading the files, check the profile options, double check the monitor test.
I tested and it works fine for me
Code: Select all
GM detection started
Party Monitor started.
GM detected! Name: Char, Class IDs: 2/3
Alarm has been sounded
GM detected! Name: Char, Class IDs: 2/3
Alarm has been sounded
GM detected! Name: Char, Class IDs: 2/3
Alarm has been sounded
Use MACRO: Executing RoMScript "AskPlayerInfo('Char');".
You have been whispered by: Char
Alarm has been sounded
Alarm has been sounded
Use MACRO: Executing RoMScript "SendChatMessage('Sorry mum is yelling I ".
Did not find any crashed game clients.
12:38am - ...scripts/rom/userfunctions/userfunction_gmmonitor.lua:259: Logging out because GM whispered.
log file
Code: Select all
08/12/12 12:37:36 GM detected! Name: Char, class IDs: 2/3
08/12/12 12:37:41 GM detected! Name: Char, class IDs: 2/3
08/12/12 12:37:46 GM detected! Name: Char, class IDs: 2/3
08/12/12 12:37:49 Char name: Char Message: lol
08/12/12 12:37:50 Char name: Char Message: Char(guild) Scout (50) Rogue (21) Coast of Opportunity Human (Female)
Re: GM detection and banning chance reduction
Posted: Tue Aug 14, 2012 5:31 pm
by Alleexx
Ok I've redownloaded eveything and eventmonitortest says everything works fine, but when I whisper my char from the test char or from any other char nothing happens. It just keeps going
Re: GM detection and banning chance reduction
Posted: Tue Aug 14, 2012 7:48 pm
by lisa
Took me about an hour but I managed to replicate what was happening for you and fix it.
It was an error on I did in part of the code that made it leave the userfunction and so it wasn't doing all of the code.
In my earlier testing it worked as my "gm char" was close to the bot char and so it got out of the code causing the issue.
Long story short I messed up, grab V 7.1 (first post) and all will be good again =)
Re: GM detection and banning chance reduction
Posted: Wed Aug 15, 2012 4:26 pm
by Alleexx
Thanks alot lisa!
Only problem I have now is that I can't hear any alarm sound but it doesn't really matter as I usually bot with the sound off.
Re: GM detection and banning chance reduction
Posted: Fri Aug 17, 2012 6:20 am
by Alleexx
It seems I spoke too soon...
When the bot changes char using rock5's fast login I always get "Cannot get log event for monitor 'GMdetect'. No such monitor name exists." spammed in the ingame chat. And the bot won't stop when I whisper it. It only works when using the first char in the list.
Any ideas why this may happen?
Re: GM detection and banning chance reduction
Posted: Fri Aug 17, 2012 6:28 am
by lisa
Do you have startGMDetect() in the WP or profile ?
Re: GM detection and banning chance reduction
Posted: Fri Aug 17, 2012 6:58 am
by rock5
When you change character the gmevent monitor stops and has to be restarted. If you add it to the WP file and then reload the WP file when changing characters, the gm monitor will be restarted.
If you add it to the profile onload and reload the profile when changing characters, the old methods to do so wouldn't rerun the profile onload so the gm monitor doesn't get restarted. If you use the "loadProfile()" function it does redo the onload.
So if you prefer having the "startGMDetect()" in your profile, then make sure you use loadProfile() to reload the profile.
http://www.solarstrike.net/phpBB3/viewt ... 643#p32643
Re: GM detection and banning chance reduction
Posted: Fri Aug 17, 2012 9:24 am
by Jandrana
During the last days I encountered this problem: "Cannot get log event for monitor 'GMdetect'."
I have fast login installed, but the script I was running at that time, does not switch between any characters. (but it does switch channels)
Is this a general problem, when using fast login?
Re: GM detection and banning chance reduction
Posted: Fri Aug 17, 2012 9:29 am
by lisa
if the startGMDetect() is in the waypoint then it isn't an issue with the login but if you have it in the profile then you will need to reload the profile, as rock said.
The event monitoring is an addon and as such when you log out, even to character screen, all addons are reloaded and therefore it stops tracking all previous events.
Re: GM detection and banning chance reduction
Posted: Fri Aug 17, 2012 12:01 pm
by krix
What modification shoud I do to add option: change chanel if followed by <Table with character names> ?
Re: GM detection and banning chance reduction
Posted: Fri Aug 17, 2012 6:33 pm
by lisa
something like this I guess.
Add it to WP onload if doing this code for specific waypoint file.
Add to profile onload if you want that char to always do this code when followed.
Code: Select all
function beingfollowed(obj,alarm)
local tnames = {"Somechar","Anotherchar"}
if playalarm then playalarm() end
if 2 >= alarm then return end -- ignore the first couple and do the code on 3rd alarm
for k,v in pairs(tnames) do
if v == obj.Name then
SetChannelForLogin("next")
RoMScript("ChangeChar('current')")
loadProfile()
return
end
end
end
Re: GM detection and banning chance reduction
Posted: Tue Aug 21, 2012 7:00 am
by Alleexx
I haven't had time to test this until today, but it works great when reloading the profile. Thanks rock!
Re: GM detection and banning chance reduction
Posted: Tue Sep 11, 2012 5:14 pm
by vo2male
Hi everyone. I'd like to ask if its is possible to add a script here that would whisper GMs from time to time to know if they are offline or online? Then if the whisper is received by the GM or he whispered back, it would trigger the
and automatically logs off your character. If it is possible, could you guys help me how to put it? I was thinking this would be another way of detecting GMs ^_^ because GM sometimes just don't whisper at you, they would just jump at you anytime. I know a friend of mine who was caught while botting. he was on one instance and the GM just jump right next to him.
Moreover i was wandering if there is a userfunction that would show you offline even though your are online?
Re: GM detection and banning chance reduction
Posted: Tue Sep 11, 2012 8:11 pm
by lisa
vo2male wrote:I know a friend of mine who was caught while botting. he was on one instance and the GM just jump right next to him.
this userfunction detects if a GM is nearby, if your friend was using this function and properly configured he probably wouldn't have been banned.
vo2male wrote: to know if they are offline or online?
You would need to know all the GM character names, if you already know that then you can do a
and monitor the system chat for the response, no need to actually whisper the GM at all to know if they are online.