Jump to content

Question for the experiences scripter


Joseph

Recommended Posts

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.

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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;
	}
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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