Everything posted by Camaro
-
AIO SafeSpotter
I dont see why not, are you having issues?
-
DICING PRIVATE SCRIPT
you're supposed to PM the scripters in the private script section, not make your own post. Try again, maybe you'll have better odds.
-
AIO SafeSpotter
Click that button until it looks just like that.
-
World hopping
new ConditionalSleep(MethodProvider.random(10000, 10000)) { @Override public boolean condition() throws InterruptedException { return CurrentWorld == HoptoWorldfinal; } }.sleep(); that will never work since you never update the values. do this instead new ConditionalSleep(MethodProvider.random(10000, 10000)) { @Override public boolean condition() throws InterruptedException { return script.getWorlds().getCurrentWorld() == HoptoWorldfinal; } }.sleep();
- CLI mirrored mode
-
AIO SafeSpotter
You have to enable human input on the actual osbot client. Then you can draw an area on the screen
-
Replace(Char, char) error
Not sure exactly how that works, but this might Player p = getPlayers().singleFilter(p -> p != null && p.getName().replace(" ", "").equals("namewithoutspaces"))
-
Replace(Char, char) error
Why do you need to take the spaces out in the first place?
-
Replace(Char, char) error
Just realized what youre trying to do Player Name = getPlayers().closest("Example Name"); Name = Name.replace(' ', '_'); Name is a Player instance. Youre trying to call a String function Player player = getPlayers().closest("Example Name"); String name = player.getName().replace(' ', '_'); also forget what I said above, single quotes work fine
-
Replace(Char, char) error
need double quotes Name.replace(" ", "_");
-
AIO SafeSpotter
fix is submitted, will be ready by tomorrow
-
AIO SafeSpotter
Ive used this at hill giants, moss giants, lesser demons, and tzhaar successfully. @omgpros @Lol_marcus I know you two have used this a ton, which locations seemed to work the best?
-
Help with Fishing script
Last thing, you should only sleep if the interact was successful if (FISH.interact("Bait")) { new ConditionalSleep(Script.random(10000, 15000)) { public boolean condition() throws InterruptedException { return !myPlayer().isAnimating(); } }.sleep(); }
-
Help with Fishing script
new ConditionalSleep(Script.random(10000, 15000)) { public boolean condition() throws InterruptedException { return !myPlayer().isAnimating(); <-- take the exclamation point away } }.sleep(); And you should be good!
-
Help with Fishing script
Fishing spots are actually NPCs, try that instead and see if its fixed
-
Does this code make sense/will it work in the long run?
What I put is perfectly fine for someone who is beginning to learn how to do different tasks in the same script. Its the 'state' style. Whats so bad about it for a beginner?
-
AIO SafeSpotter
Interesting, it should walk/run towards them if they arent visible. Maybe its the area you are defining? That area tells the script where to look for safespots AND monsters, so if thy arent in the area it wont attack them. Maybe try without it for now. And make sure the npcs are spelled exactly in the gui, may also be an issue.
-
AIO SafeSpotter
I havent tried it at that location myself, but I dont see why it wouldnt work there. Is it having trouble attacking or finding safespots?
-
Does this code make sense/will it work in the long run?
Pretty sure hes wondering more about how tasks work in general, which your answer fails to do
-
Does this code make sense/will it work in the long run?
I hope you realize I only slightly edited his code so it would actually work
-
AIO SafeSpotter
Are you running in resized or fixed mode
-
Does this code make sense/will it work in the long run?
the 'Task' represent the only task that will be performed throughout the entirety of the script, which is chosen by the dialog that shows at the beginning of the script. Also, they are different tasks. Each function webwalks to a different bank. What are you on about?
-
Does this code make sense/will it work in the long run?
I think something like this is more what you're looking for package core; import javax.swing.JOptionPane; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(name = "Bank Walker", version = 1, author = "Marcus", logo = "", info = "Walks and runs to banks") public class Main extends Script { int task; @Override public void onStart() throws InterruptedException { String userOptions[] = {"Varrock", "Falador", "Edgeville"}; String userChoice = ""+(String)JOptionPane.showInputDialog(null, "Choose a location", "Bank Walker", JOptionPane.PLAIN_MESSAGE, null, userOptions, userOptions[1]); if(userChoice.equals("Varrock")) { task = 1; } else if (userChoice.equals("Falador")) { task = 2; } else if (userChoice.equals("Edgeville")) { task = 3; } else { stop(false); } } @Override public int onLoop() throws InterruptedException { switch (task) { case 1: return taskOne(); case 2: return taskTwo(); case 3: return taskThree(); } return 700; } public int taskOne() throws InterruptedException { if (Banks.GRAND_EXCHANGE.contains(myPosition())) { stop(false); } else { combat.toggleAutoRetaliate(false); getWalking().webWalk(Banks.GRAND_EXCHANGE); } return 700; } public int taskTwo() throws InterruptedException { if (Banks.FALADOR_WEST.contains(myPosition())) { stop(false); } else { combat.toggleAutoRetaliate(false); getWalking().webWalk(Banks.FALADOR_WEST); } return 700; } public int taskThree() throws InterruptedException { if (Banks.EDGEVILLE.contains(myPosition())) { stop(false); } else { combat.toggleAutoRetaliate(false); getWalking().webWalk(Banks.EDGEVILLE); } return 700; } }
-
AIO SafeSpotter
I've though about adding something like that, but either way, what you're experiencing is a problem and shouldn't be happening. Does it occur when the bot attacks something, the monster reverses, and bot bot tries to go after it still? Its the only way I could see that happening?
-
NEVER BUY FROM ARCUSGOLD . LIVE
Arcus doesnt exist anymore. You were scammed.