Everything posted by adc
-
Help me find a pattern to this madness
I could, but in the case that for some reason the person's kc is not 0 when they start a run, it'll throw everything off. This could happen if they partially complete a run, stop and restart the script, pause it to do something else and accidentally get more kc, etc. While I could keep persistent variables, it still wouldn't allow me to account for all scenarios
-
Help me find a pattern to this madness
I've been trying to obtain the barrows killcount via the config debugger. It appears that config #453 is the correct place to look, as it changes consistently every time killcount changes, and when killcount reverts to 0, config(453) also reverts to 0. However, the numbers that it returns have no apparent pattern. I've recorded (most of) the values from 4 barrows runs : 0 --------- 0 --------- 0 --------- 0 138436 ---- 138434 ---- 138434 ---- 138464 275788 ---- ?? -------- 275779 ---- 276912 414236 ---- 414227 ---- 413131 ---- 414264 552700 ---- 552691 ---- 551579 ---- 551609 690045 ---- 691127 ---- 690043 ---- 690043 828479 ---- 827127 ---- 828479 ---- 826043 964479 ---- ?? -------- 962879 ---- 959867 1100479 --- 1097527 --- 1096703 --- 1093691 1234879 --- 1233527 --- 1232831 --- 1232127 1370879 --- 1367927 --- 1368831 --- 1368127 1505855 --- 1501751 --- 1502655 --- 1504127 1636927 --- 1636919 --- 1636927 --- 1636927 1767999 --- 1767991 --- 1767999 --- 1767999 1899071 --- 1899063 --- 1899071 --- 1899071 1964607 --- ?? -------- 1964607 --- 2030143 2095679 --- 2095679 --- 2095679 --- 2095679 Line number indicates Kill Count value, and ?? indicates that I wasn't able to get the info (other cofig data push it out of view too quickly). Any ideas as to what the pattern might be here? (Or am I unaware of something crucial regarding jagex's config files?)
-
Interface object's getMessage() returns %1 instead of number
Well that was easy
-
Interface object's getMessage() returns %1 instead of number
Okay, I'll look around the configs class for it, thanks. feel free to add anything else about obtaining the number if you know it guys Also, the % character isn't the problem, it's the %1, which is a placeholder for a variable, and for some reason the placeholder is returned instead of the value of the variable. Edit: I'm poking through configs, but maybe someone can answer this for me: how exactly do I find a variable that I'm looking for in configs?
-
Interface object's getMessage() returns %1 instead of number
Right, so I've been trying to parse the number out of the Barrows killcount. By creating a new RS2InterfaceChild and calling getMessage() from it, I get a return value of "Kill Count : %1" regardless of the number, which leads me to believe that %1 is a placeholder. How, then, can I get the actual number, instead of the placeholder?
-
Osbot alternative to useDefaultPaint(false)?
As in the topic, how exactly do I go about disabling default paint in Osbot2? I can't seem to find a method for it in the API. Also, onPaint is still the correct method in which to draw my paint, right? I've been having issues porting to Osbot2 regarding my paint simply not showing up, whereas it did in Osbot 1.8.15.
-
does anyone still bot/goldfarm?
I beg to differ All from one account botting an average of 8 hours a night, which I've been doing for over 6 months now. It seems the best way to minimize chances of bans are: 1) Use an old account (created many years ago) that has no previous bans 2) avoid using low-profit, high-banrate methods such as fishing/woodcutting 3) play it legit for a while, I probably played this account legit for a few months before I got bored and turned to botting 4) make sure you're well quested/well rounded in skills, if all you ever do is train one skill/do one thing for money, you raise a lot of red flags 5) don't bot more than a nolifer could/would play. I have my breaks set for about 3 hours running, +- about an hour, and breaking for about an hour +- an hour; I rarely let it run for more than 10 hours a in a 24 hour period 6) keep botting/login times consistent: I rarely run it before 10pm or after 10am 7) remember that the account is for making money, not having fun: don't ever get attached to the account, and don't buy useless expensive gear unless it helps your botted method 8) sell money often: if you do get banned, at least you won't lose too much
-
Closest object for an area/point in Osbot2?
I'll definitely use this for my current script, as the object I need to find is a single door in a set location; Also, this just taught me how to use filters, so thanks for that. However, your method will be very helpful once I move on to the Barrows script I have planned
-
Closest object for an area/point in Osbot2?
Perhaps I've overlooked something obvious, but despite scouring the Osbot2 API I can't find a method to return an object that is specifically in an area (at a point would work just as well), as closestObjectForName(Area, String) did in Osbot1. Of course, I suppose I could write my own method to do this, but I'd rather be able to use a built-in method if one exists.
-
Completed my first script- pick it apart please
Hey thanks! Yeah, I'm still not 100% familiar with all of the data types of Java, so it didn't occur to me to do it that way, but I'll go ahead and try that out now!
-
Completed my first script- pick it apart please
https://github.com/adc1/Osbot-Scripts/tree/master/src Anyone with experience is welcome to tell me what I did wrong, what I did right, and how to improve Once I'm happy with it I'll be converting it to Osbot 2 and hopefully put it on the SDN if it works out.
-
Osbot v1 and v2
^ For botting, use Osbot 1; all randoms work and most scripts are still not completely ready for osbot 2. For development, use Osbot 2; everythng is in the process of shifting over to Osbot 2 right now.
-
Anyone know why this might throw an NPE?
Having started with Actionscript 3 (based on Java), I had enough experience to know this-- until, like you, I was surprised to find that it actually worked when done in that order. However, because it did work I assumed it was fine. Thanks for the help
-
Anyone know why this might throw an NPE?
MiscMethods is instantiated in the exact same way in every class that I need to use any of the methods from it. For example: public class StopScript extends Task { private MiscMethods m = new MiscMethods(sA); public StopScript(Script sA) { super(sA); } public boolean execute() throws InterruptedException { if(m.isPoisoned()) { [...] } m.curePoison(); m.stopScript(); } And literally every other method in MiscMethods operates in the same fashion as sleepFor, only they don't throw any errors: public boolean isPoisoned() { return sA.client.getConfig(102) > 0; } public boolean curePoison() throws InterruptedException { if(isPoisoned()) { if (sA.client.getInventory().contains("Antipoison(1)")) { sA.client.getInventory().interactWithName("Antipoison(1)", "Drink"); sA.sleep(MethodProvider.random(300,500)); return true; } else if (sA.client.getInventory().contains("Antipoison(2)")) { sA.client.getInventory().interactWithName("Antipoison(2)", "Drink"); sA.sleep(MethodProvider.random(300,500)); return true; } else if (sA.client.getInventory().contains("Antipoison(3)")) { sA.client.getInventory().interactWithName("Antipoison(3)", "Drink"); sA.sleep(MethodProvider.random(300,500)); return true; } else if (sA.client.getInventory().contains("Antipoison(4)")) { sA.client.getInventory().interactWithName("Antipoison(4)", "Drink"); sA.sleep(MethodProvider.random(300,500)); return true; } } return false; }
-
What makes for good antiban?
Yeah, I'm not actually implementing/going to implement autorespond antiban. I just thought I'd throw it in there as a concept, because with enough time put into it it could be worth something. Also, remember that the general rule of thumb in runescape these days is "if it looks like it could be a bot, it's a bot" :p
-
What makes for good antiban?
Well, it seems like sitting silently when someone talks to you is more likely to get a report than prompt the other party to think, "oh, he must be afk/public is turned off", so what about having an auto-responder that says something like >"hi" >"kinda busy doing (homework/whatever), might not reply"
-
What makes for good antiban?
So far I've got down: examining a list of known NPCs examining a list of known Objects hovering skills random camera rotation randomized paths not running antiban so often that it doesn't resemble human actions, per Epsilon message parsing with automated responses (not really sure if this would ever be worth the trouble though) But what else is there in the way of antiban?
-
Best anagram'd username on osbot.
Cad
-
Anyone know why this might throw an NPE?
Correct me if I'm wrong, but it's definitely instantiated here, isn't it? Which is why I'm so confused as to why it would be at the top of a stack trace for an NPE package utils; import org.osbot.script.MethodProvider; import org.osbot.script.Script; public class MiscMethods { private Script sA; public MiscMethods(Script sA) { this.sA = sA; } public void sleepFor(int min, int max) throws InterruptedException,NullPointerException { sA.sleep(MethodProvider.random(min, max)); } [...] Also, I've gone ahead and replaced every usage of my custom sleep method with sA.sleep(MethodHandler.random(a,b)); So everything works, but it would be cool if someone could show me why my method isn't working so that I don't have unnecessary spam
-
Question
You don't need to change ISPs to get a new IP, that's ridiculous. Call your ISP and say "I'd like a new IP address", the end; just don't run your mouth about how it's for a "bot". If they ask, just say you've been having issues with it and you'd like to change it. Also, play the account legit until it's well-rounded (well quested, lots of time put into untradables, etc) and then bot it for reasonable amounts of time in safer areas.
-
I think my friends think I masturbate, how do I convince them otherwise :O
what the fuck
-
Anyone know why this might throw an NPE?
Thanks, that's very useful information and really helps with the issue I posted in the issues section.
-
Anyone know why this might throw an NPE?
public void sleepFor(int min, int max) throws InterruptedException,NullPointerException { sA.sleep(MethodProvider.random(min, max)); } where sA is my main script instantiating a task (or action, node, or whatever you prefer to call it) that in turn instantiates and passes the sA parameter to the class that this method is in.
-
Banned in 9minutes and 26 seconds
I've made over $400 farming gold on my old main over a few months, running it 8-10 hours a night, still not banned. I'm pretty sure it's overlooked because it's such an old account, and very well-rounded.
-
Override/cancel login handler
logoutTab.logOut(); this.stop(); It successfully logs out and then immediately activates the randomEvenHandler for login... Also, I've solved my own problem public void onExit() throws InterruptedException { logoutTab.logOut(); } and have realized I'm an idiot