[TUT] Compiling iBot scripts

Runescape Discuss, [TUT] Compiling iBot scripts at Online Gaming forum; How to compile scripts Requirements: + Notepad + Copy & Pasting Knowledge < LOL + Internet Connection < Duh Steps ...


Go Back   Gamerz Needs - For All Your Gaming Needs! > Online Gaming > Runescape
Forgot Password? | Sign Up!

Notices

Advertisement
   

Closed Thread
 
Bookmark this Thread Tools Display Modes
  #1  
Old 12-03-2007, 02:28 AM
RSHacker13's Avatar
°ŠķךN°
 
Last Online: 10-27-2008 09:08 PM
Join Date: Jun 2006
Location: .:: Philippines ::.
Age: 15
Posts: 1,785
Thanks: 96
Thanked 451 Times in 209 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 10
RSHacker13 is on a distinguished road
Points: 1,059.30
Bank: 92,178.69
Total Points: 93,237.99
For the efforts i made - Cheers - RSHacker13 
Send a message via MSN to RSHacker13 Send a message via Yahoo to RSHacker13
Exclamation [TUT] Compiling iBot scripts

How to compile scripts


Requirements:
+ Notepad
+ Copy & Pasting Knowledge < LOL
+ Internet Connection < Duh


Steps are in different colors!

Credits:
+ RSHacker13 (Me)
+ TinyTox


Follow steps below:

We will use this script for example:
Code:
GeSHi (java):
import impsoft.nexus.bots.color.ColorBot;
import impsoft.nexus.bots.color.scriptable.*;
import impsoft.nexus.bots.color.scriptable.components.*;
import impsoft.nexus.bots.color.scriptable.components.bottom.*;
import impsoft.nexus.bots.color.scriptable.components.gamescreen.*;
import impsoft.nexus.bots.color.scriptable.components.minimap.*;
import impsoft.nexus.bots.color.scriptable.components.tab.*;
import impsoft.nexus.bots.color.scriptable.interfaces.*;
import impsoft.nexus.bots.color.scriptable.objects.*;
import impsoft.nexus.bots.color.structures.*;
import impsoft.nexus.bots.color.util.*;
import impsoft.nexus.bots.reflection.objects.*;
import impsoft.nexus.bots.reflection.scriptable.components.*;
import impsoft.nexus.bots.reflection.structures.*;
import javax.swing.JOptionPane;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
 
public class GoF_Tanner extends ColorScript {
 
	public GoF_Tanner(ColorBot b)  {
	    super(b, false);
	}
 
	public static String author = "GoF";
	public static String description = "Makes soft leather.";
	public static double version = 0.3;
 
	private int loads    = 0;
	private int leathers = 0;
 
	final Rectangle hideSpot = new Rectangle(80, 90, 15, 15);
 
	Timer doorTimer = new Timer(0);
 
	RGB[] ellisRGB = new RGB[] {new RGB(193, 105, 69), new RGB(91, 69, 20), new RGB(122, 93, 28)};
 
	EdgeRGBCluster ellis     = new EdgeRGBCluster(ellisRGB, this);
 
	AryanTile bankTile   = new AryanTile(3270, 3168);
	AryanTile tannerTile = new AryanTile(3275, 3191);
	AryanTile doorTile   = new AryanTile(3278, 3191);
 
	AryanPath bankPath   = new AryanPath(bankTile, this);
	AryanPath doorPath   = new AryanPath(doorTile, this);
	AryanPath tannerPath = new AryanPath(tannerTile, this);
 
 
	public boolean atBank() throws InterruptedException {
		if (bankTile.distanceTo(getLocation()) <= 5) {
			log("At bank.");
			return true;
		} else {
			log("Too far away from banktile. Walking there. ");
			return false;
		}
	}
 
	public boolean atTanner() throws InterruptedException {
		if (tannerTile.distanceTo(getLocation()) <= 5) 
			return true;
		 else 
			return false;
	}
 
	public boolean shopScreenVisible() throws InterruptedException {
		mouseMove(hideSpot);
	    if(theTopText.isTopTextContaining("an"))
			return true;
		 else 
			return false;
	}
 
	public void progressMade() throws InterruptedException {
		log("Loads done: "+loads);
		log("Leathers done: "+leathers);		
	}
 
