1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question A few questions I could never find the answers to

Discussion in 'Developer Support' started by Serene, Jul 6, 2016.

  1. Serene

    Serene ( ͡° ͜ʖ ͡°)

    Joined:
    Mar 30, 2015
    Messages:
    2,408
    Likes Received:
    508
    All for OSRS. Tried searching the forums and plenty of time searching through the jdocs testing random things out.

    How to get through the welcome screen?
    • By default, if I'm logged out in OSRS the bot will log in fine but won't click through the welcome screen.
    • Tried using interfaces to search for "Click here to play" but the interaction never works.
    • Tried using GameEvents.OSRS.LobbyHandler.enable() (not sure what this is for) on start but didn't work.
    How to make quicker camera turns?
    • Looking for something to mimic the scroll wheel and turn a bit faster than the turnTo() functions work. Possibly scrollTurnTo() / wheelTurnTo();
    • Tried loops of pressing the mouse wheel, dragging the mouse and then releasing the wheel but doesn't work well at all. Nowhere near the same way turnTo() functions work where I can specify a target and the viewpoint turns exactly towards.
    Edit: was gonna remove it but I'll leave this one here in case anyone else is wondering
    1. How to check if local player is poisoned? (Solved.. sort of)
      • Cloud mentioned adding it to the API here: Poison?
      • (Solution?) - Could check using interfaces or varps. Would be nice if there was a Player.isPoisoned() or Actor.isPoisoned()?
     
  2. awesome123man

    awesome123man Go check out new bots and give helpful feedback.

    Joined:
    Jan 31, 2016
    Messages:
    5,413
    Likes Received:
    1,662
    Welcome screen should be handled by the lobby handler. If it isnt then something is up, consider making sure lobbyHandler is enabled in bot.

    Camera.ConcurrentlyTurnTo() is kinda better than just TurnTo, but you probably already know that.

    I never thought about poison, but .isPoisoned() would be a great addition!
     
  3. Serene

    Serene ( ͡° ͜ʖ ͡°)

    Joined:
    Mar 30, 2015
    Messages:
    2,408
    Likes Received:
    508
    Just to make sure lobbyhandler is enabled, I enable it in onStart() but welcome screen still isn't clicked. And yeah I use concurrentlyTurnTo() but it can be pretty slow sometimes. Blows if I need to adjust camera while in combat.
     
  4. awesome123man

    awesome123man Go check out new bots and give helpful feedback.

    Joined:
    Jan 31, 2016
    Messages:
    5,413
    Likes Received:
    1,662
    Hmm, that is wierd, lobby handler is working for me in osrs and rs3....
    But as far as camera, no idea dude. Consider asking cloud. But i thought the camera turns are pretty fast myself, at least as fast as a normal person can turn the camera.
     
  5. Serene

    Serene ( ͡° ͜ʖ ͡°)

    Joined:
    Mar 30, 2015
    Messages:
    2,408
    Likes Received:
    508
    That's weird. Do you ever have to manually enable lobbyhandler? If I don't it doesn't work, if I do it in the onStart() method it doesn't work either.
     
  6. ricespud

    Joined:
    Oct 23, 2015
    Messages:
    117
    Likes Received:
    39
    Can't answer your questions but if I'm not mistaken, Celestial Fisher has an antiban feature that prints something along the lines of "Rotating camera with scroll wheel" and it rotates the camera very fast in OSRS. Might want to ask Savior.
     
    Serene likes this.
  7. Serene

    Serene ( ͡° ͜ʖ ͡°)

    Joined:
    Mar 30, 2015
    Messages:
    2,408
    Likes Received:
    508
  8. awesome123man

    awesome123man Go check out new bots and give helpful feedback.

    Joined:
    Jan 31, 2016
    Messages:
    5,413
    Likes Received:
    1,662
    I never have to enable it... Maybe something else in your script bot is giving it trouble, it has happened to me before. Make sure nothing in your onLoop could be messing it up.
     
  9. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,708
    Likes Received:
    1,606
    Hold middle mouse and move mouse in a direction, then release middle mouse, not in a loop.

    Lobby handler handles welcome screen, remove all references to it in your bot and see if it works.

    For Actor#isPoisoned, perhaps consider writing code yourself and submitting to API.
     
  10. Serene

    Serene ( ͡° ͜ʖ ͡°)

    Joined:
    Mar 30, 2015
    Messages:
    2,408
    Likes Received:
    508
    Removed all references from my bot, still didn't work. Tried manually enabling it in the constructor, onStart() and onLoop for loopingscript, none of which worked. For the isPoisoned, where could I submit it to the API?
     
  11. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,708
    Likes Received:
    1,606
    PM Cloud or Slash on Slack with a Github link, they'll probably have their way with it before it goes in.
     
  12. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,212
    Likes Received:
    1,042
    Actor#isPoisoned might be a little tricky, to find out if the local player is poisoned is pretty simple using varps, on RS3 at least.
    --- Double Post Merged, Jul 8, 2016, Original Post Date: Jul 8, 2016 ---
    As for the Lobby Handler not working, is it not activating at all or is it activating and doing nothing?
     
  13. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,708
    Likes Received:
    1,606
    To be honest I would have assumed local player being poisoned is the only useful one anyway - I see no real use (apart from super-niche) cases where a general Actor#isPoisoned would be necessary.

    Local player, however, would be useful.
     
  14. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,212
    Likes Received:
    1,042
    Could probably be incorporated into the Health class tbh
     
  15. Serene

    Serene ( ͡° ͜ʖ ͡°)

    Joined:
    Mar 30, 2015
    Messages:
    2,408
    Likes Received:
    508
    I never see "Lobby Handler has been activated" in the console, only Login Handler.
     
  16. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,708
    Likes Received:
    1,606
    You should get a tray notification whenever it's activated.
     
  17. Serene

    Serene ( ͡° ͜ʖ ͡°)

    Joined:
    Mar 30, 2015
    Messages:
    2,408
    Likes Received:
    508
    I don't. I usually have tray notifications turned off but turned them on and still didn't get one.

    [​IMG]

    This is all that I see, and then the status in my bot updates to part of the onLoop() section showing that it's going through code as if it's logged in and past the welcome screen. No references to login handler or lobby handler in the code.
     
  18. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,212
    Likes Received:
    1,042
    Could be that the Lobby Handler isn't validating properly. I'll investigate when I can find the time.
     
    Serene likes this.
  19. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Could be that after the login handler finishes the bot never returns from its onLoop.
     
  20. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,212
    Likes Received:
    1,042
    Most probably this actually, especially if @Serene uses a lot of while loops.

    Lobby handler is working fine for me on OSRS, probably should have stated that I haven't had any issues with it.
     

Share This Page

Loading...