Jump to content

Node Framework Tutorial [increase efficiency and clarity]


Recommended Posts

Node Framework Tutorial
by Worthy

 

What is Node Framework?
A node based framework breaks actions into different classes.
Each class extends a Node and has a validate and execute function.
 
In this tutorial
I will be writing a basic powerminer to demonstrate the effectiveness of using Nodes.
 
________
Node class:

 
package scripts.powerminer.api;

public abstract class Node {

	public abstract void execute();

	public abstract boolean validate();
	
}


 
Validate: if true, will run the execute method.
Execute: where the action happens
 
________
Second, we will plan and break down the actions we'll be creating.
In a powerminer, there are really only a couple classes necessary:

  • A GUI class (optional)
  • A MineOre class
  • A DropOre class

Since this is a basic tutorial, I'm going to skip the GUI class :P
And for simplicity's sake, I won't be externalizing any variables (I usually have separate classes for Constants and Variables).
 
The MineOre class:

 
package scripts.powerminer.nodes;

import org.tribot.api.General;
import org.tribot.api2007.Inventory;
import org.tribot.api2007.Objects;
import org.tribot.api2007.Player;
import org.tribot.api2007.types.RSObject;

import scripts.api.Node;

public class MineOre extends Node {
	private final int[] ROCK_IDS = {20843, 20844, 20845};	//tin ore 
	
	@Override
	public void execute() {
		final RSObject rock = findNearest(15, ROCK_IDS);
		if (rock != null && Player.getAnimation() == -1) {
			rock.click("Mine");
			
			int timeout = 0;
			while (Player.getAnimation() == -1) {	
				timeout++;
				General.sleep(10);
				if (timeout > 250)	//waits up to 2.5 seconds until the players animation changes
					break;			//prevents bot from spam clicking ore
			}
		}
	}

	@Override
	public boolean validate() {
		return !Inventory.isFull();
	}
	
	private RSObject findNearest(int distance, int ...ids) {
		RSObject[] objs = Objects.findNearest(distance, ids);
		if (objs.length > 0)
			return objs[0];
		return null;
	}
}

 


 
____
The DropOre class:

 
package scripts.powerminer.nodes;

import org.tribot.api2007.Inventory;

import scripts.api.Node;

public class DropOre extends Node {
	private final int[] PICKAXE_IDS = {1265};	//TODO add other pickaxes
	
	@Override
	public void execute() {
		Inventory.dropAllExcept(PICKAXE_IDS);
	}

	@Override
	public boolean validate() {
		return Inventory.isFull();
	}
}


 
____
Lastly, the main class, PowerMiner:

 
package scripts.powerminer;

import java.util.ArrayList;
import java.util.Collections;

import org.tribot.api.General;
import org.tribot.script.Script;
import org.tribot.script.ScriptManifest;

import scripts.api.Node;
import scripts.powerminer.nodes.DropOre;
import scripts.powerminer.nodes.MineOre;

@ScriptManifest (authors = {"Worthy"}, category = "Framework Example", name = "Basic Powerminer")
public class PowerMiner extends Script {
	private final List<Node> nodes = new ArrayList<>();
	 
	@Override
	public void run() {
		Collections.addAll(nodes, new MineOre(), new DropOre());
		loop(20, 40);
	}

	private void loop(int min, int max) {
		while (true) {
			for (final Node node : nodes) {
				if (node.validate()) {
					node.execute();
					sleep(General.random(min, max));	//time in between executing nodes
				}
			}
		}
	}
}

 


 
 
Tying everything together:
When the script is initiated we add all the nodes we want into the ArrayList of nodes.
The script then loops indefinitely, looping through each node in the ArrayList, validating it, and then executing.
 
The min and max parameters I have set in the loop method, ensure the bot waits at least 20 to 40 milliseconds in between nodes.
 
_________
As you can see you can do much much more with a node-based framework, but this tutorial shows the barebone basics.
For example: if you have an AIO script, you can have the GUI determine which nodes to add to the ArrayList. You can delete nodes to run if an action is completed, etc.
 
Full script on GitHub: https://github.com/WorthyTRiBot/PowerMiner

 

 

 

Regards,

Worthy

Edited by Worthy
  • Like 6
  • Thanks 4
Link to post
Share on other sites
  • 3 weeks later...
  • Replies 87
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Node Framework Tutorial by Worthy   What is Node Framework? A node based framework breaks actions into different classes. Each class extends a Node and has a validate and execute functio

Yes

  • 2 weeks later...
Guest Aidden

