Everything posted by Isolate
-
Default mouse speed
The effort is real 6
-
Default mouse speed
mouse.setSpeed(x); whats the default speed since i only want to increase it a bit
-
Need a tile/icon for a script
oh i had noticed when he updated it sorry :P
-
Herb identifier!
http://osbot.org/forum/topic/56928-herbifier/
-
Need a tile/icon for a script
I assumed you were asking if i had fixed my failure. in my drop method instead of looking for all items not containing "pick" i filtered for items only containing "pick" and if "pick" isnt in inventory script stops so i start it, mines 1 ore, drops pickaxe, logs out. cried.
- Help Please
-
Help Please
Do you mean they move ( ;) )
-
Need a tile/icon for a script
drop method was filtering for items ONLY containing pick, silly little exclamation marks.
-
Need a tile/icon for a script
It's beautiful :P but its called Dark Miner :3
-
Need a tile/icon for a script
Apparently for a SDN script it requires a 180x180 tile icon. If anyone could help me out with one for my mining script that would be great
-
Moveable paint help
I swear thats what i gave a snippet of (although it was 1am and i might have missed something)
-
NMZ Host/Giant Dwarf
is this all a melee nmz host requires?
-
Entity cannot be resolved into a class.
to not: Void Public void myVoid(){ //Do something here and return nothing, just do whats coded } String public String myString(){ //code to figure out what string to return } //eg. public String getName(Item item){ if(item != null){ return item.getName(); } } //which would be called like Item banana = blah blah blah; String bananaName = getName(banana); int public int randomInt(int low, int high){ Random random = new Random(); return random.nextInt((high - low) + 1) + low; } //which if used like int i = randomInt(1,10); //would generate a random number between 1 and 10 inclusive. boolean public boolean isAnimating(){ return myPlayer.getAnimation() != -1; } //which would return true if you're doing anything but walking/standing still doing things like this are a good way of getting what you want but giving you the ability to incorporate alot of factors of your own what is red lined? it might just be telling you its an unused import since you called it as an entity, just remove the import line for it and see if its fixed
-
Entity cannot be resolved into a class.
at the bottom you before the last bracket you need to add something like return random(lowInt, Highint); //eg return random(250,500); because its an int it needs to return an int in the end and in this case thats the sleep before the script polls again
-
why i cant create account.
did you say you were underage?
-
Entity cannot be resolved into a class.
Did you use the wrong import :') Entity i = objects.closest("lol"); gives no errors to me using the osbot entity import. Oh the picture you posted on the other thread shows that you didnt import entity... plz sir put this at the top: import org.osbot.rs07.api.model.Entity; and remove any other import with the word entity in it.
-
A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec
I was going to add something then realized i'd never even thought about why it colors it that way. I did edit it from a question though, it would have mode more sense for me to leave original post then edit in under it what i changed it to Blue appears to be when it's anything callable. Red/pink is the color of strings. green appears to be initializing words. and yellow seems to be @'s and numbers
-
Moveable paint help
click and drag? or just click and assumed magic? Is this test also including my double edit or only the first edit hmmmm hb: boolean dragging = false; Rectangle paintArea = null; @Override public void onPaint(Graphics2D g) { if(paintArea == null){ paintArea = new Rectangle(x, y, mainPaint.getWidth(null), mainPaint.getHeight(null)); }else{ if(dragging){ paintArea.x = mouse.getPosition().x; paintArea.y = mouse.getPosition().y; } } } @Override public void mousePressed(MouseEvent e) { if(painArea != null){ if(paintArea.contains(e.getPoint()){ dragging = true; } } } @Override public void mouseReleased(MouseEvent e) { if(dragging){ dragging = false; } } Code is starting to look overcomplicated though
-
A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec
edit: assuming you mean the way that the forum displays pasted code
-
Moveable paint help
What is this supposed to do sorry EDIT: EDIT EDIT: fixed some things You mean something like this?: boolean dragging = false; Rectangle paintArea; @Override public void onPaint(Graphics2D g) { int x = 0; //set to where you want it to start off int y = 0; //set to where you want it to start off if(dragging){ x = mouse.getPosition().x; y = mouse.getPosition().y; } paintArea = new Rectangle(x, y, mainPaint.getWidth(null), mainPaint.getHeight(null)); } @Override public void mousePressed(MouseEvent e) { if(painArea != null){ if(paintArea.contains(e.getPoint()){ dragging = true; } } } @Override public void mouseReleased(MouseEvent e) { if(painArea != null && dragging){ dragging = true; } }
-
Taking any request
And in the end i did. just for you.
-
Code not listening to meh.
- GG Woodcutter
It does appear to help. Keeping up a regular player appearance then randomly suicide botting an alloted time works fine for me. Just dont start then grind instantly, atleast try make yourself seem real- Varrock South-West Clay Miner w/Banking
Any error messages? Where are you starting? Do you have a pick?- Code not listening to meh.
I use conventions in class and sometimes i brush over a script and put them all in place i need to post but if everything runs well i wont bother, its just another thing to take up time. as stated the problem has been found. yes in my code there are other checks around the bit i posted but the whole time the walk method starts walking to the point it spams the spot, when it gets there the script continues as should its just that the osbot api has no check for if moving in its walking function that seems to be in play causing any check i do for walking to be nulled - GG Woodcutter