	public void script() throws InterruptedException {
		log("Soft leather maker by GoF");
		log("Script starting.");
		while(true) {
			if(atBank() == false) 
				bankPath.walkToEnd();
			theBankV3.doWithDrawAll("hide", true);
			log("Going to tanner.");
			theWorldMap.walkTo(tannerTile);
			if(atTanner() == false) {
				log("Failed to make it to the tanner. Damnit.");
				log("Ending script");
				shutDown(); 
			}
			ellis.doTopTextAndMenuOnMoving("Talk-to Ellis", "Trade Ellis");
			sleep(3000+random(1000,2000));
			int failedShop = 0;
			if (shopScreenVisible() == false) {
				while(failedShop < 6) {
					log("Shop screen not open...");
					log("Trying again...");
					ellis.doTopTextAndMenuOnMoving("Talk-to Ellis", "Trade Ellis");
					sleep(2000+random(1000,2000));
					if (shopScreenVisible() == false)
						failedShop++;
					else
						break;
				}
				if(failedShop >= 6){
					log("Failed to locate ellis");
					shutDown();
				}	
			}
			int menuTries = 0;
			while (theMenuFinder.isMenuUp() == false) {
				menuTries++;
				mouseClickRight(hideSpot);
				sleep(100+random(100, 200));
				if (menuTries == 5) {
					log("Unable to open menu.");
					shutDown();
				}
			}
			theMenuFinder.doMenu("Tan All");
			theWorldMap.walkTo(bankTile);
			if(atBank() == false) {
				log("Failed to make it to bank...");
				shutDown();
			}
			if(atBank() == false) {
				log("Failed to make it to bank...");
				shutDown(); 
			}
			theBankV3.open();
			sleep(1500);
			if(theBankV3.isInterfaceIsUp() == false) {
				log("Bank not open?");
				sleep(1000+random(1000,1000));
				theBankV3.open();
				sleep(500);
				if(theBankV3.isInterfaceIsUp() == false) {
					log("Failed to open bank.");
					shutDown();
				}
			}
			theBankV3.doDepositAll("Leather");
			loads++;
			leathers = leathers + 27;
			progressMade();
		}
	}
}
 
Created by GeSHI 1.0.7.20 
1) On copying the script do not the:
> GeSHi (java): < Found on the top of the coded scripts in RSCA
> Created by GeSHI 1.0.7.20 < Bottom of the coded scripts in RSCA
These are colored in blue on the example above

2) Where to paste the copied script:
Follow these steps:
Click on Start > Choose Run > type in notepad > press OK
and a notepad will open and
press CTRL+V to paste your script

3) How to find the correct name for the script:
Follow these steps:
Go to the top of the script and scroll a bit down till you go to the end of those import thingies you'll see something like this:

public class "Name of script" extends
you can find this on the example script above colored red

you'll have to copy the name.
like in this example script the correct name for the script is "GoF_Tanner"
without the quotation marks
copy that and hit CTRL+S < save
and paste there the the name you've got and add ".java" on the end without the quotation marks and hit "SAVE"

4) Where to put the .java:
follow the steps:

go to your nexus folder
then go to the Scripts folder
then to the iBotScripts folder
then paste there the .java file

5) how to compile it:
follow the steps:

Go back to the nexus folder
run the "compile-by-regex.bat" and wait for it to be finished and be sure to see that it didn't encounter any error the error lists will come out at the end of the compilation when the you need to press any key to continue...

if that didn't work
run the "compile-default.bat" same process as above.

Thanks to Tinytox for the correction.

Last edited by RSHacker13; 12-04-2007 at 02:57 AM..
The Following 4 Users Say Thank You to RSHacker13 For This Useful Post:
demon_oreo (12-04-2007), dominic236 (12-06-2007), iRadiation (12-07-2007), Tinytox (12-03-2007)
  #2  
Old 12-03-2007, 04:31 PM
Tinytox's Avatar
Registered Users +
 
Last Online: 12-02-2008 04:44 PM
Join Date: Jan 2007
Posts: 476
Thanks: 120
Thanked 147 Times in 42 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 0
Tinytox is an unknown quantity at this point
Points: 471.20
Bank: 9,131.41
Total Points: 9,602.61
Heh.

Cool. im glad you got this up. First post =D

Edit 1: Use Comile-by-Regex first, if it dosent work, try the compile default, if it dosent work, then you did somthing else wrong, its not the compiler.

Edit2: Status report: Ive mined 5k+ iron ore and smithed it useing this bot and useing imp iron bank and alkironsmelt
ive gone from 15 to 51 mining as well.

Edit3: I will give you many of the scripts i use, probably about like 10 of them in a .rar, they will all be .java and functional and all you will have to do is drop em in scripts and run compile-by-regax =) but its up to rshacker if i can post these on this thread =)

im gunna post a thieving one - if RS hacker wants me to remove it i will.

