Skip to content

Instantly share code, notes, and snippets.

@LemonCamel
Last active July 31, 2017 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LemonCamel/ce300d376550594e48d1bcd586322721 to your computer and use it in GitHub Desktop.
Save LemonCamel/ce300d376550594e48d1bcd586322721 to your computer and use it in GitHub Desktop.
Yes
import org.dreambot.api.methods.skills.Skill;
import org.dreambot.api.methods.tabs.Tab;
import org.dreambot.api.script.AbstractScript;
import org.dreambot.api.wrappers.interactive.GameObject;
import org.dreambot.api.script.Category;
import org.dreambot.api.script.ScriptManifest;
import org.dreambot.api.methods.Calculations;
import org.dreambot.api.methods.map.Area;
import org.dreambot.api.wrappers.items.GroundItem;
import org.dreambot.api.methods.container.impl.bank.Bank;
import org.dreambot.api.methods.magic.Lunar;
@ScriptManifest(category = Category.WOODCUTTING, name = "Clay Humidify", author = "LemonCamel", version = 1.0)
public class TeakChopper extends AbstractScript {
public int onLoop() {
getBank().open();
getBank().depositAllExcept(9075);
sleep(Calculations.random(100,200));
getBank().withdraw(434,27);
sleep(Calculations.random(200,500));
getBank().close();
sleepUntil(() -> !getBank().isOpen(), 8000);
if (getInventory().contains(434)) {
getMagic().castSpell(Lunar.HUMIDIFY);
}
sleep(Calculations.random(2500,3000));
getBank().open();
sleepUntil(() -> getBank().isOpen(), 8000);
getBank().depositAll(1761);
return (Calculations.random(500, 600));
}}
// Half these imports dont need to be there but fuck off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment