Everything posted by TheScrub
-
Top Underrated Rappers out right now!
pharoahe monch http://www.youtube.com/watch?v=gOGG0TPzApw blueprint more hip hop chill bump http://www.youtube.com/watch?v=SMWspBc_c1M logic http://www.youtube.com/watch?v=LZMt3Vd49bA g eazy justice -Australian winner of scribble jam 2005 SOL E-Dubble alot more aussie hip hop not going 2 list 2 many funkoars http://www.youtube.com/watch?v=IYpcfEaMQTU (this is how hip hop is meant to sound ) Hilltop hoods (fucking repping the city of churchs) One sixth - edit can't believe i forgot !!! Horrowshow tayyib ali hendersin eddy b huey mack http://www.youtube.com/watch?v=qaGL8ypKAlk luvi http://www.youtube.com/watch?v=TZiC8UHyCcM mase n mattic http://www.youtube.com/watch?v=onQHA6Hy20Q
-
2 new av's
Thank you will give good feedback
-
GetFirstBankItem
this method is useful for stuff like withdrawing ring of duelings so u can have an array of strings and it will search the bank and find the first one if not it will find the second third fourth fifth etc... or potions private String getBankItem(String items[]) { String item; if (client.getBank().isOpen()) { Item[] bankitems = client.getBank().getItems(); if (items.length > 0 && items != null) { for (String correctItem : items) { for (int i = 0; i < bankitems.length; i++) { if (bankitems[i].getName().contains(correctItem)) { item = correctItem; return item; } } } } } return null; }
-
Request: Script Source
and also this is the snippet section some one please move to this to another section of the forums!
-
Request: Script Source
link to an open source work of my mine http://osbot.org/forum/topic/12097-rfd-bank-soft-clay-open-source/
-
started from .......
centrelink is the Australian welfare (student payments)
-
started from .......
yer it's a shit song ur right not into that thats pop not hip hop but im happy with the purchase music i like http://www.youtube.com/watch?v=SMWspBc_c1M aus hip hop much more from triple j unearthed etc
-
started from .......
a lenovo g570 to a lenovo b590! the g570 http://www.notebookreview.com/default.asp?newsID=6190&review=lenovo+g570 b590 http://www.notebookcheck.net/Review-Lenovo-B590-MBX2JGE-Notebook.88518.0.html this was not earnt from gold farming this was earnt from saving me centrelink payments!
-
AIO Tab Maker
v tabs yday 600 ea nice one lol inb4 i release my tab maker
-
Polygon Area (not finished yet!)
thanks i just wrote it for a single thing only used it once or twice thanks i will update the thread with ur revision of the code!
-
Polygon Area (not finished yet!)
so i'm making a script with a combat location in an odd shapped room and a rectangle won't work so i deiced to make a little class to for a polygon area -edit was rewritten by guy below me. import java.awt.Polygon; import org.osbot.script.rs2.map.Position; import org.osbot.script.rs2.model.Entity; public class PolygonArea { Polygon polygon; PolygonArea(Position... positions) { polygon = new Polygon(); addPositions(positions); } public boolean containsEntity(Entity e) { return polygon.contains(e.getX(), e.getY()); } public static void addPositions(Position... positions) { for (Position pos : positions) { polygon.addPoint(pos.getX(), pos.getY()); } } } How to use PolygonArea polygonArea = new PolygonArea(positionsArray); Check for entities in the area with this (NPC, Player, GroundItems, etc): if (polygonArea.containsEntity(entity)) { //do method } i still need to make a method to return the center of the polygon but i will touch on that later
-
Returning a rectangle from the mouse cords
whoops basic math error lol thanks for the pickup!
-
Reading Script Settings/Presets
yer i have that on mine didn't update not many people post on my snippets will update in 2 mins
-
Returning a rectangle from the mouse cords
this is useful for a mouse destination it's so you don't have to do maths because some people are bad at math /* * @param minX this is the top left hand corner of the rectangle * @param minY this is the top left hand corner of the rectangle * @param maxX this is the bottom right hand corner of the rectangle * @param maxY this is the bottom right hand corner of the rectangle */ private Rectangle returnRectangle(int minX, int minY, int maxX, int maxY){ int height = maxY-minY; int width = maxX-minX; Rectangle r = new Rectangle(minX, minY, width, height); return r; } use: MouseDestination md = new RectangleDestination(returnRectangle(20,30,40,50)); this will do the math for the height and width..... so the width and height in this example would return: width:20 height:20
-
Selling Bones To Peaches
only like 700 left but i can make them if you want contact me though pm!
-
Banned for a year?....
1 day the offensive expires in one year but you get unbanned in 1 day i'm pretty sure if you get a bot busting ban then another ban it's a perm ban not too sure though!
-
Selling Bones To Peaches
Hello i'm selling b2p tabs min buy is like 250 but i'm willing to sell below market price message me or post on the topic B2P uses include: Ankous Barrows tunnels killers and most other combat scripts!
-
Special Attack Weapons
upgrading this to a full working api class by the end of the week,
-
Special Attack Weapons
lol so true haha you know it!
-
Special Attack Weapons
Still needs more Weapons please post the infomation in this order "Name",Item ID,SpecPercent (the spec percent it uses)
-
Special Attack Weapons
import org.osbot.script.Script; public class Spec_Attacks { Script script = Context.script; enum SpecWeapon { DragonDagger("Dragon dagger", 1215, 25), DragonScim("Dragon scimitar", 4587, 55), Whip("Abyssal whip", 4151, 50), Magic_Shortbow( "Magic shortbow", 861, 55), DragonDaggerP("Dragon dagger(p)", 1231, 25), DragonBattleaxe("Dragon battleaxe", 1377, 100); private final int id; private final int specpercent; private final String name; SpecWeapon(String name, int id, int specpercent) { this.name = name; this.id = id; this.specpercent = specpercent; } public String getName() { return name; } public int getId() { return id; } public int getSpecPercent() { return specpercent; } } public static int possibleSpecsForSpecBar(SpecWeapon Spec) { int remanningspec = Context.script.combat.getSpecialPercentage(); double d = remanningspec / Spec.getSpecPercent(); long l = Math.round(d); String s = String.valueOf(l); int specsforafullbar = Integer.parseInt(s); return specsforafullbar; } public static void SwitchWeaponTo(String name, Integer timeout) throws InterruptedException { String g[] = { "Wear", "Wield" }; long t = System.currentTimeMillis(); if (!Context.script.equipmentTab.isWieldingWeapon(name)) { for (String option : g) { Context.script.client.getInventory().interactWithName(name, option); } while (!Context.script.equipmentTab.isWieldingWeapon(name) && System.currentTimeMillis() - t < timeout) { Context.script.sleep(50); } } } } import org.osbot.script.Script; public class Context extends Script { public static Script script; } use in your script you will need to do this i'm using the context class as i got several class's that use api methods so it's easier. @Override public void onStart() { Context.script=this; } the first parameter is the name of the weapon or could have an Armour wouldn't matter and the 2nd parameter is for the dynamic sleep type thing in the spec attacks class i like 3000ms before it will retry if (Spec_Attacks.possibleSpecsForSpecBar(SpecWeapon.DragonDagger)>0){ Spec_Attacks.SwitchWeaponTo(SpecWeapon.DragonDagger.getName(), 3000); }
-
Selling house tabs
1k ea under 5k 5k+ 900-950 (depending on current prices) can't go lower sorry!
-
Selling house tabs
pm me for price Current stock:22k~ Bulk is discounted obviously!
-
Barrows the minigame!
Are you using a setting to determine which barrows brother is the tunnel?
-
learning java
Persian dick as always Peter: If you want to start scripting and learn some java i will link you to some of the basics: Java Keywords: http://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html Wikipedia is best for the keywords as it gives a definition: http://en.wikipedia.org/wiki/List_of_Java_keywords Java parentheses: http://beginwithjava.blogspot.com.au/2008/07/parens-and-brackets-and-braces-oh-my.html explains the brackets you speak of.. Osbot API: www.osbot.org/api What is an API? http://en.wikipedia.org/wiki/Application_programming_interface Usefully java class's for scripting: http://docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html http://docs.oracle.com/javase/7/docs/api/java/lang/System.html Important for GUI'S! (User friendly is apart of scripting whether you like it or not) http://www.eclipse.org/windowbuilder/ And of course their is the osbot snippet section http://osbot.org/forum/forum/156-snippets/