

todamach
Members-
Posts
59 -
Joined
-
Last visited
-
Feedback
100%
Everything posted by todamach
-
Yeah, works for me too.
-
java.lang.NullPointerException at org.osbot.Gc.<init>(wo:158) at org.osbot.rs07.event.ScriptExecutor.prepare(qh:171) at org.osbot.rs07.event.ScriptExecutor.start(qh:197) at org.osbot.nUL.run(ak:448) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Worked perfectly yesterday.
-
Interacting (clicking) with widget w/o any interactActions
todamach replied to todamach's topic in Scripting Help
Yeah, I, kind of, figured it out at the start. Just made a silly mistake implementing it. -
Interacting (clicking) with widget w/o any interactActions
todamach replied to todamach's topic in Scripting Help
Oh, I did. There's nothing in there for selecting an item from the widget that I've mentioned higher. Also, api for button to confirm offer (sell or buy) doesn't work too. setQuantity and getQuantity isn't working either. I made custom methods for all of that. Still, GE API is pretty decent. Can't complain. -
Interacting (clicking) with widget w/o any interactActions
todamach replied to todamach's topic in Scripting Help
Yeah, that was a silly mistake. Thank you very much for responding. It's a separate class with a constructor public MinMaxPrice(Script sI) { this.sI = sI; } So I have to do it like this: sI.mouse.click(sI.mouse.getPosition().x, sI.mouse.getPosition().y, false); -
Interacting (clicking) with widget w/o any interactActions
todamach replied to todamach's topic in Scripting Help
It doesn't work without the first line though. edit: not like it works with it -
Interacting (clicking) with widget w/o any interactActions
todamach posted a topic in Scripting Help
I can only hover() this widget, but how could I click it? What I've tried so far: Mouse mouse = new Mouse(); mouse.click(mouse.getPosition().x, mouse.getPosition().y, false); ava.lang.NullPointerException at org.osbot.rs07.script.MethodProvider.execute(kc:642) at org.osbot.rs07.api.Mouse.click(no:157) -
Hey, using grandExchange API how do I select an item to buy? I manage to get GE open, select a slot, but can't find anything there about selecting an item? Should I simply use TypeStringEvent, and choose item that way? Either way, can I get an example? Thanks.
-
http://ultronbrowser.info/
-
Khaleesi, have you tried osbot pathFinder ? i use iy for walking when i only have one point
-
well, but it traverses back. doesny that mean that loop oterates back to zero?
-
try tu use something like: if p = length of the array, break it
-
Honestly? No idea. Mine works, and I'm happy
-
public void onPaint(Graphics2D g) { Graphics2D gr = (Graphics2D) g; } Does your onPaint method looks like this? Because I had the same problem, and it was Graphics instead of Graphics2D, i think. I was watching osbot1 paint guide to make a paint for osbot v2, so situation is the same.
-
thanks. Method, if someone might be interested: public Position positionInFront(){ int dir = myPlayer().getRotation()/256; Position myPos = myPlayer().getPosition(); Position pos = null; if(dir == 0){ pos = new Position(myPos.getX(),myPos.getY()-1,myPos.getZ()); }else if(dir==2){ pos = new Position(myPos.getX()-1,myPos.getY(),myPos.getZ()); }else if(dir == 4){ pos = new Position(myPos.getX(),myPos.getY()+1,myPos.getZ()); }else if (dir == 6){ pos = new Position(myPos.getX()+1,myPos.getY(),myPos.getZ()); } return pos; }
-
I scrolled throught this sooooo many times. What is character exactly? Isn't it player or smth?
-
Hey, maybe someone has a method that returns position in front of a player?
-
Divinity's is soft on the eyes. Your is the one that hurts the eyes... It look like it's not fully loaded or something....
-
You'll get banned after first day.
-
Thanks for setting me in the right direction. Just restarted a browser.
-
Yeah, I agree, my algorithm is very weird and not efficient. I created mineArea's with areas that cointains ores. Now, if i = 0, it goes to Area[0], mine all ores there, then goes to Area[1] and etc. Also, I changed this part of the code, after posting here. Entity oreVein = objects.closest(DIRT_NAME); is now insade that while lopp. People in the other thread pointed out to me, that ores I was trying to mine were dynamic. It changes state even if it still exists. That's why this happened. BTW, really appreciate your help, and discussions
-
Pay-dirt at Motherlode.
-
Apparently, ores I try to mine are dynamic/has multiple states. So this method doesn't quite work. Botrepreneur suggested to track it's depleted model/id instead. I'll try that in the evening today. I'll be busy all day.