Everything posted by dmmslaver
-
Cant login from CLI
underscore neither work
-
Cant login from CLI
Can login fine with exact same user pass normally. Cant use CLI. Invalid username or password. java -jar osbot 2.4.101.jar -login user:pass plz help
-
How to handle trees that grab you?
All they need is to be able to set a maximum wait time before running evaluate() Also note, my solution only works if you're walking from south to north always. However it would be easy to modify it to work for other directions.
-
How to handle trees that grab you?
Solution: Thread shitTree = new Thread() { { setDaemon(true); setPriority(Thread.MIN_PRIORITY); setName("Shit tree handler 0"); } @[member=Override] public void run() { do { Player i = myPlayer(); if (i != null) { if (i.isHitBarVisible()) { interrupt = true; NPC tree = npcs.closest(4418); if (tree != null) { log("under attack tree"); if (tree.getY() > myPlayer().getY() && am.dist(tree, myPlayer()) < 2) { Position p = myPosition().translate(am.gauss(3), 0); p.interact(bot, "Walk here"); am.delay(am.gaussp(1200, 600)); continue; } } } else { interrupt = false; } } am.delay(50); } while (running); } };
-
Java VM parameters?
How would I add parameters like these? I tried using cmd line but it only applies to the launcher it seems. java -Xmx1500M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar "C:\Users\John\Desktop\osbot 2.4.100.jar"
-
How to handle trees that grab you?
This isn't the only npc that halts your movement. Like the guy in the chair in falador castle, and others. It would be nice to see the web walking realize that it is not actually walking, and then evaluate() The thread polling solution is rather cumbersome for such a simple task.
-
How to handle trees that grab you?
Thank you yes that is a workaround however seems really haxxy
-
How to handle trees that grab you?
Okay I am more confused now. It seems to be working, slightly. WebWalkEvent ev = new WebWalkEvent(edgeLever); ev.setBreakCondition(new Condition() { @[member=Override] public boolean evaluate() { log("Check"); return myPlayer().isHitBarVisible(); } }); execute(ev); when im walking normally, it says "check" every couple of steps. However, it seems to only check while i am moving. So if I get stuck behind the tree, and it's smacking me for 3 damage every tick, its just sitting there, and its not saying "check" at all until i pause the bot and move manually or it dies.
-
Is it possible to run a bat file from inside a script?
What i did for my mules was actually send a private message or clan chat which would start the other bot ;)
-
How to handle trees that grab you?
hmm maybe i am using it incorrectly WebWalkEvent ev = new WebWalkEvent(edgeLever); ev.setBreakCondition(new Condition() { @[member=Override] public boolean evaluate() { return myPlayer().isHitBarVisible(); } }); ev.execute(); at SharkMuler.onLoop(SharkMuler.java:134) is ev.execute();
-
How to handle trees that grab you?
How to add it into the break condition so it stops the webwalk?
-
How to handle trees that grab you?
exactly where im currently at lol what im thinking: if tree is north - walk west/east if tree is west/east walk north just figured someone had already written the code ;)
-
How to handle trees that grab you?
I kind of assumed it would be handled in the webwalking since it's so fancy. However, if you walk by draynor, and it runs into one of the tree npcs, it will literally just kill you in that spot over and over. Anyone have a workaround?
-
OSBot is currently DOWN, be patient until the issue has been resolved.
"this is a great time to go outdoors and get some fresh air and check back later." Do you literally sit at your PC and watch bots? That's what it sounds like
-
OSBot is currently DOWN, be patient until the issue has been resolved.
ETA on fix? It's a common RS update. You'd think that you guys would be ready the moment they went live, what with all the money donated to you.
-
Override client settings for random/user input handling
I would like to see an answer to this as well. The bots over obfuscation really limits script flexibility for fully automated farms.
-
Error upon starting any script
How long does it usually take to push an updated version? I was running my bots 20/4 before this xD Need that GP!
-
Error upon starting any script
Not sure if this is because of the recent game update or not, but I can't use any script: java.lang.AbstractMethodError: ai.getTransformIds()[I at org.osbot.rs07.api.def.ObjectDefinition.<init>(ro:206) at org.osbot.rs07.api.def.ObjectDefinition.add(ro:80) at org.osbot.SB.IiiiiiiiiIIi(mx:34) at org.osbot.BotCallback.m3(cx:258) at ai.y(ai.java:105) at ad.z(ad.java:86) at fs.m(fs.java:235) at au.af(au.java:4807) at client.g(client.java:818) at ek.pb(ek.java:211) at ek.run(ek.java:190) at java.lang.Thread.run(Unknown Source)
-
Objects.get(ln:138) ArrayIndexOutOfBoundsException: -156
I tried that, and the door is NOT in the list. I am assuming because of the same error that is causing the exception i experienced.
-
Objects.get(ln:138) ArrayIndexOutOfBoundsException: -156
You didn't try my coordinates. I'm using the same code.. The list is the only way to get the object that that coords, there can be multiple objects per coordinate, up to 10.
-
Objects.get(ln:138) ArrayIndexOutOfBoundsException: -156
java.lang.ArrayIndexOutOfBoundsException: -156 at org.osbot.rs07.api.Objects.get(ln:138) at ChefBot.onLoop(ChefBot.java:107) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ao:83) at java.lang.Thread.run(Unknown Source) Offending line: List<RS2Object> doorTile = objects.get(3242, 3212); Am I doing something wrong or is this a bug?
-
Script will not stay logged in
not working for me. latest version. as do i
-
Script will not stay logged in
OSBot logs me in itself when i start up the script. It's just most of the time it wont work again if the player gets kicked. It's like it's not detecting that the player is logged out.
-
Script will not stay logged in
How can I make my script stay logged in? If it gets randomly disconnected, the bot will not even attempt to log back in, ever. The client must be manually restarted. Breaks are disabled during this time.