Moderator: Phades
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
Oddity wrote:Gob vs. Glob: What does each mean?
Leny-m wrote:Someone already talked about the study inventory but I didnt understand.
Basicaly I want my script to pick up curios from cupboard and intelligently put them in my study inventory. Dont worry about the interaction with cupboard, thats easy. I just need that part when I put something in the study.
SetInventory("study") didnt work
ArvinJA wrote:Leny-m wrote:Someone already talked about the study inventory but I didnt understand.
Basicaly I want my script to pick up curios from cupboard and intelligently put them in my study inventory. Dont worry about the interaction with cupboard, thats easy. I just need that part when I put something in the study.
SetInventory("study") didnt work
Are you solving the knapsack problem?
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.*
// get table window
def tablewnd = findWindow("Table")
if (tablewnd == null) {
println "Where is mah table >:|"
return
}
// find food inventory by it's size
def foodinv = tablewnd.inventories.find { it.rowCount == 6 && it.columnCount == 6 }
if (foodinv == null) {
println "Wtf... empty table."
return
}
// Feast!
tablewnd.findButton("Feast!").click()
waitCursor("eat")
for (item in foodinv.items) {
item.take()
waitHourglass()
}
Users browsing this forum: Amazon [Bot], Claude [Bot] and 0 guests