Code:
import impsoft.nexus.bots.color.ColorBot;
import impsoft.nexus.bots.color.scriptable.ColorScript;
import impsoft.nexus.bots.color.scriptable.components.tab.MagicTab;
import impsoft.nexus.bots.color.scriptable.components.tab.StatisticsTab;
import impsoft.nexus.bots.color.scriptable.interfaces.AutoPaint;
import impsoft.nexus.bots.color.structures.RGB;
import impsoft.nexus.bots.color.util.Timer;
import impsoft.nexus.bots.reflection.structures.AryanTile;
 
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
 
public class ArbiThief extends ColorScript implements AutoPaint {
	public static double version = 1.23;
	public static String author = "ArbiterOfChange";
	public static String description = "ArbiThief" + version;
	public int BeginLevel;
	public int CurrentLevel;
	public int Exp;
	public int Levels = 0;
	private Timer timeran = new Timer(0);
	public AryanTile ThiefSpot1 = new AryanTile(3235, 3201);
	public AryanTile ThiefSpot2 = new AryanTile(3268, 3410);
	public AryanTile Run = new AryanTile(3269, 3420);
	public String Status = "Starting...";
	public boolean sLady = false;
	public ArbiThief(ColorBot b, String cmd){
		super(b,false);
	}
 
	public void chat(String chat) throws InterruptedException {
		if (sLady == true) {
			sLady();
			sLady = false;
		}
		if (chat.contains("strange place")) {
			sLady = true;
		}
		if (chat.contains("Oh dear") && chat.contains("are dead")) {
			script();
		}
		if (chat.contains("Pillory")) {
			ErrorEnd("Pillory Random Found. Killing Bot.");
		}
	}
 
	public void sLady() throws InterruptedException {
		Status = "Home Teleporting Due to Sandwich Lady";
		theTabs.Magic.selectSpell(MagicTab.HOME_TELE);
		sleep(random(5000, 10000));
	}
 
	public void Run() throws InterruptedException {
		Status = "Running Away";
		theTabs.Options.setRun(true);
		theWorldMap.walkTo(Run);
		sleep(random(10000,11000));
		Walk2();
	}
 
	public void LocationCheck2() throws InterruptedException {
		getLocation().distanceTo(ThiefSpot2);
		if(getLocation().distanceTo(ThiefSpot2) > 3){
			Status = "Walking Back to Location 2";
			Walk2();
		}else {
			Thief2();
		}
	}
 
	public void Status2() throws InterruptedException {
		CurrentLevel = theTabs.Statistics.getStatBottom(StatisticsTab.STAT_THIEVING);
		theTabs.Inventory.doAction("", "Drop", 28, true);
		Levels = CurrentLevel - BeginLevel;
		if(CurrentLevel >= 15)
		{
			LocationCheck2();
		}
		if(theHPBars.failSafeInCombat()){
			Run();
		}
		else
		{
			LocationCheck2();
		}
	}
 
	public void Thief2() throws InterruptedException {
		Status = "Stealing From Tea Stall";
		Rectangle Tea = new Rectangle(306, 116, 41, 79);
		mouseMove(Tea);
		sleep(random(1,1000));
		if (theTopText.isTopTextContaining("Steal-from")) {
			mouseClickLeft(getCurrentMouseXY());
			Exp = Exp + 16;
			Status2();
		}else {
			Thief2();
		}
 
	}
 
	public void Walk2() throws InterruptedException {
		Status = "Walking to Location 2";
		AryanTile Fix = new AryanTile(3268, 3409);
		theWorldMap.walkTo(Fix);
		theWorldMap.walkTo(ThiefSpot2);
		Status2();
	}
 
	public void LocationCheck1() throws InterruptedException {
		getLocation().distanceTo(ThiefSpot1);
		if(getLocation().distanceTo(ThiefSpot1) > 10){
			Status = "Walking Back to Location 1";
			Walk1();
		}else {
			Thief1();
		}
	}
 
	public void Status1() throws InterruptedException {
		CurrentLevel = theTabs.Statistics.getStatBottom(StatisticsTab.STAT_THIEVING);
		Levels = CurrentLevel - BeginLevel;
		if(CurrentLevel >= 5) {
			Status2();
		}else {
			LocationCheck1();
		}
	}
 
	public void Thief1() throws InterruptedException {
		Status = "Pickpocketing Men and Women";
		sleep(random(1000,2000));
		RGB[] colorThief = new RGB[] {new RGB(180, 138, 101), new RGB(190, 146, 107), new RGB(119, 14, 118), new RGB(213, 170, 134)};
		theSimpleRGBCluster.doActionAtRGBCluster(colorThief, "Attack", "Pickpocket");
		Exp = Exp + 8;
		Status1();
	}
 
