I thought about doing this as a livestreaming thing and posting my code on codeshare.io. where users can copy and paste their own code and I can help guide them. but gl on this!
Edit: oops on the gravedig. saw it was available at the top and commented
//Interaction : NPC
NPC cow = getNpcs().closest("Cow");
if (cow != null){
if (cow.interact("Attack")){
//sleep
}
}
//Interaction : RS2Object
RS2Object ladder = getObjects().closest("Ladder");
if (ladder != null){
if (ladder.interact("Climb-down")){
//sleep
}
}
//Interaction : RS2Widget
RS2Widget interfaceToInteract = getWidgets().get(124, 1); //(Parent, child) //Can be found using the widget hover option in the client settings
if (interfaceToInteract != null){
if (interfaceToInteract.interact("Buy All")){
//sleep
}
}