I use the node structure in my scripts :) Well written and easy to understand guide. Well done, will be great for intermediate scripters who are ready to branch away from the switch style scripting

Link to post
Share on other sites
  • 1 month later...

Very nice. You made it easy to understand .

I use the node structure in my scripts :) Well written and easy to understand guide. Well done, will be great for intermediate scripters who are ready to branch away from the switch style scripting

 

Glad you guys found it useful!

I've rejoined TRiBot (took a small break previously) and will continue to be posting some new a useful tutorials, as well as scripts.

Link to post
Share on other sites
  • 2 months later...
  • 1 month later...
  • 5 weeks later...
  • 4 weeks later...
  • 6 months later...

um no...you can separate as much code as you want between any classes you want. 

 

It would be better to go even further, and make a framework that does the actions for you in scripts you code later on, instead of typing up all of the code required every time you want to do something.

 

Like Walking from Point A to Point B going a certain path, using the map a certain way at a certain position, you would define how those would be dealt with, make an update handler and when you are executing walking, you put those variable objects in.

 

Like Make a path of tiles named bankPath and a path of tiles named taskPath, or something. 

When you want to walk to the bank, you would say, scriptClass.walkTo(bankPath,Area'to use the minimap, or only tiles on the screen')

 

And you can also have the script update manager interfere with the script depending on whether it's banking/traversing/doing actions for the task, and do some really cool stuff like meandering around for no reason to throw jagex off your trail.

Edited by Karmik
Link to post
Share on other sites

um no...you can separate as much code as you want between any classes you want. 

 

It would be better to go even further, and make a framework that does the actions for you in scripts you code later on, instead of typing up all of the code required every time you want to do something.

 

Like Walking from Point A to Point B going a certain path, using the map a certain way at a certain position, you would define how those would be dealt with, make an update handler and when you are executing walking, you put those variable objects in.

 

Like Make a path of tiles named bankPath and a path of tiles named taskPath, or something. 

When you want to walk to the bank, you would say, scriptClass.walkTo(bankPath,Area'to use the minimap, or only tiles on the screen')

 

And you can also have the script update manager interfere with the script depending on whether it's banking/traversing/doing actions for the task, and do some really cool stuff like meandering around for no reason to throw jagex off your trail.

34373859.jpg

  • Like 2
Link to post
Share on other sites

You clearly know nothing of the tribot API stop don't try to sound smart.

I don't have to know  anything about the tribot API (But I do). 

 

Using booleans and if statements isn't that hard. What does the API of tribot have to do with how you come up with a skeleton?

 

Just because I don't implement my code the same way you do doesn't mean anything.

 

http://pastebin.com/JytBYqZJ

http://pastebin.com/YpN2vfKt

http://pastebin.com/K3qvUGQ5

http://pastebin.com/B2wX8EQd

http://pastebin.com/yVuhuK1A

http://pastebin.com/FzFcTiK2

 

How much of tribot API matters with my skeleton?

 

The only code I use within my Utilities class (which holds most of the functions that hold calls to its actual API.) Uses calls to the API.

 

Am I stupid?

Edited by Karmik
Link to post
Share on other sites

I don't have to know  anything about the tribot API (But I do). 

 

Using booleans and if statements isn't that hard. What does the API of tribot have to do with how you come up with a skeleton?

 

Just because I don't implement my code the same way you do doesn't mean anything.

 

http://pastebin.com/JytBYqZJ

http://pastebin.com/YpN2vfKt

http://pastebin.com/K3qvUGQ5

http://pastebin.com/B2wX8EQd

http://pastebin.com/yVuhuK1A

http://pastebin.com/FzFcTiK2

 

How much of tribot API matters with my skeleton?

 

The only code I use within my Utilities class (which holds most of the functions that hold calls to its actual API.) Uses calls to the API.

 

Am I stupid?

Yes

  • Like 2
Link to post
Share on other sites

*scratches head* 

 

Well I'm off to play some poker tourneys at the start of next year. Then playing cash games with the winnings, rinse and repeat. I guess that's my sign.

Good luck. When you create a good script using your advanced super amazing framework, tag me in the post and show me a long proggie and some (or all) of the source with your framework.

  • Like 1
Link to post
Share on other sites

Sure thing dude, was planning to make it open source. It's more of a high level api similar to how TriBot's api is, except it does most of the stuff like swap item slots, bank in a customized manner (can be configured) or using parameters to set the style of banking. 

 

Parallel human emulative behavior (could be antiban) run during states and points in the task that won't obstruct the flow of the task that can be defined by the scripter.

 

