This file contains hidden or 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
| if (Functions.downloadFont()) { | |
| GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); | |
| ge.registerFont(Variables.font); | |
| } |
This file contains hidden or 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
| public static boolean downloadFont() { | |
| try { | |
| InputStream in = new BufferedInputStream(new URL("http://phl0w.com/crap/bebas.ttf").openStream()); | |
| Variables.font = Font.createFont(Font.TRUETYPE_FONT, in); | |
| return Variables.font != null; | |
| } catch (Exception e) { | |
| e.printStackTrace(); | |
| } | |
| return false; | |
| } |
This file contains hidden or 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.powerbot.concurrent.Task; | |
| import org.powerbot.concurrent.strategy.Condition; | |
| import org.powerbot.game.api.ActiveScript; | |
| import org.powerbot.game.api.Manifest; | |
| @Manifest(authors = { "_phl0w" }, name = "Your first script") | |
| public class Skeleton extends ActiveScript { | |
| @Override | |
| protected void setup() { |
This file contains hidden or 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.powerbot.concurrent.Task; | |
| import org.powerbot.concurrent.strategy.Strategy; | |
| import org.powerbot.game.api.ActiveScript; | |
| import org.powerbot.game.api.Manifest; | |
| @Manifest(authors = { "_phl0w" }, name = "Your first script") | |
| public class Skeleton extends ActiveScript { | |
| @Override | |
| protected void setup() { |
This file contains hidden or 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
| public class Letters { | |
| public static void main(String[] args) { | |
| printAllLetters(3); //2 for 2 letters, 3 for 3 letters | |
| } | |
| public static void printAllLetters(int length) { | |
| if (length == 2) { | |
| for (char c = 'A'; c <= 'Z'; c++) { | |
| for (int i = 0; i <= 26; i++) { |
This file contains hidden or 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 java.awt.Color; | |
| import java.awt.GradientPaint; | |
| import java.awt.Graphics; | |
| import java.awt.Graphics2D; | |
| import java.awt.Point; | |
| import java.awt.Rectangle; | |
| import java.awt.RenderingHints; | |
| import java.awt.event.MouseEvent; | |
| import java.awt.event.MouseListener; |
This file contains hidden or 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
| public class Challenge { | |
| public static void main(String... args) { | |
| System.out.println(function(8)); | |
| } | |
| public static int function(int a) { | |
| int temp = 0; | |
| for (int i = 0; i <= a; i++) { | |
| temp += i; |
This file contains hidden or 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
| int[] path = { 0, 4, 8, 12, 16, 20, 24, 25, 21, 17, 13, 9, 5, 1, 2, 6, 10, 14, 18, 22, 26, 27, 23, 19, 15, 11, 7, 3 }; | |
| for (int slot = 0; slot < path.length; slot++) { | |
| Item x = Inventory.getItemAt(path[slot]); | |
| if (Data.junk.contains(x.getId())) { | |
| int xPos = x.getWidgetChild().getAbsoluteX() + Random.nextInt(0, 5); | |
| int yPos = x.getWidgetChild().getAbsoluteY() + Random.nextInt(0, 5); | |
| Mouse.hop(xPos, yPos); | |
| Mouse.click(false); | |
| Time.sleep(10, 25); | |
| Mouse.hop(xPos, yPos + (path[slot] >= 24 ? 28 : 45)); |
This file contains hidden or 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
| int[] path = { 0, 4, 8, 12, 16, 20, 24, 25, 21, 17, 13, 9, 5, 1, 2, 6, 10, 14, 18, 22, 26, 27, 23, 19, 15, 11, 7, 3 }; | |
| for (int slot = 0; slot < path.length; slot++) { | |
| Item x = Inventory.getItemAt(path[slot]); | |
| if (Data.junk.contains(x.getId())) { | |
| int xPos = x.getWidgetChild().getAbsoluteX(); | |
| int yPos = x.getWidgetChild().getAbsoluteY(); | |
| Mouse.hop(xPos, yPos); | |
| Mouse.click(false); | |
| Time.sleep(10, 25); | |
| Mouse.hop(xPos, yPos + (path[slot] >= 24 ? 28 : 45)); |
This file contains hidden or 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 java.awt.Color; | |
| import java.awt.Font; | |
| import java.awt.Graphics; | |
| import java.awt.Graphics2D; | |
| import java.awt.Image; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import java.io.IOException; | |
| import java.net.URL; |