Jump to content

PlagueDoctor

Members
  • Posts

    197
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by PlagueDoctor

  1. Post the CLI code? Just to confirm you're doing it correctly ( might aswell ).
  2. I guess its worthwhile to have this post here. If someone else has this problem and doesn't think to restart.. well now they know haha.
  3. Restarting computer solved the issue. lul
  4. Lmao i couldnt even to get it to work with OSBuddy, it wouldnt recognize it.
  5. Same issue when starting from CLI and not. Just gets stuck like this after i add a bot.
  6. ye, there are a lot of possible errors, its faaaaaaaaar from perfect. Still though, might be useful to someone. Changing z coord would probs work better in this situation for sure
  7. Here's some code i cooked up real quick to run a certain distance away from my current position and hopefully escape combat. Thought i'd post it in case someone eventually finds it useful. case COMBAT: if(getStore().isOpen()) { status = "Closing store."; getStore().close(); new ConditionalSleep(10000) { @[member='Override'] public boolean condition() throws InterruptedException { return !getStore().isOpen(); } }.sleep(); } if(getBank().isOpen()) { status = "Opening bank."; getBank().close(); new ConditionalSleep(10000) { @[member='Override'] public boolean condition() throws InterruptedException { return !bank.isOpen(); } }.sleep(); } int getX = myPosition().getX(); int getY = myPosition().getY(); int getZ = myPosition().getZ(); Position newPos = new Position(getX + 30, getY + 30, getZ); getWalking().webWalk(newPos); break; Might have to do some funky stuff with the getZ value if you want it to run away up/down stairs, not sure. EDIT: Will cause issues if script attempts to walk to a non walkable area.
  8. You can write it like this - private String items[] = new String[] {"item1", "item2", "item3", }; private State getState() { if(getStore().isOpen()) { if(getStore().getAmount(items) <= 0) { return State.HOP; } } if(inventory.isFull()) { return State.BANK; } return State.SHOP; } Inside the bank script you could put an if statement ascertain whether or not your character is at the bank, such as case BANK: if(whateverbank.contains(myPlayer())) { check if bank is open, deposit stuff etc.. } else { walk to bank }
  9. Overwatch, slitting wrists, league of legends, suicide, dota etc ya know
  10. Also as a last piece of advice, look up conditional sleeps. Rather than having a random sleep time say, after you interact with the iron, you could use a conditional sleep so it sleeps until your player is interacting with the rock. In combination with this you would also want to include somewhere in the script that if your player is already interacting, the script shouldn't do anything.. I'll let you sort that out yourself if you decide to. The conditional sleep can be written like so.. iron.interact(); new ConditionalSleep(10000) { // 10000 is the time it sleeps before it tries to interact again if you're still not. @[member='Override'] public boolean condition() throws InterruptedException { return myPlayer().getInteracting(); // The condition you want to check, this line means.. my player is interacting. } }.sleep();
  11. Its because you've defined entities before the script has started Entity iron = objects.closest(7488, 7455); Entity tin = objects.closest(7486, 7485); define these somewhere else, like in your mine tin & iron cases. EDIT, didnt notice the bank booth object. Feel free to ignore this as its your script, but you don't actually need to define a bank booth entity. If a bank is in range, all you have to write is: bank.open(); or getBank().open(); You can use these instead of your "bankbooth.interact();" stuff. And for checking if bank is null can be done like so: if(getBank() != null) { // do stuff } Hope you don't mind me commenting on stuff about your script, feel free to ignore me. Do you want more advice or?
  12. I cannot stress enough how fucking AMAZING it was to have this written out while i was writing my muling code.. made it so much easier.
  13. Hi looking for someone to do full firecape service for me, only respond if you have 50+ positive feedback please! Thank you. PS. I don't use skype, but i'm happy to go first if the person seems trustworthy. Gear Setup - Inventory Setup - Please comment below AND send me a pm if you're interested.
  14. Vilius answered your question really well, but as a side note, you might want to have a look into condition sleeping. It can be very useful. For instance, say you want to drop everything except for a certain ore, you could write: if(inventory.isFull()) { inventory.dropAllExcept(2958); new ConditionalSleep(10000) { @[member=Override] public boolean condition() throws InterruptedException { return inventory.onlyContains(2958); } }.sleep(); } This would, if your inventory is full, drop everything except for item ID 2958, and sleep until your inventory only contains item ID 2958. If after 10000 ms your inventory still does not only contain 2958 (if the script failed to drop something for some reason), it will repeat, trying to drop everything and sleeping until the condition of "inventory.onlyContains(2958)" is met.
  15. @Tom just roleplay a car and run him over.
  16. Why is my code outputting this? Recently switched from eclipse to intelliJ, it was fine before i switched, haven't changed anything.. how do i fix it? Heres the code.
×
×
  • Create New...