Everything posted by Hayase
-
Script help [This script will remain Open Source for others to learn]
Maybe this will help? http://stackoverflow.com/questions/22619262/upgrade-eclipse-to-java-8?noredirect=1&lq=1 If you don't have Java 8, get it here http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
-
Script help [This script will remain Open Source for others to learn]
You are using Java 8 right? The one liner is just using Java 8 streams. Are you using an IDE?
-
Script help [This script will remain Open Source for others to learn]
Something to note about your mule bit is that you are using Entity and grabbing the player as if it were an NPC. If you want to follow the standards you can just use the Player class like so: //The replaceAll method will let you use names with spaces in them. Jagex does not use normal spaces. Player mule = getPlayers().closest(o -> o.getName().replaceAll("\\u00a0", " ").equalsIgnoreCase(/*Mule Username*/)); //do null checks on mule and other things to see if the mule is in range to trade //Change "Trade" to "Trade with" if (mule.interact("Trade with")) { log("Waiting for other player to accept trade"); new ConditionalSleep(5000) { @[member=Override] public boolean condition() throws InterruptedException { return trade.isFirstInterfaceOpen(); } }.sleep(); }
-
price check 70 woodcutting acocunts
100k for 70 wc maybe 200k for 80 wc
-
Buying 1 def accounts with level 50-70 ranged
I don't have 100 posts yet but if you are interested I've got this acc All f2p nothing special
- Obby maul PC?
-
Running 2 Bots= Laggy
Like another poster said there is not enough default memory to run two tabs in the client. You have to tell the client to use more. In the same directory as your osbot jar make a bat file @echo off title WTF 2 TABZ java -jar "osbot 2.4.107.jar" -mem 2048 pause If it says that java cannot be found or is not a command, you'll have to change it to the full path to java "C:\Program Files\Java\jre1.8.0_111\bin\java.exe" -jar ...
-
FLEXTREK WHOPSNEK
- Mio's Graphic Services \\ [Paypal Only]
Sexy af. Can you make a signature for storing WC information?- 7+ accounts banned SDMM
You got banned because you didn't buy VIP- incrementing issue
Coming back to this issue I have a better idea if you want to try it. Instead of taking count of the bones directly what about counting the empty spaces you have in your inventory and once you hit 0 you bury bones/bank and then restart? //Somewhere up at the top of your script or wherever you are keeping track of your bone count: int totalBones = 0; case LOOTING_BONES: if (!myPlayer().isAnimating()) { GroundItem bone = groundItems.closest("bones"); if (bone != null) { int currentFreeSpace = inventory.getEmptySlotCount(); bone.interact("Take"); /* * If you use conditional sleeps it will work more efficiently than static sleeping sleep(random(900)); */ new ConditionalSleep(900) { @[member='Override'] public boolean condition() throws InterruptedException { /* * If our empty slot count is less than before--we must have picked up that bone */ if (inventory.getEmptySlotCount() < currentFreeSpace) { //Increase the bone count totalBones++; return true; } return false; } }.sleep(); } } break;- incrementing issue
Or just use conditional sleeps: int currentBonerCount = inventory.getItem("Bones").getAmount(); pickUpBone(); new ConditionalSleep(2_000) { @[member='Override'] public boolean condition() throws InterruptedException { return inventory.getItem("Bones").getAmount() > currentBonerCount; } }.sleep();- Help add on or organize? Anything to make this better?
http://osbot.org/forum/topic/88389-mining-rocks-with-ore-no-ids/- Help add on or organize? Anything to make this better?
case STEAL: RS2Object stall = getObjects().closest("Tea Stall"); if(stall != null) { if(stall.hasAction("Steal-from") && stall.interact("Steal-from")) { return random(1900, 2500); } } break; Use conditional sleeps so you don't have to worry about sleeping for too little or too long. It's a good idea to get used to using conditional sleeps now for later down the road if you decide to make other scripts that involve interacting with NPCs/objects. case STEAL: RS2Object stall = getObjects().closest("Tea Stall"); if(stall != null) { if(stall.hasAction("Steal-from") && stall.interact("Steal-from")) { new ConditionalSleep(3_000) { @[member='Override'] public boolean condition() throws InterruptedException { return myPlayer().isAnimating(); } }.sleep(); } } break;- Juggles AIO Fisher
- Perfect Miner AIO
Can I have a trial please?- Script Errors Whilst Using VPS - Fine Locally Hosted?
RIP. I don't know what to tell you bud- Script Errors Whilst Using VPS - Fine Locally Hosted?
Actually yeah. In linux case actually matters. Try making it lowercase and see if that fixes it?- Script Errors Whilst Using VPS - Fine Locally Hosted?
go to the directory with gui.txt and change permissions on it. Do chmod 777 gui.txt- NMZ Power Ups
If you use entity hover debug in the client what do you see about the object and it's id? Perhaps instead of calling it by the string name you can call it by the id instead?- Having issues with my damn fisher, I dont know wtf is wrong@!
I changed my mind. public boolean validate() throws InterruptedException{ //// Checking if inventory is full, and if so, is our player in the bank or not return sA.inventory.isFull() && !data.EBank.contains(sA.players.myPosition()) && (banker !=null && !banker.isOnScreen()); } Does this work like your Bank node?- Having issues with my damn fisher, I dont know wtf is wrong@!
Am tired public boolean validate() throws InterruptedException{ //// Checking if inventory is full, and if so, is our player in the bank or not return sA.inventory.isFull() && !data.EBank.contains(sA.players.myPosition()) && (banker !=null && !banker.isOnScreen()); }- NMZ Power Ups
That means the object is still null. You need to keep looking for the object by either walking around or something to try and find those objects.- Having issues with my damn fisher, I dont know wtf is wrong@!
You say you lag out as soon as you get a full inventory. Maybe you are getting a nullpointer? NPC banker = sA.npcs.closest(395); Try and test if (banker != null) before trying to use banker in your validate() && !banker.isOnScreen();- Unable to detect an incoming trade
Very elegant documentation it was a pleasure to read - Mio's Graphic Services \\ [Paypal Only]