-
Posts
10 -
Joined
-
Last visited
Posts posted by ybs
-
-
3 hours ago, Genius said:
I think getBoundingBox is what you're after. You may be able to do
Mouse.move(Bank.getClosestBank(BankType.NPC).getBoundingBox());
But you may need to declare the NPC or bank booth first. Going from memory here as I have been inactive for a little bit.
NPC banker = NPCS.closest(() -> b != null && b.getName().equals("Banker");
Mouse.move(banker.getBoundingBox());
Hope this helps. Good luck!
It worked after I added Mouse.move(Bank.getClosestBank(BankType.NPC).getBoundingBox()); based on your rec, "bounding box" was the word i didn't know haha,
Thank you for your help!
-
Another tip, on top of the other good ones mentioned in this thread, is to add variety to what your bot does.
For example, train combat for 30-60 minutes, break 10-30 minutes, then do some other tasks like money making or skilling (woodcut, fish, cooking) for 20-40 minutes, then take another break (suggest a long one), then come back and start something else.
Max 3-4 hours a day or however long a human would play.
Also using the free scripts most likely will get you banned so it's better to learn and try to create your own local scripts (https://dreambot.org/forums/index.php?/forum/96-tutorials/)
Good luck!
-
Hello all,
CONTEXT: I have a local script I built that combines items at the while standing at the GE , I'm trying to add a case where it'll hover over the Banker npc in the Grand Exchange or hover over the GE booth (where you can one click to open your bank).
Basically I would like to combine items, have the mouse hover over the banker or GE bank booth and sleep until the next step in my script.
Here's what I've tried:
case 5: log("Case 5, hovering over banker"); Mouse.move(Bank.getClosestBank(BankType.NPC)); sleep(this.randomNum(1000, 2000)); break;
Any help is appreciated, thanks!
DreamBot Logo / Forum Rank Images Contest! [$100+$100 PRIZE]
in Site
Posted
Please let the others down easy, this is some of my best work.