	public void Walk1() throws InterruptedException {
		Status = "Walking to Location 1";
		theTabs.Options.setRun(true);
		sleep(random(1,1000));
		theWorldMap.walkTo(ThiefSpot1);
		Status1();
	}
 
	public void ErrorEnd(String Error) throws InterruptedException {
		log(Error);
		Status = "ERROR! Read log for more info.";
		stopAllRandoms();
		theTabs.Logout.clickLogOut();
		sleep(random(250,500));
		theTabs.Logout.clickLogOut();
		sleep(1000000000);
		shutDown();
	}
 
	public void paint(Graphics g){
		g.setColor(Color.WHITE);
		g.drawString("ArbiThief v" + version, 4, 40);
		g.setColor(Color.RED);
		long runTime = timeran.timePassed();
		long TotalSecs = runTime / 1000;
		long TotalMins = TotalSecs / 60;
		long TotalHours = TotalMins / 60;
		int seconds = (int) TotalSecs % 60;
		int minutes = (int) TotalMins % 60;
		int hours = (int) TotalHours % 60;
		StringBuilder a = new StringBuilder();
		if (hours < 10)
			a.append('0');
		a.append(hours);
		a.append(':');
		if (minutes < 10)
			a.append('0');
		a.append(minutes);
		a.append(':');
		if (seconds < 10)
			a.append('0');
		a.append(seconds);
		g.drawString(a.toString(), 4, 60);
		g.setColor(Color.WHITE);
		g.drawString("Current Thieving Level: " + CurrentLevel, 4, 80);
		g.drawString("Thieving Levels Gained: " + Levels, 4, 100);
		g.drawString("Thieving Exp Gained: " + Exp, 4, 120);
		g.drawString("Status: " + Status, 4, 140);
	}
 
	public void script() throws InterruptedException {
		while(true){
			BeginLevel = theTabs.Statistics.getStatBottom(StatisticsTab.STAT_THIEVING);
			CurrentLevel = theTabs.Statistics.getStatBottom(StatisticsTab.STAT_THIEVING);
			sleep(random(1,1000));
			theTabs.Inventory.doAction("", "Drop", 28, true);
			Rectangle Move = new Rectangle(50, 50, 250, 250);
			mouseMove(Move);
			sleep(random(1,1000));
			theCompass.setNorth();
			sleep(random(1,1000));
			theCamera.setCameraUp();
			Status1();
		}
	}
}
__________________

Quote:
Roses are red,
Violets are blue,
All of my base are belong to you.

Last edited by Tinytox; 12-03-2007 at 04:45 PM..
The Following 3 Users Say Thank You to Tinytox For This Useful Post:
demon_oreo (12-04-2007), dominic236 (12-06-2007), RSHacker13 (12-04-2007)
  #3  
Old 12-04-2007, 03:06 AM
RSHacker13's Avatar
°ŠķךN°
 
Last Online: 10-27-2008 09:08 PM
Join Date: Jun 2006
Location: .:: Philippines ::.
Age: 15
Posts: 1,785
Thanks: 96
Thanked 451 Times in 209 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 10
RSHacker13 is on a distinguished road
Points: 1,059.30
Bank: 92,178.69
Total Points: 93,237.99
For the efforts i made - Cheers - RSHacker13 
Send a message via MSN to RSHacker13 Send a message via Yahoo to RSHacker13
Thanks for the correction.
The Following User Says Thank You to RSHacker13 For This Useful Post:
demon_oreo (12-04-2007)
  #4  
Old 12-04-2007, 04:06 PM
Tinytox's Avatar
Registered Users +
 
Last Online: 12-02-2008 04:44 PM
Join Date: Jan 2007
Posts: 476
Thanks: 120
Thanked 147 Times in 42 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 0
Tinytox is an unknown quantity at this point
Points: 471.20
Bank: 9,131.41
Total Points: 9,602.61
Happy To help =) ^^ i see you posted a script thread and it looks rather old. it took a few pages but just so u know u can put it in [ code ] tags =P

Note pad ++ was reccomended on the site too btw. i guess its helpfull becauase u can see how many lines - it says its required but obviously its only reccomended because it works on regular notepad...

Notepad ++ makes u add the .java thieng cuz if u dont its just a regular corrupted data basicly... it isnt a file if you dont save it as .java or .txt lol.

i would honestly reccomend it. its nice to have as a replacement to notepad just in general too.
__________________

Quote:
Roses are red,
Violets are blue,
All of my base are belong to you.

