TzTok Jad Posted December 13, 2016 Share Posted December 13, 2016 MY SUPER BASICPROBABLY GONNA GET YOU BANNEDWINE MAKERWhat it does:Make wine!How to:Start at any bank that has banker NPCs, make sure you have Jugs of Water and Grapes in your bank or inventory.Features:NONE! Maybe I'll add some "antiban" and paints who knows.DOWNLOAD:CLICK HERESOURCE: import org.osbot.rs07.api.NPCS; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.script.API; import java.awt.*; @ScriptManifest(name = "TzTok Wine Maker", author = "TzTok Jad", version = 1.0, info = "Makes wines. Super basic, love Jad.", logo = "") public class WineMaker extends Script { public int wineMade; public int expGained; public boolean makingWine; public String grapes = "Grapes"; public String jugwater = "Jug of water"; public String unfwine = "Unfermented wine"; @[member=Override] public void onStart() throws InterruptedException { //Code here will execute before the loop is started log("Starting TzTok Wine Maker"); makingWine = false; } @[member=Override] public void onExit() { //Code here will execute after the script ends } public enum scriptState{ MAKEWINE, BANK, NULL, END } public scriptState getState() { if (inventory.contains(grapes) && inventory.contains(jugwater) && makingWine == false){ return scriptState.MAKEWINE; } if (inventory.isEmptyExcept(unfwine) || inventory.isEmptyExcept("Jug of wine")){ return scriptState.BANK; } else{ return scriptState.NULL; } } @[member=Override] public int onLoop() throws InterruptedException { switch(getState()){ case MAKEWINE: inventory.getItem(grapes).interact(); sleep(random(700,1200)); inventory.getItem(jugwater).interact(); sleep(random(700,1200)); while(getWidgets().get(309, 2).isVisible()){ sleep(random(700,1200)); getWidgets().get(309, 2).interact("Make All"); makingWine = true; } break; case BANK: NPC banker = npcs.closest("Banker"); banker.interact("Bank"); sleep(random(700,1200)); bank.depositAll(); sleep(random(700,1200)); if(inventory.isEmpty()){ bank.withdraw(jugwater, 14); sleep(random(700,1200)); bank.withdraw(grapes, 14); sleep(random(700,1200)); bank.close(); makingWine = false; } break; case NULL: log("NULL"); break; } return 800; //The amount of time in milliseconds before the loop starts over } @[member=Override] public void onPaint(Graphics2D g) { //This is where you will put your code for paint(s) } } 2 Quote Link to comment Share on other sites More sharing options...
Pogba Posted December 13, 2016 Share Posted December 13, 2016 MY SUPER BASIC PROBABLY GONNA GET YOU BANNED Can't wait..... But gz on release Quote Link to comment Share on other sites More sharing options...
lepurc Posted December 13, 2016 Share Posted December 13, 2016 (edited) Lining up all my accounts that I need to go banned I mean 99 cooking on Gz on release maybe stop scripting and get on with the order I placed Edited December 13, 2016 by lepurc Quote Link to comment Share on other sites More sharing options...
Vilius Posted December 13, 2016 Share Posted December 13, 2016 Having sleeps everywhere will not be consistent, what if the client lags? What if something else happens? That will throw the whole timing off. You should deffinitely think of how you could remove the sleeps. Just my 2 cents :xfeels: 2 Quote Link to comment Share on other sites More sharing options...
Mood Posted December 14, 2016 Share Posted December 14, 2016 Damn this should be paid Quote Link to comment Share on other sites More sharing options...