Thnx soo much for anserw <3 but i still need help :p
how to run bot which cut all trees around and put it in one place please help !
Moderator: Phades
ramones wrote:Don't know if it was answered or said already, I'm a bit lazy to read 20 pages... anyone has groovy script written that empties all seedbags on grounds from your inventory? (seeds from them)
import static sys.*
main();
void main() {
// Close all seedbags.
findWindows("Seedbag").each { it.close() }
wait({ getInventory("Seedbag") != null });
invo = waitInventory();
for (item in invo.getItems()) {
if (item.isName("bag-seed")) {
item.act();
for (seed in waitInventory("Seedbag").getItems()) {
seed.drop();
}
closeBag();
}
}
}
void closeBag() {
findWindow("Seedbag")?.close();
while (getInventory("Seedbag") != null) {
Thread.sleep(100);
}
}
jadamkaz wrote:ah i remember my run in with odditown they are good ppl im sure the only reason they killed ME is because they are troll hunters and i was a troll
ramones wrote:Will try, ty
void put_cupboard() {
invo = waitInventory();
cupboardId = findObjectByName("cupboard", 40);
if (cupboardId == 0) {
return;
}
// Open cupboard.
doClick(cupboardId, MouseButton.RIGHT, 0);
cupboardInvo = waitInventory("Cupboard");
// Move from inventory -> cupboard.
for (item in invo.getItems()) {
item.transfer();
Thread.sleep(100);
}
}
jadamkaz wrote:ah i remember my run in with odditown they are good ppl im sure the only reason they killed ME is because they are troll hunters and i was a troll
import static sys.*
main()
void main()
{
while(true)
{
insert()
}
}
void insert()
{
def inv = waitInventory()
for (item in getInventory("Inventory").getItems())
{
item.transfer()
sleep 100
}
}
Users browsing this forum: Claude [Bot] and 0 guests