So say you are wanting to chop trees, and while chopping, you have a boredom/add class that just throws RNG until it thinks it should click somewhere on accident (rare enough and chanced a certain way to allow alot of deviation between everyone using the script), while chopping the tree. That would be certainly possible.

 

Or while banking, you could tell the framework to omit an item(s) before going back to the task if it were to require multiple items. Then upon reaching the task, tell the framework not to go back unless the item was a key to get into the task area, or detrimental to the task. So like, if the player were to "forget" to bring pure ess while running nats or law runes, this would be some sort of antiban so it throws jagex off if they look for this at all.

 

I really like the idea of users be able to configure how the camera moves while the player walks at specific locations, what position they put their mouse when playing legit, or what objects they move the mouse/cam to. Would be cool to see a script that could be customized up to the point of frequency by the player (the script would avoid doing it 100% of the time though, based on numbers the user punches in).

 

I could brainstorm on this stuff all day and put in more and more implementations of it. 

Link to post
Share on other sites

Sure thing dude, was planning to make it open source. It's more of a high level api similar to how TriBot's api is, except it does most of the stuff like swap item slots, bank in a customized manner (can be configured) or using parameters to set the style of banking. 

 

Parallel human emulative behavior (could be antiban) run during states and points in the task that won't obstruct the flow of the task that can be defined by the scripter.

 

So say you are wanting to chop trees, and while chopping, you have a boredom/add class that just throws RNG until it thinks it should click somewhere on accident (rare enough and chanced a certain way to allow alot of deviation between everyone using the script), while chopping the tree. That would be certainly possible.

 

Or while banking, you could tell the framework to omit an item(s) before going back to the task if it were to require multiple items. Then upon reaching the task, tell the framework not to go back unless the item was a key to get into the task area, or detrimental to the task. So like, if the player were to "forget" to bring pure ess while running nats or law runes, this would be some sort of antiban so it throws jagex off if they look for this at all.

 

I really like the idea of users be able to configure how the camera moves while the player walks at specific locations, what position they put their mouse when playing legit, or what objects they move the mouse/cam to. Would be cool to see a script that could be customized up to the point of frequency by the player (the script would avoid doing it 100% of the time though, based on numbers the user punches in).

 

I could brainstorm on this stuff all day and put in more and more implementations of it. 

The TRiBot API already does pretty much every thing your framework does, but alright.

Check out https://tribot.org/doc/

 

It has a built-in antiban as well. Check out the Inventory, Banking, and Camera classes specifically. They do everything you said. 

Edited by Worthy
Link to post
Share on other sites

I'm talking about things like closing gates just because. Picking up an item not specified in the script as something to usually loot, and then puts it back on the ground to make space.

 

This stuff you call antiban already in the api? It's just 1 type of input initiation, nothing more. Sure, checking skills is done, whatever. I'm talking, while doing an agility task, "messing up" the timing on obstacles and starting all the way over, or w/e.

 

Not just, oh, I'll randomly have the script sleep here in terms of task execution, then just run the task.

 

Click a tree, if inventory is full bank, if not, click the next tree. Awesome, that's easy. .... What about timing on bird's nest drops, waiting until a point to "notice" the bird's nest. Banking before the inventory is actually full. Deviating the duration/load size before banking.

 

This is just a more immersed layout of the bot than the API.

 

And also, I'm working on a way to integrate me playing alongside the script while it's running, and the script tracks how I'm playing, and emulates me while I'm not paying attention.

I'm just separating points in the code and categorizing which is what and when so that my code can adapt to me playing in real time and know which objects to interact how I am, when, and how.

Not just me moving the mouse randomly, or moving the camera. (and also adjusting the angle and pattern of my mouse, so no more sharp mouse angles with no arc.)

 

I'm also paranoid jagex is tracking everything clientside, and sending the data to them while my player is not logged in. So I'm always trying to stay ahead without triggering them to flag me.

Edited by Karmik
Link to post
Share on other sites

I'm talking about things like closing gates just because. Picking up an item not specified in the script as something to usually loot, and then puts it back on the ground to make space.

 

This stuff you call antiban already in the api? It's just 1 type of input initiation, nothing more. Sure, checking skills is done, whatever. I'm talking, while doing an agility task, "messing up" the timing on obstacles and starting all the way over, or w/e.

 

Not just, oh, I'll randomly have the script sleep here in terms of task execution, then just run the task.

 

