Jump to content

Whipz AIO Cooker


Recommended Posts

Posted (edited)

Hey guys; I decided to release a AIO cooker as there really wasn't much out there.

I will update alot more with some forms of AFK and other things that you throw at me; However though for now the script will remain pretty basic as a lot of you would rather the code than a obfuscated .jar;

To do:

Suggestions ?

Added GE support to buy more items (tested works)
add task system
add  progressive leveling
add fastest 99
add most profit

Done:

lumbridge castle (Tested)

Edgeville (Tested)

Falador (Not Tested)

Alkharid (Not Tested)

Loads of foods see pics

Paint( @WiseGoldMan)

 

Here is version 1.01

GUI
items_zpsfjwcihkg.png

Locations_zpsdkms3ezy.png

Paint Credits to @WiseGoldMan

EA1C0CF0C2DDBCB04C0258B8960138B33A6C1292

 

progress reports (Mine)

proggie1_zpso136eap2.png

proggie2_zpsaqegtvmx.png

Feel free to leave comments on things you want added (: or bugs you find thanks

 

whipzAIOCooker.jar

Edited by whipz
Paint works !
  • Like 2
Posted (edited)
7 minutes ago, Eend said:

can some check if malicious or nah? 

ill post code as well as i said its just basic when i get SDN approved ill add other stuff

edited

 

Also if someone would like to help with paint, i tried onPaint and none of my paint shows up I obviously dont have it there as it wasnt working;

Edited by whipz
Posted (edited)

Throw this in your onpaint to show cursor crosshair:

public void onPaint(Graphics2D gr) { 
        int x = getMouse().getPosition().x;
        int y = getMouse().getPosition().y;              
        gr.drawLine(0, y, 765, y);
        gr.drawLine(x, 0, x, 503);
    }


To add strings, use the following: gr.drawString(String, x coordinate, y coordinate);

for example:

gr.drawstring("Fish cooked: " + fishescooked (or whatever variable you would use for this), 50, 100);

For time elapsed, use something like this:
 

public void onStart() { 
        startTime = System.currentTimeMillis();
    }

public void onPaint(Graphics2D gr) {
  long timeElapsed = System.currentTimeMillis() - startTime;
  gr.setFont(new Font("Arial", Font.BOLD, 16));
  long second = (timeElapsed / 1000) % 60;
  long minute = (timeElapsed / (1000 * 60)) % 60;
  long hour = (timeElapsed / (1000 * 60 * 60)) % 24;
  gr.setColor(Color.BLACK);
  gr.drawString(String.format("%02d:%02d:%02d", hour, minute, second), 337, 374);
}

 

Edited by naaiz
more stuff
  • Like 2
Posted
11 minutes ago, naaiz said:

Throw this in your onpaint to show cursor crosshair:


public void onPaint(Graphics2D gr) { 
        int x = getMouse().getPosition().x;
        int y = getMouse().getPosition().y;              
        gr.drawLine(0, y, 765, y);
        gr.drawLine(x, 0, x, 503);
    }


To add strings, use the following: gr.drawString(String, x coordinate, y coordinate);

for example:


gr.drawstring("Fish cooked: " + fishescooked (or whatever variable you would use for this), 50, 100);

For time elapsed, use something like this:
 


public void onStart() { 
        startTime = System.currentTimeMillis();
    }

public void onPaint(Graphics2D gr) {
  long timeElapsed = System.currentTimeMillis() - startTime;
  gr.setFont(new Font("Arial", Font.BOLD, 16));
  long second = (timeElapsed / 1000) % 60;
  long minute = (timeElapsed / (1000 * 60)) % 60;
  long hour = (timeElapsed / (1000 * 60 * 60)) % 24;
  gr.setColor(Color.BLACK);
  gr.drawString(String.format("%02d:%02d:%02d", hour, minute, second), 337, 374);
}

 

adding mine now thanks testing then ill reupload

  • Like 1
Posted
1 minute ago, whipz said:

updated but paint no work ):

Start off by just adding this 

public void onPaint(Graphics2D gr) { 
		int x = getMouse().getPosition().x;
        int y = getMouse().getPosition().y;              
        gr.drawLine(0, y, 765, y);
        gr.drawLine(x, 0, x, 503);
	}

Try and get that to work, after that you can expand.

Posted
3 minutes ago, naaiz said:

Start off by just adding this 


public void onPaint(Graphics2D gr) { 
		int x = getMouse().getPosition().x;
        int y = getMouse().getPosition().y;              
        gr.drawLine(0, y, 765, y);
        gr.drawLine(x, 0, x, 503);
	}

Try and get that to work, after that you can expand.

Added just that it doesnt show up ):

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...