whipz Posted February 6, 2017 Posted February 6, 2017 (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 Paint Credits to @WiseGoldMan progress reports (Mine) Feel free to leave comments on things you want added (: or bugs you find thanks whipzAIOCooker.jar Edited March 16, 2017 by whipz Paint works ! 2
whipz Posted February 6, 2017 Author Posted February 6, 2017 (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 February 6, 2017 by whipz
WiseGoldMan Posted February 6, 2017 Posted February 6, 2017 21 minutes ago, whipz said: 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; I can help with paint. 1
whipz Posted February 6, 2017 Author Posted February 6, 2017 2 minutes ago, WiseGoldMan said: I can help with paint. appreciated do you have skype ?
WiseGoldMan Posted February 6, 2017 Posted February 6, 2017 Talythan15, going to bed soon so I can help tomorrow 1
whipz Posted February 6, 2017 Author Posted February 6, 2017 Just now, WiseGoldMan said: Talythan15, going to bed soon so I can help tomorrow Sweet (: thanks mate
naaiz Posted February 6, 2017 Posted February 6, 2017 (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 February 6, 2017 by naaiz more stuff 2
whipz Posted February 6, 2017 Author Posted February 6, 2017 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 1
naaiz Posted February 6, 2017 Posted February 6, 2017 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.
whipz Posted February 6, 2017 Author Posted February 6, 2017 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 ):
flynnie32 Posted February 6, 2017 Posted February 6, 2017 Looks interesting! Id be keen to help test or demo! 1