Click a tree, if inventory is full bank, if not, click the next tree. Awesome, that's easy. .... What about timing on bird's nest drops, waiting until a point to "notice" the bird's nest. Banking before the inventory is actually full. Deviating the duration/load size before banking.

 

This is just a more immersed layout of the bot than the API.

 

And also, I'm working on a way to integrate me playing alongside the script while it's running, and the script tracks how I'm playing, and emulates me while I'm not paying attention.

I'm just separating points in the code and categorizing which is what and when so that my code can adapt to me playing in real time and know which objects to interact how I am, when, and how.

Not just me moving the mouse randomly, or moving the camera. (and also adjusting the angle and pattern of my mouse, so no more sharp mouse angles with no arc.)

 

I'm also paranoid jagex is tracking everything clientside, and sending the data to them while my player is not logged in. So I'm always trying to stay ahead without triggering them to flag me.

 

 

95% of what you plan to do is in the tribot API.

 

5% of your plans can be easily accomplished without making a new API or framework.

  • Like 1
Link to post
Share on other sites

5% of my plans can be accomplished without making a new API or Framework, that's cool. At least when I finish my framework, I can code things quicker without having run into errors, and flawlessly integrate more and more tasks together, which play like me, and pickup playing after I stop playing. 

 

The code I'm making is used to run code alongside the tasks for the player to do. I think you're missing that wastedbro. It's not just a call to the api in some thread just because, it has to do with the task itself.

 

The skeleton will be straightforward and very involved, not just do this and that repeat.

 

Say you want to use states and such, but you also want to do some sort of state for moving the mouse, but you use it very often and it's not just moveMouse(position), it's change an item's position in your inventory, and then drag it back to where it was. It would be handled before continuing the tasks, rather than having all of these states to track where you are in the task. Without while loops or anything.

 

And as far as I know, when using the walking methods, all other method calls before the walking is complete, will not be processed until.

 

So......?

 

Multithreading is fine. But this would also add to simplicity, essentially doing the same thing, without adding a thread.

