Jump to content

Is there any way to make a script hit "Continue" whenever PVP world warning comes up in lobby?


Recommended Posts

Posted
19 minutes ago, hreyvirtue said:

Sorry for obnoxious title, but title says all  

 

Is there anyway to make either the client or script hit continue?

 

Just to clarify:

http://prntscr.com/mfu81d

 

 

Thanks!


If the default OSBot login handler isn't clicking it, then use a custom login handler, and click the button yourself:

https://osbot.org/forum/topic/109560-a-simple-login-handler/

  • Like 1
  • Heart 1
Posted (edited)
14 hours ago, Explv said:


If the default OSBot login handler isn't clicking it, then use a custom login handler, and click the button yourself:

https://osbot.org/forum/topic/109560-a-simple-login-handler/

Whenever I tried adding it to onStart/onLoop, I get an error about username/password not being static, how do I fix this?

(Making them static makes me remove final, making me have to initialize them to null, giving a NullPointerException)

Thanks

 

code:

 

http://prntscr.com/mg0k4k (somehow got this error to go away)

 

But now it's still giving a nullpointerexception

 

the full error: 

[ERROR][Bot #1][02/03 09:11:39 AM]: Error executing event : org.osbot.rs07.input.keyboard.TypeStringEvent@2eaf52f3
java.lang.NullPointerException
    at org.osbot.rs07.input.keyboard.TypeStringEvent.execute(lh:84)
    at org.osbot.rs07.event.EventExecutor$2.run(sk:136)
    at org.osbot.rs07.event.EventExecutor.execute(sk:69)
    at org.osbot.rs07.script.MethodProvider.execute(ue:402)
    at org.osbot.rs07.api.Keyboard.typeString(fg:162)
    at org.osbot.rs07.api.Keyboard.typeString(fg:89)
    at LoginEvent.enterUserDetails(LoginEvent.java:92)
    at LoginEvent.login(LoginEvent.java:75)
    at LoginEvent.execute(LoginEvent.java:38)
    at org.osbot.rs07.event.EventExecutor$2.run(sk:136)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

and code:

http://prntscr.com/mg0ur4

Edited by hreyvirtue

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...