Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

OSRS White dot = LOGOUT!

Joined
Dec 18, 2014
Messages
160
Just looking for a bot that would logout if a white dot appears on minimap. Would help with a host of wilderness related activities (Runite mining, lava dragons, ranging green dragons, chaos ele, wilde agility, to name what I can think of)
 
Joined
Dec 10, 2014
Messages
3,255
What about if the bot logged out depending if another player was detected within a certain radius?
 
Joined
Mar 29, 2015
Messages
606
so basically ur saying.. once u see a white dot on the minimap u'll logout and hop worlds? gl getting exp with botting that way
 
Joined
Apr 18, 2015
Messages
408
Not asking why on earth you would want this because it's like screaming "DETECT ME PLEASE"; but anyways:

Your validate should be something like (pseudo-code)
Code:
Coordinate pos = Players.getLoaded().nearest().getPosition();
Coordinate myPos = Playes.getLocal().getPosition();
Compare both positions using pos.getX() and pos.getY()
If the player is too close then return true, else return false.

Your execution should be
Code:
RuneScape.logout();
yourscriptasvariable.stop();
 
Joined
Dec 10, 2014
Messages
3,255
Not asking why on earth you would want this because it's like screaming "DETECT ME PLEASE"; but anyways:

Your validate should be something like (pseudo-code)
Code:
Coordinate pos = Players.getLoaded().nearest().getPosition();
Coordinate myPos = Playes.getLocal().getPosition();
Compare both positions using pos.getX() and pos.getY()
If the player is too close then return true, else return false.

Your execution should be
Code:
RuneScape.logout();
yourscriptasvariable.stop();
Or you could use the Distance API and also make sure that the player you get isn't your player. What you could do is use queries to get a list of players, excluding your player, within a certain area with your player as the center. If the list is empty, logout, if the logout is successful, stop the bot. Be sure to only stop if the logout is successful, otherwise you'll be defeating the purpose.
 
Joined
Dec 18, 2014
Messages
160
I don't plan on using this to bot. I want to have it running when I'm up at something like lava dragons, playing legit. So that if I'm not paying 100% attention and a pker comes nearby, it'll automatically log me out.
 
Joined
Dec 18, 2014
Messages
160
u cant logout in combat tho

All the instances that I labeled earlier, you either aren't in combat at all or, in the case of Chaos Elemental, you might be hopping in/out of cover so you won't always be in combat.
 
Joined
Feb 26, 2015
Messages
822
if Players.getLoaded().size() > whatever:
do whatever you want to get away

worked fairly well for when I would afk in the middle of nowhere in bounty hunter for mad EP
 
Top