Edited by Karmik
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Similar Content

    • By Worthy
      Anvil Smither
      By Worthy
       
      Features
      Anvil Locations: Western Varrock Central Varrock Easter Varrock Falador (requires Doric's Quest completion)
        Progressive Smithing: Smiths the highest level item available to maximize XP Taken from https://oldschool.runescape.wiki/w/Pay-to-play_Smithing_training Options available to customize the progressive items:

        Money Making Smithing (~1m/hr): Rune platelegs Rune plateskirt Rune 2h sword
        GE Support Sells smithed items to get GP for more bars if needed Starts a high price and relists them for lower if they don't sell Buys more bars when we are out of bars Completely adjustable parameters on quantities of bars to buy for every player's needs
       
        Other Features World hopping between X and Y minutes Either hop to random p2p/f2p depending on what we're already in Or hop among an inputted list of worlds Option to always stay in members worlds (can be used in f2p) Option to stop at a desired smithing level Minimize the client when the script starts Maximize the client when the script ends Save and load GUI profile settings Use these profiles to load the script via arguments without having to fill out the GUI again!
        Advanced antiban (see below in more detail) Customize ABC2 reaction delays Customize ABC2 leave game frequencies Customize frequency of random AFK Customize duration of random AFK Built in ABC2 level 10 support  
      Set-up
      No set up required! The bot will navigate anywhere using Daxwalker. It will even buy a hammer from the GE if you don't have one!  
      Advanced Antiban
      If you find the bot is building and removing items very slowly, you can adjust the ABC2 slider in the second tab of the GUI.
      All you need to due is drag the slider ABC2 Reaction Durations towards the Fastest end.
      Similarly, if you find the bot's mouse is leaving the game too often, you can adjust the ABC2 Mouse Leave Game Frequency slider.
      The parameters for the random AFK frequency and duration (mean and standard deviation) determine how frequently the bot will randomly AFK and how often it will do so. To help visually the distribution of when and how long it will AFK, use this website: https://onlinestatbook.com/2/calculators/normal_dist.html and plug in the corresponding values for the mean and standard deviation (SD) to visualize the probability graph.

      For example, if the Random AFK Frequency is set to use a mean of 45 minutes and standard deviation (SD) of 15 minutes, the bot will pick a time to AFK based on this graph:

      Using the area probability on the link above, we can see there is a roughly 68% chance (the gray region), that the bot will decide to AFK between the 30 and 60 minute mark.
       
      NOTE: If the random AFK frequency and duration parameters are confusing, I recommend leaving them on their default values!
       
      Script Arguments
      Once you have saved a GUI settings profile, you can load it using the argument settings:profile_name without having to fill out the GUI again.
      By default, the script saves the most recent GUI settings as "last".
      So if you would like to load the last settings you used via arguments you pay input settings:last into the argument box (without needing to manually save a GUI settings profile).
       
      Click here to use it!
       
      Progress Reports
      Example of smithing from level 47 to 65 in 6 hours, progressively using the best item to smith, while restocking when out of bars!

       
      Troubleshooting and Bug Reports
      If you are experiencing weird issues, I highly recommend running this jar to clear all existing caches:

      Happy Botting! 
      - Worthy
    • By Worthy
      AIO Constructor
      By Worthy
       
      Features
      Construct Any Item Including: Planks Bagged plants - FARMING XP! Refills watering cans in house sink Or fetches pre-filled watering cans from the bank Nails Marble Mythical cape
        Multiple Banking Methods Manual banking - Rimmington/Falador, Yanille Ring of Dueling and House Teleports Phials unnoting planks Servant fetch from bank Servant un-note items from inventory
        Synchronized Servant Support Cook Butler Demon Butler
        User Experience This entire script has been rewritten optimized for efficiency and flawlessness  Antiban Compliance (ABC2) Level 10/10 Quick and easy to use GUI setup Script arguments (skip GUI set-up) Slick mousepaint and paint Dynamic signature system (more info below) Hiscores page  
      Set-up
      Start with just a hammer and saw in Inventory. Only if using Servants have coins in Inventory too, or keep them in the servant's money pouch. If using Servants Un-noting have noted planks in Inventory too Only if using Phials Unnoting have noted planks (just the type you are using) in Inventory too. Only if using RoD/Tele Banking have house tabs in Inventory too.  
      Recommended Items to Build
      Levels 1 - 19 → Crude Wooden Chairs (need 138 planks and nails) Levels 19 - 33 → Oak Chairs (need 238 oak planks) Levels 33 - 70  → Oak Larders Levels 70 - 99 → Oak Dungeon Doors 
      OR Levels 52 - 99 → Mahogany Tables (fastest if you have $$)
      OR Levels 47 - 99 → Mythical Capes (requires Dragon Slayer 2 but saves money)
      Creating a preset

      Make sure to create the preset using your mouse only! (no hot-keys).
       
      Notes
      If you find the bot is building and removing items very slowly, you can adjust the ABC2 slider in the second tab of the GUI.
      All you need to due is drag the slider ABC2 Reaction Durations towards the Fastest end.
      Similarly, if you find the bot's mouse is leaving the game too often, you can adjust the ABC2 Mouse Leave Game Frequency slider.
      The parameters for the random AFK frequency and duration (mean and standard deviation) determine how frequently the bot will randomly AFK and how often it will do so. To help visually the distribution of when and how long it will AFK, use this website: https://onlinestatbook.com/2/calculators/normal_dist.html and plug in the corresponding values for the mean and standard deviation (SD) to visualize the probability graph.

      For example, if the Random AFK Frequency is set to use a mean of 45 minutes and standard deviation (SD) of 15 minutes, the bot will pick a time to AFK based on this graph:

      Using the area probability on the link above, we can see there is a roughly 68% chance (the gray region), that the bot will decide to AFK between the 30 and 60 minute mark.
       
      Script Arguments
       
      Click to buy for a month or trial it for 1 day, for $1:
       
      Bulk auth discount available as well.
       
      Troubleshooting and Bug Reports
      If you are experiencing weird issues, I highly recommend running this jar to clear all existing caches:

      Check your hiscore ranking here!
      Grab your dynamic signature by modifying this url:
      http://www.worthy.rs/tribot-php/AIOConstructor/sigs/YOUR_TRIBOT_USERNAME_HERE.png All you need to do is change the part which says `YOUR_TRIBOT_USERNAME_HERE` to your actual TRiBot username!
       
      Happy Botting! 
      - Worthy
    • By Worthy
      Welcome to Worthy Scripts
      |w| Zulrah Slayer
      Features
      Automatic Grand Exchange restocking! When out of supplies, the bot can sell loot, ready up, buy more, and continue! Using the resource tracker, the bot automatically calculates how many supplies it needs Essentially with enough GP you can run the bot forever!  Automatic Muling! When the bot has enough wealth, mule over the extra GP and keep it safe! Works with the partner script: |w| Zulrah Muler Here is an example of 2.1B (pure profit) being collected from 33 accounts running for 54 hours:
        Loot tracker. Analyze your drops! This data along with other statistics are saved every run time by the Zulrah Sessions System. Resource tracker. Track every item the bot consumes while playing (and how much it cost!) This data is saved and used to compute exactly how many supplies are needed when doing the automatic Restocking With this tool your pure profit is displayed  Looking Glass compatible The script now functions relatively smoothly with TRiBot's beta feature Looking Glass Unlimited multi-kill performance The bot will determine if it has enough supplies to start another Zulrah battle after killing the boss the previous time. It can continue doing this until it runs out of food, allowing a single, double, triple, or quad+ kill. Zulrah fight CPU efficient! Ability to run the client minimized.  Dynamically prioritized combat framework Many Travel methods Zul-Andra teleport scrolls Charter Travel Camelot port [via Camelot teleports] Catherby port [via Catherby port lunar teleport] Khazard port [via Khazard port lunar teleport] Fairy Ring Network Fairy ring via Varrock Teleport Fairy ring via Quest Cape Fairy ring via Ardougne Cloak Fairy ring via Salve Graveyard Teleport Fairy ring via slayer ring Fairy ring via House Teleport (mounted) Ornate pool support If so, the script will use castle wars bank instead Jewelry box support If so, the script will use a custom kill / bank loop (with no Ring of Dueling) Or use another player's house! Ability to input a list of names. There is almost every customizeable option for every travel method. Please ask in the discord support server if you have questions  There are also combinations of some of the above travel methods Reorganizes inventory! Drags and drops items like a real player Swaps between gear sets of range and magic Or instead use magic gear only and use a custom positioning algorithm to hide behind pillars Option to skip the blue pattern which deals the most damage   Repairs barrows armor  Supports TRiBot breaking system Hiscores system (details below) Tracks GP acquired from Loot, Resources, and computes Profit Tracks rare drops and pets Dynamic signatures (details below) Automatic screenshot progress report system every hour
      Detailed session log dump. Keep track of exactly how all your bots do!
      TRiBot Antiban Compliance V2 Level 10/10 The script is also packed with custom statistic-based antipattern I have personally developed. Smart options to determine when to use long range or keep level 1-def Tracks and handles JAD phases flawlessly Deathwalk - SAFE BOSS: never lose your items on death Recharges Trident of the Seas, Trident of the Swamp, Toxic Blowpipe, Serpentine Helm (all forms) Tracks ammunition and recharges special weapons Resizable mode options to optimize gameplay Supports serpentine helmets Supports cooked karambwans Supports special attacks Supports ring of suffering Supports prayer potions / super restores Supports stamina potions Supports summer pies for agility boost Supports imbued heart Supports custom world hopping Supports new rigour and augury prayers Supports vengeance spell with optimal timing Option to use these with rune pouch Supports custom script ending conditions Supports multiple algorithms to fight Zulrah for click-related functions Supports custom f-key bindings Supports in-phase timing: prefer to do actions at the end of phases Picks up and banks the Zulrah pet  
      Official Discord Discussion
      http://discord.gg/yeCVsad
       
      External Documentation Thread
      A lot of the specific information about the features above is on the Documentation thread.
      It can be found by pressing the "READ ME" button on the GUI after the script is purchased.
      It will help you:
      Create an armor preset Decide what gear to wear Set up the GUI to be tailored to your RuneScape character Start the script correctly Other notable information  
      Proggies






      More:
      Some more: http://imgur.com/a/HNaQZ
      Even more: http://imgur.com/a/lsh82

      Requirements
      - 80 to 85+ range/magic (85+ magic necessary as it is the most important stat). If using LG, have at least 85 of both.
      - High defence and hp (>= 70 for barrows), HP recommend at least 75
      - 43+ prayer
      - Underground pass, Biohazard, and Plague City, and Recigide (up to the point where you can access Zulrah)
       
      Things to Note
      Using TRiBot's Beta Feature Looking Glass will, in most cases, reduce performance, and thus GP rates.
      Please note, using the regular version on the original TRiBot will net much closer to the posted profit rates (given the required stats, optimal gear and settings).

      Live Hiscores System
      V2 Hiscores (Data wiped and recollected since June 7th, 2019 to track pure profit [loot - resources])
      Dynamic Signatures:
      Automatically load an image of your current stats, which updates as you bot!
      http://www.worthy.rs/tribot-php/ZulrahSlayerV2/sigs/USERNAME_HERE.png Just replace USERNAME_HERE with your TRiBot username (case-sensitive), and copy and paste it the image link itself into your signature here:
       (should be on the bottom right of your signature edit box).
      Does your name have special characters? Simply find the link for your signature in the hiscores link above.
       
      Click below to purchase:
      Note, usually free two hour trial is offered, but trials have been temporarily disabled in the new repository.
      Please let me know if you have any questions I can answer, or just drop by the discord.

       
      Troubleshooting Guide:
      If you are experiencing weird issues, I highly recommend running this jar to clear all existing caches:
       
      Happy Botting!
      - Worthy 
    • By Worthy
      Closed for an indefinite period of time.
      4/13/2021
       

    • By Gold Pieces
      OSRS scripts often require setting up complex decision trees, in one form or another, in order to achieve the necessary workflow from the bot.
      The OOP solution to this is to create a DecisionTree class and have many DecisionNode classes, each with an ifValid() and an ifNotValid() function.
      However, this results in long convoluted path structures, and can result in an ungodly number of files, if the logic gets complex.
      The FP solution is to create a set of functions that can handle the same logic, using any() and all() methods to mimic nested if statements built with && and || statements.
      This seems a bit more elegant to me, and I have not seen it posted to these forums yet, so I'll leave it here.
      Though the code in this snippet is written in Kotlin, it can be very easily translated to Java to achieve the same effect, though the code will be less concise.
      Conditional (Static Class):
      Example Usage:
      Keep in mind, this is essentially the same as a bunch of nested if statements, though it has the advantage of being more concise and reading a bit clearer, imo.
      I challenge any of you to reproduce the above code using if, else statements and post it below. I promise, it will not be anywhere near as pretty as the code above.
      If someone requests, I will provide the Java equivalent. But let's be honest, Kotlin is the future
    • By Worthy
      Add my discord for communication (worthy#2076)
      Crypto - ETH, BTC, BCH, LTC, USDT, XRP accepted
      Interac E-Transfer is for Canadians only! This method is always accepted
       
      NEW LOW PRICE OF:
      $0.63/M (500m+)
       
       
      PLENTY IN STOCK
       
      Regards,
      Worthy
    • By Worthy
      AutoTalker Infinite
      By Worthy
       


      Features
       
      As many lines as you want to autotalk (will scroll down indefinitely) Custom time interval delay ABCL 10 Auto Accept Trades Alert with a popup window the accepted trade (perfect for leaving the bot running and doing something else, while it talks and accepts trades. It will then alert you a trade has been established, and you can take over).
       
      Steps
      Make sure to select the Trade tab when logged in:

      Click to add:


      Enjoy!

    • By Worthy
      Accessible now through the script's GUI!
      Just click "READ ME!"

      If you are botting on a remote machine and have difficulties browsing the web (and thus the documentation), pressing the "READ ME" button will also print your link and access token in the Client Debug. You may view this link in any web browser for 5 minutes to view the documentation on any computer.
      So, once pressing the "READ ME" button, the following link to view the documentation is generated in the Client Debug: http://worthy.rs/ZulrahSlayer/documentation.php?user=worthy
      (except it will show your TRiBot name).
    • By Worthy
      Welcome to Worthy Scripts
      |w| Zulrah Helper
       
      NOTE: This script does NOT kill Zulrah for you. It guides you through the kill process and tracks information.
      Think of it as a plugin for RuneScape (as the script never directly interacts with the game, but just paints information on the screen).

      Features
      No risk of ban from the script itself (the only other factor could be the Client but @TRiLeZ states it is undetectable) Easy to set-up GUI Hiscores system (below) Automatic screenshot progress report system every hour Supports resizable mode! (side-panels and transparent chat box support). The bot can remind you to Recharge the blowpipe/trident/serpentime helmets Select the best prayers Wear the selected armor Change combat styles Eat food Cure venom Equip rings of recoil Drink prayer/mage/range potions Use special attacks Repair barrows armor Pickups pets The script guides you to kill Zulrah in the most efficient manner, even taking in Melee safe spots into account Now supporting resizable mode! You may even adjust the size of the script while the script is active!
       
      GUI Settings

       
      How it works (note this is a human playing)
       

      How to setup an equipment profile (from my Zulrah Slayer but same concept)
       
      Requirements
      - 80 to 85+ range/hp/def/magic
      - 43+ prayer
      - Regicide, Underground pass, Biohazard, and Plague City required

      Hiscores System
      Link
       
      Proggies

       
      Pricing
      - 9.99 CREDITS | 6 Months | 1 Auth
      Get it here now!

       
      Dynamic Signature

      [center][url=https://tribot.org/forums/topic/53608-/][img=http://www.worthy.rs/tribot-php/ZulrahHelper/sigs/USERNAME_HERE.png][/url][/center]  
      Things to note:
      Green tiles are where you should currently stand Blue tiles are where you should get ready to stand next Red tiles are where Zulrah will spawn Do use karambwans and magic/range potions for faster kills. Do use function keys (esc, f5) so switch tabs quicker. If a karambwan and food is glowing in green, eat the food first and then the karambwan. When battling a certain Zulrah phase, hover over the blue dot on the minimap, and the second Zulrah dives into the ground, click the blue square. Afterwards then wear your new armor, pray the new prayers, eat (if needed), and change combat styles (if needed). Watch this informative video detailing how to deal with the JAD phase  This script is just an overlay, it is not supposed to be meant with LG as it does not interact with the game. TRiLeZ has stated the client is undetectable, and the script does not interact with the game, so there is no chance of a ban, thus LG is not plausible to use. IF using Looking Glass, use 64-bit OSBuddy. Additionally go into File > Settings on the TRiBot client and increase the paint delay to 50+ to reduce lag.  
      With the required stats, you should be able to "legit" Zulrah in a few kills.
      There is also a two hour trial with the script! Don't be alarmed if you don't kill it on the first try though, it could take a few times to get into the rhythm.

      Regards,
      Worthy
    • By Worthy
      Save and Load GUI Settings Tutorial
      by Worthy
       
      In this tutorial
      We will be using java.util Propteries class to save and load settings from your GUI (or anything else that is applicable)

      ________
      Adding the proper variables for preparation.
      In your Main class add the location to save the GUI settings
       
      In your GUI class we must create the Save and Load settings methods
       
      Implementing the methods
      On the "Start" button, we will call saveSettings();
      On the script initiation we will call the loadSettings(); (after the GUI has been loaded)
       
      -->Alternatively you can just create seperate save and load buttons on the GUI.


      Tying everything together:
      The first thing the script will do is declare the File Path, and initiate the Preferences file.
      When the GUI loads, the script will then call loadSettings(), loading the settings (if any).
      If no settings are saved, it well then create a new file in the path.
      Right before the GUI is disposed it will save all the settings the user has applied in TRiBot's storage directory. (You can print out the location if you don't know where that is for your OS).

      _________
      Complete Example script:
      GUISettings.java (Main class)

      GUIExample.java (GUI class)
       
       

      Regards,
      Worthy
       
       
  • Our picks

    • Support for the gradle launcher is being dropped. Read more about the new launcher here.
      • 8 replies
    • What to expect from TRiBot moving forward.
      • 11 replies
    • TRiBot 12 Release Candidate

      The TRiBot team has been hard at work creating the last major version of TRiBot before the TRiBot X release. We've noticed many problems with TRiBot 11 with a lot of users preferring TRiBot 10 over 11. We've heard you, so we took TRiBot 10, added the new features introduced with 11, introduced some other new things, and created TRiBot 12. So without further adieu, here's TRiBot 12.
      • 40 replies
    • Gradle is a build tool used to accelerate developer productivity.

      We recently setup a Maven repository (TRiBot Central) to make it easier for scripters to create scripts. Check it out here: https://gitlab.com/trilez-software/tribot/tribot-central/-/packages

      Furthermore, we've released a simple Gradle project to make it easy to run TRiBot and develop scripts for it. Check it out here: https://gitlab.com/trilez-software/tribot/tribot-gradle-launcher

      The goals of TRiBot Central are to:

      Deliver updates to TRiBot faster


      Better organize TRiBot's dependencies (AKA dependancies)


      Make it easier to develop scripts for TRiBot


      Make it easier to use and run TRiBot


      Note: TRiBot won't be able to run scripts from within this project until TRiBot's next release.
      • 13 replies
    • Hi everyone,

      I'd like to thank everyone for their patience in this transition period. Since last week, we've worked out the remaining bugs with this integration.

      Some users have still been having issues with connecting their forums account to their Auth0 account. To resolve this, we've imported all forums accounts into Auth0.

      Unfortunately, the accounts which were imported today were using an unsupported password hashing algorithm. Hence, random passwords were set during the import.

      What does this mean for me?

      If you've previously linked your forums account to your Auth0 account, you don't have to do anything. Nothing changes for you.


      If you haven't logged in via our new login yet,

      Try logging in with your forums email address and the last password you used


      If you are unable to login, please use the "Forgot password" tool on the login page:
      Follow the instructions to reset your password
       
      • 17 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...