-
Posts
687 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
100%
Everything posted by Camaro
-
Does this code make sense/will it work in the long run?
Camaro replied to Lol_marcus's topic in Scripting Help
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?
Camaro replied to Lol_marcus's topic in Scripting Help
I hope you realize I only slightly edited his code so it would actually work -
Are you running in resized or fixed mode
-
Does this code make sense/will it work in the long run?
Camaro replied to Lol_marcus's topic in Scripting Help
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?
Camaro replied to Lol_marcus's topic in Scripting Help
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; } } -
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?
-
Arcus doesnt exist anymore. You were scammed.
-
Pretty sure I have members worlds in the world selector, let me know if not and ill enable
-
Does this equal the # of positions that an NPC takes up?
-
gate.getDefinition().getActions() returns a list of all possible actions that the gate could have. It is not directly related to the instance and what it actually has. use gate.hasAction("Close")
-
Thats because when you telegrab wines, your magic level goes down by 2 or 3 points. When your magic level is below 33, you can no longer telegrab. When you can no longer telegrab, it banks so it can get more wizard mind bombs. Im assuming you set it to take no mind bombs?
-
When you create an account on one ip and then log in for the first time through another, the account will get locked.
-
@D Bolter has the best proxies from my experience
-
@omgpros @Lol_marcus Alching is now available! So I've added a concept of 'modifiers' to the loot list. To tell the bot to alch certain loot, just add ';alch' to the end of the loot name. So for example, 'black sq shield;alch' As long as you have nature runes and any type of fire staff/runes in the inventory, it will alch those items.
-
Replicating Human Playstyle and the future of OSBot.
Camaro replied to z10n's topic in Botting & Bans
Its on the scripter to make sure the bot doesnt repeat the same actions over and over again. Theres nothing the client itself can do about it. -
The conditional sleep isnt necessary for getBank().open() as the method already does that internally. getBank().open() will only return true if the bank was successfully opened (or already open), so there is actually nothing to wait for. If an interact() on a bank entity was performed, then it would be necessary to sleep until the bank is open.
-
https://www.osrsbox.com/
-
Use to official rs client, not osbuddy
-
Yes, 50% is the threshold I set. I can add a textbox to change that if you want
-
Bone burying should be active now! Alching will be next.
-
You could set up a mouse event listener that serializes mouse events and the time they were performed into json format. Then when you want to play them back, deserialize and generate the mouse events. https://osbot.org/api/org/osbot/rs07/input/mouse/BotMouseListener.html https://osbot.org/api/org/osbot/rs07/input/mouse/ClientMouseEventHandler.html
-
Hmm the distance filter is an interesting idea actually. It would require some changes with how it works, but its definitely possible. And the bury and alch options are necessary features, I agree, I will start working on those very soon. I dont think it will work like that. It would still choose other safespots that arent prioritised often enough that it wouldnt be worth it. And even if it attacked wyverns in the area, they would still walk over to your character and no longer be the required distance.