Jump to content

Joseph

Trade With Caution
  • Posts

    4692
  • Joined

  • Last visited

  • Feedback

    91.3%

Everything posted by Joseph

  1. how do you print shit, from a file . Very interesting i would create my own file lol print out a new pair of shoes
  2. thats crazy i like the sword and elephant. What are those object made out of? and you cant print with color?
  3. Joseph

    contain util

    public boolean containsAll(boolean inv, String...items) { //boolean true = inventory, false = bank for (String item: items) { if (inv ? !inventory.contains(item): !bank.contains(item)) { return false; } } return true; } its a great util im always using
  4. because walking event is a event. for you to execute that event you need the eventExecutor. bot#getEventExectuor.execute(EVENT);
  5. make sure to use the EventExecutor that can be found in the bot class
  6. idk about you guys ive been off of school for like a week already. All my prof gave me an option finish early or........... we all choose early fuck that ive been party since bout a week ago
  7. i hate you -.- i will be first one of these days edit: ALEK!!!!!!! please add in a convertObjects(list<object>) into your util class, -.- that hit would of saved me so much time lol
  8. for your condition make it sleep until the entity is visible
  9. if i have a class extend method provider should i use initializeContext or exchangeContext in the constructor?
  10. naw laz changed it after osb 2
  11. Joseph

    Bank array

    that's exactly what i was thinking but fuck it
  12. if i can recall it was 2 free tabs for free users
  13. The better explaination Alek gets. the faster he could fix these problem.
  14. Joseph

    Bank array

    Come on nub@Alek please add in the polygon area array in the Banks class. this is what you made me do. Current work around: public PolygonArea[] webBanks() { List<PolygonArea> banks = new ArrayList<PolygonArea>(); Collections.addAll(banks, Banks.AL_KHARID, Banks.ARDOUGNE_NORTH, Banks.CAMELOT, Banks.CATHERBY, Banks.DRAYNOR, Banks.EDGEVILLE, Banks.FALADOR_EAST, Banks.FALADOR_WEST, Banks.LUMBRIDGE_LOWER, Banks.LUMBRIDGE_UPPER, Banks.VARROCK_EAST, Banks.VARROCK_WEST, Banks.YANILLE); return banks.toArray(new PolygonArea[banks.size()]); }
  15. @Alek since Banks is a class that has static polygonsArea. Can you make a static method that returns all the polygons in banks. So it will be easier for the scripters to cycle through the different banks with out manually creating an array of polygonsArea like i had to do. Unless you want to add in my method. i dont mind.
  16. good shit alek, you should get on the chat i want to ask you something.
  17. @Alek can you teach us how to use polygonArea
  18. Joseph

    Mouse Handler

    Concept http://osbot.org/forum/topic/63464-anitban-system-concept/ import java.util.Random; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.input.mouse.EntityDestination; import org.osbot.rs07.script.MethodProvider; import org.osbot.rs07.script.Script; import org.osbot.rs07.utility.Condition; import org.osbot.rs07.utility.ConditionalSleep; public class MouseHandler { /** * I tried to keep hovering and delaying away form each other. */ public static final int SECOND = 1000; public static final int MINUTE = 60 * SECOND; private Script sI; private Random random = new Random(); private boolean multiclicking; private boolean hovering; private boolean delay; private long lastUpdated = System.currentTimeMillis(); private long lastChecked = System.currentTimeMillis(); private long shouldUpdate = -1; //add in the string name (OSBot username) boolean so our character has a little profile. public MouseHandler(Script sI) { this.sI = sI; this.delay = random.nextBoolean(); //shouldAllow(name); this.hovering = delay ? false: random.nextBoolean(); this.multiclicking = random.nextBoolean(); this.shouldUpdate = this.randomUpdate(); } public boolean shouldAllow(String name) { return name.length() % 2 == 0; } public int randomDelay() { return MethodProvider.gRandom(8, 7) * SECOND; } public int randomUpdate() { return MethodProvider.gRandom(40, 20) * MINUTE; } public boolean useDelay() { if (!this.delay) { return true; } else{ new ConditionalSleep(randomDelay()) { @Override public boolean condition() throws InterruptedException { return false; } }.sleep(); return true; } } public boolean hoverEntity(Entity entity) { if (!hovering) { return true; }else{ if (entity != null) { return entity.hover(); }else{ return true; } } } public boolean multiclicking(Entity entity, final boolean condition) { if (!multiclicking) { return true; } else{ if (entity != null) { return sI.mouse.continualClick(new EntityDestination(sI.bot, entity), new Condition() { @Override public boolean evaluate() { return condition; }}); }else{ return true; } } } public long getTimeLeft() { long time = this.shouldUpdate - (System.currentTimeMillis() - this.lastUpdated); return time > 0 ? time: -1; } public void update() { if (System.currentTimeMillis() - this.lastChecked > MINUTE) { this.lastChecked = System.currentTimeMillis(); if (getTimeLeft() < 0) { this.hovering = random.nextBoolean(); this.delay = hovering ? false: random.nextBoolean(); this.multiclicking = random.nextBoolean(); this.lastUpdated = System.currentTimeMillis(); this.shouldUpdate = this.randomUpdate(); } } } public boolean allowHovering() { return this.hovering; } public boolean allowDelay() { return this.delay; } public boolean allowMulticlicking() { return this.multiclicking; } }
  19. Keep adding more banks, don't forget you update the api docs
  20. nope sir thats an interface
  21. I forgot how to get the username of the players OSBot name. Does anybody want to help me?
×
×
  • Create New...