
Ps: Could you recommend me some tutorials on programing? Thanks in advance
Moderator: Phades
zann0 wrote:Could you recommend me some tutorials on programing? Thanks in advance
zann0 wrote:... Can someone post hunger bot ?
Vario wrote:Anyone have a groovy script for personal beliefs? (like a new alt, getting peaceful raised up?)
Also, one that will simply eat all available food of a specific type in a cupboard?
Still digging through examples in the meantime, but didn't want to re-invent the wheel.
for (item in getInventory("Cupboard").getItems()) {
while(findObjectByName("",50)) {
id=findObjectByName("carrot",50)
import static sys.*
def i=0;
say("Beginning item loop");
for (item in getInventory("Cupboard").getItems()) {
say("Inside For Loop("+i+")"+item.name);
if (item.isName("carrot") {
doClick(item,3, 0)
def menu = waitContextMenu()
menu.select("Eat")
waitHourglass()
Thread.sleep 200
}
}
import static sys.*
def i=0;
say("Beginning item loop");
while(findObjectByName("",50)) {
id=findObjectByName("carrot",50)
say("Inside For Loop("+i+")"+id.name);
doClick(id, 3, 0)
def menu = waitContextMenu()
menu.select("Eat")
waitHourglass()
Thread.sleep 200
}
say("Ending item loop");
Vario wrote:PS, is there a better way to do debug than say("blah"), I see print and println scattered all over various scripts, but I'm never seeing any output from them.
import static sys.*
for (item in getInventory("Cupboard").getItems()) {
item.act()
waitContextMenu().select("Eat")
Thread.sleep(500);
}
Users browsing this forum: Claude [Bot] and 1 guest