Jump to content

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


hreyvirtue

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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