Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

TzTok Wine Maker

Featured Replies

MY SUPER BASIC
PROBABLY GONNA GET YOU BANNED

WINE MAKER

What 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 HERE

SOURCE:


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)




    }


}

 

MY SUPER BASIC

PROBABLY GONNA GET YOU BANNED

 

 

 

Can't wait.....

 

 

 

But gz on release 

Lining up all my accounts that I need to go banned I mean 99 cooking on smile.png Gz on release maybe stop scripting and get on with the order I placed smile.png

Edited by lepurc

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:

Damn this should be paid :kappa:

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.