- Code: Select all
H and H
rename the folder to
- Code: Select all
HandH
Moderator: Phades
wyzka wrote:Is there a way to get the bot to open a seedbag and get its inventory? maid.doRightClick doesn't work on items in inventory
Inventory inv = maid.getInventory();
.
.
.
waterskin = maid.getItems(inv, "waterskin");
maid.doTake(waterskin[0]);
maid.waitForGrab();
maid.doInteract(....);
maid.doDrop(waterskin[0], (Widget)inv, new Coord(0,0)); // bottom left corner
wyzka wrote:Doesn't work either...
Solution to your problem
- Code: Select all
maid.doDrop(waterskin[0], (Widget)inv, new Coord(0,0)); // bottom left corner
// Let's check every item.
for (def i in items) {
// what's the item's name?
def n = maid.getName(i);
// If it is a Seedbag, open it!
if ("Seedbag".equals(n)) {
maid.doInteract(i);
}
}
wyzka wrote:Two bottom left squares. You should experiment with new Coord(x,y) to get desired squares
boat = maid.doAreaFind(10, "boat");
maid.doAction("act", "carry");
maid.doLeftClick(thing you want to put in);
Thread.sleep(some time to carry);
maid.doRightClick(boat);
window = maid.waitForWindow("Boat");
imgs = maid.getImgWidgets(window);
for (Img i : imgs) {
if (i.resName != null && i.c.equals(new Coord(0,0))) {
i.mousedown(new Coord(0,0), 1);
}
}
Users browsing this forum: Claude [Bot] and 0 guests