OSRS White dot = LOGOUT!

Discussion in 'Bot Requests' started by XCRunner, Apr 26, 2015.

  1. XCRunner

    Joined:
    Dec 18, 2014
    Messages:
    160
    Likes Received:
    9
    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)
     
  2. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    2,962
    Likes Received:
    874
    What about if the bot logged out depending if another player was detected within a certain radius?
     
  3. Dryrr

    Joined:
    Mar 29, 2015
    Messages:
    609
    Likes Received:
    109
    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
     
  4. Hazard

    Joined:
    Apr 18, 2015
    Messages:
    394
    Likes Received:
    84
    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 (Text):
    1.  
    2. Coordinate pos = Players.getLoaded().nearest().getPosition();
    3. Coordinate myPos = Playes.getLocal().getPosition();
    4.  
    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 (Text):
    1.  
    2. RuneScape.logout();
    3. yourscriptasvariable.stop();
    4.  
     
  5. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    2,962
    Likes Received:
    874
    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.
     
  6. XCRunner

    Joined:
    Dec 18, 2014
    Messages:
    160
    Likes Received:
    9
    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.
     
  7. Dryrr

    Joined:
    Mar 29, 2015
    Messages:
    609
    Likes Received:
    109
    u cant logout in combat tho
     
    Gathicxv and Hazard like this.
  8. XCRunner

    Joined:
    Dec 18, 2014
    Messages:
    160
    Likes Received:
    9
    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.
     
  9. Aria

    Joined:
    Feb 26, 2015
    Messages:
    636
    Likes Received:
    239
    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
     

Share This Page

Loading...