Jump to content

Camaro

Scripter II
  • Posts

    690
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by Camaro

  1. 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?
  2. 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.
  3. 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?
  4. Pretty sure hes wondering more about how tasks work in general, which your answer fails to do
  5. I hope you realize I only slightly edited his code so it would actually work
  6. Are you running in resized or fixed mode
  7. 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?
  8. 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; } }
  9. 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?
  10. Arcus doesnt exist anymore. You were scammed.
  11. Pretty sure I have members worlds in the world selector, let me know if not and ill enable
  12. Does this equal the # of positions that an NPC takes up?
  13. 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")
  14. say the wine is on position(x, y, z) hover over position(x, y + 1, z) and why did you post this in the market section lol
  15. 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?
  16. When you create an account on one ip and then log in for the first time through another, the account will get locked.
  17. @D Bolter has the best proxies from my experience
  18. @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.
  19. 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.
  20. 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.
  21. As long as I use mirror mode, I can bot tut island without a problem it seems. If I bot tut island with injection, I get banned within an hour
  22. Use to official rs client, not osbuddy
  23. Yes, 50% is the threshold I set. I can add a textbox to change that if you want
×
×
  • Create New...