SRL Archive - OSR Help

Automatic Script Switchingq


Ampd Up

2015-04-18 10:26:05

Hey guys, I've been doing a little writing of my own first script (a power RuneCrafting using RoD method) but I've also been using 2 of iNeedBot's scripts which are phenomenal.

My question is: Is there any way to implement automatic script switching. For example: Have the woodcutting script run for 2ish hours, then the fishing script run for 2ish more hours and then logout? If someone could help me implement this or guide me in the right direction that'd be great!

KeepBotting

2015-04-18 10:36:03

You could create a third ("master") script that includes the two other ones.

Then you can use the "master" script to call the mainloops from the other two on a timer.

Unless all the scripts in question are going to be running at the same location, and using the same equipment, you might have to create some custom routines for walking to the training location/getting required items.

Link me to the two scripts you want to run and I can try to give you a bit of a working example

ignorant

2015-04-18 10:48:03

Oh wow I never thought of doing it this way… -.-

KeepBotting

2015-04-18 11:01:18

From: ignorant
Oh wow I never thought of doing it this way… -.-


How have you done it?

ignorant

2015-04-18 11:45:03

From: KeepBotting
How have you done it?


I copy pasted everything into one giant script and renamed whatever was clashing…. I'm not the sharpest tool in the shed I guess @.@

KeepBotting

2015-04-18 11:48:32

From: ignorant
I copy pasted everything into one giant script and renamed whatever was clashing…. I'm not the sharpest tool in the shed I guess @.@

That's a valid way to do it. Bit roundabout, probably a bit more work than including them together :p but it works

Ampd Up

2015-04-18 14:26:10

Ah the third master script is a great (why didn't I think of this) way to do it! I was looking at ineedbot woodcutter and fisher. For example going from cutting willows in seers village to fishing lobs in catherby. The links to those scripts are WOODCUTTER and FISHER

EDIT: I was just thinking how this could get interesting because the beginning of both of these scripts is a GUI where you put your inputs in. Unless that could be incorporated into the third script where you just set those values in the beginning of the script together or something.