-
-
Save LemonCamel/ce300d376550594e48d1bcd586322721 to your computer and use it in GitHub Desktop.
Yes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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