Jump 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.

Question for the experiences scripter

Featured Replies

im just wondering, when your creating a script and there isnt any variable on an entity that will indicate a change. Which i wish there was for my script. Which would help me change my States. What would you normally do. Use a boolean?

Edited by josedpay

  • Author

its hard to explain without blurting out my new project. i would like 2 conditions. One that indicates if the entity has ores.

  • Author

I'm not sure what you're asking.

im asking what would you do. if you did something to an RS2Object, and your looking for a change on the RS2Object, but there isnt any. You want to be able to indicate that change so you could chnage the current state of your script. 

im asking what would you do. if you did something to an RS2Object, and your looking for a change on the RS2Object, but there isnt any. You want to be able to indicate that change so you could chnage the current state of your script. 

You would have to just have a lot of checks while your'e going through doing that something to the RS2Object.

Then when you're done, you set a boolean (or whatever you decide)

and go off that.

 

You'll just have to set up how you do it so that you will know for a fact whether it has been done or not.

So essentially you're making a miner :p

 

Write you're own method to grab the current object you're interacting with and check the ID.

If you want more accurate, helpful help, you'll actually have to tell us what you're trying to do. 

  • Author

If you want more accurate, helpful help, you'll actually have to tell us what you're trying to do. 

So what you could steal my idea tongue.png Heres a little hint

 

So essentially you're making a miner tongue.png

 

Write you're own method to grab the current object you're interacting with and check the ID.

 

 

You would have to just have a lot of checks while your'e going through doing that something to the RS2Object.

Then when you're done, you set a boolean (or whatever you decide)

and go off that.

 

You'll just have to set up how you do it so that you will know for a fact whether it has been done or not.

initially i was think about this, but i was just wondering what the OSD would do.

Edited by josedpay

So what you could steal my idea tongue.png Heres a little hint

 

 Good guess but nope. Im making a smither / smelter

 

 

initially i was think about this, but i was just wondering what the OSD would do.

Nah, I'm not about that life.

If you want our help, you have to risk letting your idea out.

tbh, chances are it has already been done.

Not to mention I'm working on my own things. cbf to start stealing ideas. lel

 

But what you could/should do depends completely on what you're trying to do. Without that information all we can do is guess.

  • Author

Nah, I'm not about that life.

If you want our help, you have to risk letting your idea out.

tbh, chances are it has already been done.

Not to mention I'm working on my own things. cbf to start stealing ideas. lel

 

But what you could/should do depends completely on what you're trying to do. Without that information all we can do is guess.

ill work all night to try to find a solution if i cant. ill tell you what it is tomorrow, and see if you could help. Also this script hasnt been made on osb yet

ill work all night to try to find a solution if i cant. ill tell you what it is tomorrow, and see if you could help. Also this script hasnt been made on osb yet

Alright, I wish you luck. I'm kind of excited to find out what it is. :D

If you can't figure it out, and don't want to post it on the forums you're free to PM me about it.

im just wondering, when your creating a script and there isnt any variable on an entity that will indicate a change. Which i wish there was for my script. Which would help me change my States. What would you normally do. Use a boolean?

I'm trying to understand what you're asking here? You're asking how to determine which state you should be in?

 

Well I see you mentioned states, so I guess I can show you my State class (Called a Task):

package def.api;

import org.osbot.script.Script;

public abstract class Task{
	public abstract int run() throws InterruptedException;
	public abstract boolean valid();
	private String name = "N/A";
	private Script s;
	public String name () {
		return name;
	}
	public void setName(String name){
		this.name = name;
	}
	public static Task getValid(Task[] tasks){
		for(Task t: tasks){
			if(t.valid()){
				return t;
			}
		}
		return null;
	}
	public Task(){
		
	}
	public Task(String name){
		this.name=name;
	}

	public Task(String name, Script s){
		this.name=name;
		this.s = s;
	}
	public Script getS() {
		return s;
	}
	public void setS(Script s) {
		this.s = s;
	}
}

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.