Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Stopping the script when recently in combat [Bug]

Featured Replies

Alek pls fix very nub programmer cant make helloworld.c

 

 

erm erm i mean what I meant to say was basically, if you were recently in combat and then you call stop() it will try to log out but if it doesnt succeed (i.e. 10 second cooldown didnt end yet) it will just stop the script anyway, leaving your player logged in. 

 

I have the script designed to run from combat, but it still hasn't finished the 10 second cool down yet. Obviously I could make it work for this by waiting before calling stop() but I think this should be handled API sided to protect this from happening in other scripts. 

 

121e69116aed6eea4cea55995236daa6.png

 

 

 

Pls fix alek I luv u 

 

 

:doge:

  • Author

Please read the API documentation.

 

stop(boolean logout)

 

 

No I want it to logout, but what I am saying is that basically if it fails to log out like for example, I was in combat within the last 10 seconds, it tries to logout, fails and then the script stops.

 

Meaning, it tried to logout, like it should, it failed to logout because 10 seconds had not passed since last in combat, then it proceeded to kill the script thread even though it was not logged out yet.

No I want it to logout, but what I am saying is that basically if it fails to log out like for example, I was in combat within the last 10 seconds, it tries to logout, fails and then the script stops.

 

Meaning, it tried to logout, like it should, it failed to logout because 10 seconds had not passed since last in combat, then it proceeded to kill the script thread even though it was not logged out yet.

which then your character is left alone in you dont know where

 

edit:

 

isnt stop() the same as stop(true)

Edited by josedpay

  • Author

which then your character is left alone in you dont know where

 

edit:

 

isnt stop() the same as stop(true)

 

 

Yea I think I was just unclear on my first post so alek misunderstood what I said. 

This should be logic handled by the scripter. What if you are at constant aggro monsters?

Is there any A-OK that tells us if we need to wait 10 seconds.

Is there any A-OK that tells us if we need to wait 10 seconds.

 

Message Listener and game state

  • Author

Message Listener and game state

In my opinion fleeing combat should be done by the scripter, which I do. But I feel like when you call log out it should try more than one time to log out. All I'm asking if for logout to have a check, if the log out fails one time, wait 15 secs, try again? I don't feel like I'm asking much :s

Again, this isn't really just for me, but for everyone using the api Who might not know this happens.

Ps ily alek pls?

love u long time

Edited by Mysteryy

The more methods we add to the API which can be handled by the scripter, the more we open ourselves up to something breaking. As of now, I'm only interested in stabilizing existing API and fixing bugs.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.