Everything posted by Cyro
-
Pandemic's Scripting Series: Part II - Path Walking and Simple Banking [UPDATED FOR OSBOT 2]
Yeah you're right but they are in the process of learning and they should get use to using tools.They will be dealing with more confusing stuff while they are scripting. You could add it as an alternative, up to you anyway private void traversePath(Position[] path, boolean reversed) throws InterruptedException { if (!reversed) { for (int i = 1; i < path.length; i++) if (!walkTile(path)) i--; } else { for (int i = path.length-2; i > 0; i--) if (!walkTile(path)) i--;//<-- was referring to this one it goes to the next tile when it fails to walk the current one } }
-
Pandemic's Scripting Series: Part II - Path Walking and Simple Banking [UPDATED FOR OSBOT 2]
nice tutorial, i like how simple it is and would help out people who are new to scripting tho you have explained how to create a path instead of using notepad and recoding the tile you are on you could show them how to use a path maker it saves time, good for long as paths and less confusing in your traversePath() the reversed part shouldn't i be increasing
-
Another Question for the pros?
they dont offer java lessons afaik. JavaScript is diffferent than Java but those are good places to learn Java http://docs.oracle.com/javase/tutorial/java/ http://www.tutorialspoint.com/java/ Also YouTube videos can help you search: Java basics/beginner tutorials once you get the basics of Java the rest will be easy just need a bit of logic and research to solve some problems also you always post your issues here
-
How to use a Proxy to connect with OSRS [Pictures for the ]
My school did too But you can still run a batch file
-
Paul Walker died :(
Idk but if it true
-
need help
You dont need to put anything there
-
DunkPathMaker - Create your paths with ease!
Can you give me an example of a proper area variable? Area(int x1, int y1, int x2, int y2) The boundaries to initialize this area with. )]Area(java.awt.Point[] locations) The locations to initialize this area with. )]Area(Position[] positions) The Position objects to initialize this area with. from the osbot api Thanks for the example. private final Area area = new Area(new Position[] { new Position(3167, 3382, 0), new Position(3281, 3354, 0), new Position(3264, 3509, 0), new Position(3162, 3506, 0) }); For rectangular areas,final Area area = new Area(x1,y1,x2,y2); Unfortunately pure rectangular areas are not supported. They should be made with 4 separate tiles. I'm not sure if osbot supports other than rectangular areasIm pretty sure they do And also there is Area(position[] positions) in the api So thats for polygonal areas
-
Help With this?
i dont do JavaScript, but from what i know i would guess that #log() is a void or another type of method just like println() in Java and that should be ... console.log(myCountry.length); console.log(myCountry.substring(0,3)); ...
- DunkPathMaker - Create your paths with ease!
- DunkPathMaker - Create your paths with ease!
-
Announcing QScriptGenerator
Nice good luck with it I was working on a similar one (only entities part was finished) so it was not completed didn't have time for it A script generator would be interesting to see .
-
ID please, can't find
ents are npcs that have the same name as the tree and with a yellow color name rather than the normal blue check if that npc that has the same name as the tree exists and is near the tree
-
Lunar Spells Enum
well it was just a tip idc really and that wasnt the cause at one of the forums i posted a similar code contains enum and some things were off like conventions of the enum instances and people were annoying due to that
-
Lunar Spells Enum
how so? Looks good. You could try adding in an id value as first argument so the enum can be easily used in combination with a comboBox. why isn't the name better? the users wont know what the id mean or did i misunderstood you? Yes, you misunderstood him. Theese ID's he's talking about, is the ID's from the ComboBoxes from the Swing class (for generating GUI's). I can't explain this much further, but I hope I helped. You can still have the name. enum Spells { HOMETELEPORT("Lunar Home Teleport", 0, 0, 16), BAKEPIE("Bake Pie", 1, 65, 15), CUREPLANT("Cure Plant", 2, 66, 31); private final String name; private final int comboBoxPos; private final int level; private final int childid; Spells(String name, int comboBoxPos, int level, int childid) { this.name = name; this.combo = comboBoxPos; this.level = level; this.childid = childid; } public String getName() { return name; } public int getLevel() { return level; } public int getChild() { return childid; } public int getParent() { return 430; } } Something like that if I remember correct . PS. Enums are written in case-letters . (I don't know the right word here..) idk they way i do it is add the enum instances as items of the combobox JComboBox<Spells> combo = new JComboBox<Spells>(Spells.values()); and also there is Spells#BAKEPIE#ordinal(); which returns 1 (the position of the constant in the enum)
-
Lunar Spells Enum
good work looks nice tho enum instances should be uppercase and separated by "_" underscore as they are static final anyway you should override toString() to return the name rather than the instance name for those who will use this with ComboBox how so? Looks good. You could try adding in an id value as first argument so the enum can be easily used in combination with a comboBox. why isn't the name better? the users wont know what the id mean or did i misunderstood you?
-
Can I make a bot?
There is no possible way you can make a bot Wrong. Do you know how hard it is to make a bot? The coding required to make OSBot is insane. If he has no prior knowledge of coding, it will take him years to make a bot. Timer from No advertising was 15 when he was working on the No advertising client. It will not take anyone years to make a bot. Trust me.He started when he was 13 I thinkand its not that hard to make a bot might be long tho
-
Open Source Slayer
It's the easiest way to do something like this. If you are here to criticize then don't help. Can't you do the same thing with an enum which holds all the monsters data
-
Conditional Sleeps
I think he's extending the conditionSleep from the api
- Ent Ids
-
How old are you be honest no one can see what you voted.
16
- What Phone Do You Have?
-
API for opening tabs & starting scripts?
i believe start, stop, current script exists or at least it did back in 1.2 not sure about now i think it's still there or might be hidden or something
- Pets?
-
Request: Script Source
I'm extremely new to Java, a quick little guide/run through would be nice but I'll defiantly check that out and see if it's a simple process to do without assistance. Are there any other similar/alternative programs to JD-Gui? Can eclipse do this somehow? Or how would I look at the source of class files, just open them in Eclipse somehow? Thank you. JD gui is really easy to use just open it then load the jar file by either dragging jar to it or the usual open option
- BETA v1.7.35