Everything posted by Joseph
-
So I got a 3d printer...
thats crazy i like the sword and elephant. What are those object made out of? and you cant print with color?
-
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
-
Help with understanding the WalkingEvent?
because walking event is a event. for you to execute that event you need the eventExecutor. bot#getEventExectuor.execute(EVENT);
- OSBot 2.3.5 - Quick patches
-
Help with understanding the WalkingEvent?
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
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
-
OSBot 2.3.5 - Quick patches
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
-
How can I check if the camera is moving?
for your condition make it sleep until the entity is visible
-
extending methodprovider
if i have a class extend method provider should i use initializeContext or exchangeContext in the constructor?
-
Some questions
naw laz changed it after osb 2
-
Bank array
that's exactly what i was thinking but fuck it
-
OSBot 2.3.4 - Bank API and Comparators
thanks you for your hard work
-
Some questions
if i can recall it was 2 free tabs for free users
-
OSBot 2.3.4 - Bank API and Comparators
The better explaination Alek gets. the faster he could fix these problem.
-
Runescape - what year graphics did you like, Osrs/EoC/Pre-eoc(around 2009-2012)
It would be better if they had a bit bigger of a view.
-
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()]); }
-
OSBot 2.3.4 - Bank API and Comparators
@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.
-
OSBot 2.3.4 - Bank API and Comparators
good shit alek, you should get on the chat i want to ask you something.
-
anitban system concept
Just a heads up I released the source. Under mouse handler
-
OSBot 2.3.3 - Cached interfaces
@Alek can you teach us how to use polygonArea
-
anitban system concept
This wasn't my idea, it was cory. But I tried to make it into a reality and some more. I do remember reading your topic about adding priority into a task. Which don't sound too hard to inplement. I'll see if I could think of something.
-
anitban system concept
http://osbot.org/forum/topic/63478-mouse-handler/#entry699439
-
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; } }
- Tanning Hide Bot
-
anitban system concept
For everybody: this class isn't really a antiban system it's more of an intelligent mouse handler. Meant to help the scripters implement an on and off switch for these different type of mouse events. Key word over time. This system is meant for those who don't run their bots for over a year. It's meant for the average joe to bot like 2-3 hours. i created my own randomize timer. So the delay will always be random. The update timer too. I mean for those who bot for 20 plus hour shouldn't be using this type of system. It's meant for the average job. We could always add in the option of if they want the system in or not To bad I couldnt think of any other thing i could add in. Maybe miss clicking but idk. It kind of does for me. Becuse I'm my AIO crafter I have some script modes that allow hovering. But if the person runs the script for like 3 hours they will be hovering for the whole three hours. With my system they will be allowed to hover, stop, have a reaction delay, support multiclicking, and as well as having all three different mouse type turned off so you could have a normal bot. this is just the beginning stage of the class. it could be improved and it's possible to add in a profile.To everybody: I'll probably release as open source. Can I ask you why I would do two version test.