Welcome!

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

Sign up now!

Question A few questions I could never find the answers to

( ͡° ͜ʖ ͡°)
Joined
Mar 30, 2015
Messages
2,410
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()?
 
Go check out new bots and give helpful feedback.
Joined
Jan 31, 2016
Messages
5,413
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()?

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!
 
( ͡° ͜ʖ ͡°)
Joined
Mar 30, 2015
Messages
2,410
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.
 
Go check out new bots and give helpful feedback.
Joined
Jan 31, 2016
Messages
5,413
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.
 
( ͡° ͜ʖ ͡°)
Joined
Mar 30, 2015
Messages
2,410
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.
 
Joined
Oct 23, 2015
Messages
117
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.
 
Go check out new bots and give helpful feedback.
Joined
Jan 31, 2016
Messages
5,413
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.
I never have to enable it... Maybe something else in your script is giving it trouble, it has happened to me before. Make sure nothing in your onLoop could be messing it up.
 
Client Developer
Joined
Oct 12, 2015
Messages
3,760

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.
 
( ͡° ͜ʖ ͡°)
Joined
Mar 30, 2015
Messages
2,410
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.

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?
 
Client Developer
Joined
Oct 12, 2015
Messages
3,760
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?

PM Cloud or Slash on Slack with a Github link, they'll probably have their way with it before it goes in.
 
Joined
Dec 10, 2014
Messages
3,255
PM Cloud or Slash on Slack with a Github link, they'll probably have their way with it before it goes in.
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.
 
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?
As for the Lobby Handler not working, is it not activating at all or is it activating and doing nothing?
 
Client Developer
Joined
Oct 12, 2015
Messages
3,760
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.
 

As for the Lobby Handler not working, is it not activating at all or is it activating and doing nothing?

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.
 
Joined
Dec 10, 2014
Messages
3,255
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.
Could probably be incorporated into the Health class tbh
 
( ͡° ͜ʖ ͡°)
Joined
Mar 30, 2015
Messages
2,410
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.
 

As for the Lobby Handler not working, is it not activating at all or is it activating and doing nothing?

I never see "Lobby Handler has been activated" in the console, only Login Handler.
 
( ͡° ͜ʖ ͡°)
Joined
Mar 30, 2015
Messages
2,410
I don't. I usually have tray notifications turned off but turned them on and still didn't get one.

oufyAWK.png


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.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Could be that after the login handler finishes the bot never returns from its onLoop.
 
Joined
Dec 10, 2014
Messages
3,255
Could be that after the login handler finishes the bot never returns from its onLoop.
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.
 
Top