-
Posts
4692 -
Joined
-
Last visited
-
Feedback
91.3%
Everything posted by Joseph
-
how do you print shit, from a file . Very interesting i would create my own file lol print out a new pair of shoes
-
thats crazy i like the sword and elephant. What are those object made out of? and you cant print with color?
-
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
-
because walking event is a event. for you to execute that event you need the eventExecutor. bot#getEventExectuor.execute(EVENT);
-
make sure to use the EventExecutor that can be found in the bot class
-
Walking out of the uni knowing it's holidays & you passed a hard exam
Joseph replied to Oliver's topic in Spam/Off Topic
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 -
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
-
for your condition make it sleep until the entity is visible
-
if i have a class extend method provider should i use initializeContext or exchangeContext in the constructor?
-
naw laz changed it after osb 2
-
that's exactly what i was thinking but fuck it
-
thanks you for your hard work
-
if i can recall it was 2 free tabs for free users
-
The better explaination Alek gets. the faster he could fix these problem.
-
It would be better if they had a bit bigger of a view.
-
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()]); }
-
@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.
-
good shit alek, you should get on the chat i want to ask you something.
-
@Alek can you teach us how to use polygonArea
-
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; } }
-
- 1
-
-
That's a lot of math for me to handle
-
Keep adding more banks, don't forget you update the api docs
-
nope sir thats an interface
-
I forgot how to get the username of the players OSBot name. Does anybody want to help me?