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