Last edited by Tinytox; 12-04-2007 at 04:10 PM..
  #5  
Old 12-05-2007, 01:17 AM
RSHacker13's Avatar
°ŠķךN°
 
Last Online: 10-27-2008 09:08 PM
Join Date: Jun 2006
Location: .:: Philippines ::.
Age: 15
Posts: 1,785
Thanks: 96
Thanked 451 Times in 209 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 10
RSHacker13 is on a distinguished road
Points: 1,059.30
Bank: 92,178.69
Total Points: 93,237.99
For the efforts i made - Cheers - RSHacker13 
Send a message via MSN to RSHacker13 Send a message via Yahoo to RSHacker13
Download notepad ++ here

Click image above to download.

Quote:
im gunna post a thieving one - if RS hacker wants me to remove it i will.
You can post it i don't mind it :P
i won't ask you to remove something if it helps others...
  #6  
Old 12-05-2007, 02:46 AM
megaxx's Avatar
Double Gold Axe
 
Last Online: 11-19-2008 03:19 PM
Join Date: Aug 2007
Posts: 135
Thanks: 13
Thanked 159 Times in 113 Posts
Nominated 2 Times in 2 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 3
megaxx is on a distinguished road
Points: 1,049.70
Bank: 1,547.44
Total Points: 2,597.14
Nice thx. Im still new at making bots XD
__________________
IF I HELPED YOU THANK ME!!
  #7  
Old 12-05-2007, 07:47 PM
Tinytox's Avatar
Registered Users +
 
Last Online: 12-02-2008 04:44 PM
Join Date: Jan 2007
Posts: 476
Thanks: 120
Thanked 147 Times in 42 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 0
Tinytox is an unknown quantity at this point
Points: 471.20
Bank: 9,131.41
Total Points: 9,602.61
Script downloads thread opened by Tinytox - Go here for usefull scripts! : My Thread

Quote:
Originally Posted by RSHacker13 View Post
Download notepad ++ here

Click image above to download.


You can post it i don't mind it :P
i won't ask you to remove something if it helps others...
well, useing the knowledge you have given me do you mind if i make a thread purely of script downloads?
__________________

Quote:
Roses are red,
Violets are blue,
All of my base are belong to you.

Last edited by Tinytox; 12-05-2007 at 08:44 PM.. Reason: added my thread.
  #8  
Old 12-06-2007, 12:47 AM
RSHacker13's Avatar
°ŠķךN°
 
Last Online: 10-27-2008 09:08 PM
Join Date: Jun 2006
Location: .:: Philippines ::.
Age: 15
Posts: 1,785
Thanks: 96
Thanked 451 Times in 209 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 10
RSHacker13 is on a distinguished road
Points: 1,059.30
Bank: 92,178.69
Total Points: 93,237.99
For the efforts i made - Cheers - RSHacker13 
Send a message via MSN to RSHacker13 Send a message via Yahoo to RSHacker13
Quote:
Originally Posted by Tinytox View Post
Script downloads thread opened by Tinytox - Go here for usefull scripts! : My Thread



well, useing the knowledge you have given me do you mind if i make a thread purely of script downloads?
kk do it...
i'll post there too...
just give proper credits.
  #9  
Old 12-06-2007, 01:01 AM
dominic236's Avatar
Emerald Hole
 
Last Online: 10-23-2008 12:36 AM
Join Date: Oct 2007
Location: austraila
Posts: 528
Thanks: 103
Thanked 18 Times in 15 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 4
dominic236 is on a distinguished road
Points: 1,394.85
Bank: 0.00
Total Points: 1,394.85
No Message - dominic236 No Message - dominic236 No Message - dominic236 No Message - dominic236 No Message - dominic236 
Black - dominic236 Brown - dominic236 Burgundy - dominic236 Dark Blue - dominic236 Gold - dominic236 
Gray - dominic236 Green - dominic236 Lavender - dominic236 Dark Blue - dominic236 
this is awsome thanks man
  #10  
Old 12-06-2007, 01:09 AM
RSHacker13's Avatar
°ŠķךN°
 
Last Online: 10-27-2008 09:08 PM
Join Date: Jun 2006
Location: .:: Philippines ::.
Age: 15
Posts: 1,785
Thanks: 96
Thanked 451 Times in 209 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 10
RSHacker13 is on a distinguished road
Points: 1,059.30
Bank: 92,178.69
Total Points: 93,237.99
For the efforts i made - Cheers - RSHacker13 
Send a message via MSN to RSHacker13 Send a message via Yahoo to RSHacker13
Quote:
Originally Posted by dominic236 View Post
this is awsome thanks man
no problem....
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump