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.game.api.methods.Widgets; | |
| import org.powerbot.game.api.wrappers.widget.WidgetChild; | |
| public class Equipment { | |
| /** | |
| * @author _phl0w | |
| * @since 12-6-2012 | |
| */ |
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.AlphaComposite; | |
| import java.awt.Color; | |
| import java.awt.Font; | |
| import java.awt.Graphics; | |
| import java.awt.Graphics2D; | |
| import java.awt.Rectangle; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.net.URL; |
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
| /** | |
| * @param item | |
| * @return The integer of the widget equipment slot if found, otherwise -1. | |
| */ | |
| public static int isWearing(int item) { | |
| for (int slot : WIDGET_EQUIPMENT_ALL) { | |
| if (Widgets.get(WIDGET, WIDGET_EQUIPMENT_ALL[slot]).getChildId() == item) { | |
| return WIDGET_EQUIPMENT_ALL[slot]; | |
| } | |
| } |
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
| /** | |
| * @author Cakemix | |
| * @author Coma | |
| * @param id | |
| * the item id | |
| * @return the price | |
| * @throws IOException | |
| */ | |
| private int getPrice(int id) throws IOException { | |
| URL url = new URL("http://open.tip.it/json/ge_single_item?item=" + id); |
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
| private class Banking extends Strategy implements Task { | |
| @Override | |
| public boolean validate() { | |
| return (Inventory.getCount(primary) == 0 || Inventory | |
| .getCount(secondary) == 0) | |
| && guiInitialized | |
| && !Bank.isOpen(); | |
| } |
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.AlphaComposite; | |
| import java.awt.Color; | |
| import java.awt.Font; | |
| import java.awt.Graphics; | |
| import java.awt.Graphics2D; | |
| import java.awt.Rectangle; | |
| import java.awt.event.ActionEvent; | |
| import javax.swing.DefaultComboBoxModel; | |
| import javax.swing.GroupLayout; |
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
| private final Pattern UPDATER_VERSION_PATTERN = Pattern | |
| .compile("version\\s*=\\s*([0-9.]+)"); | |
| doUpdates("http://phl0w.site88.net/scripts/barb.php"); | |
| public double getVersion() { | |
| return iTBarbFisher.class.getAnnotation(Manifest.class).version(); | |
| } | |
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
| <?php | |
| include("../includes/functions.php"); | |
| $ver = getVersion("iTBarbFisher"); | |
| echo "version = ".$ver; | |
| ?> | |
| function getVersion($script) { | |
| $sql = mysql_query("SELECT * FROM `scripts` WHERE script = '".$script."'"); | |
| $rows = mysql_num_rows($sql); | |
| while ($row = mysql_fetch_array($sql)) { |
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.game.api.methods.Settings; | |
| import org.powerbot.game.api.methods.Widgets; | |
| import org.powerbot.game.api.util.Random; | |
| import org.powerbot.game.api.util.Time; | |
| public class Summoning { | |
| public static boolean isFamiliarSummoned() { | |
| return Settings.get(448) != -1; | |
| } |
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.game.api.methods.Settings; | |
| import org.powerbot.game.api.methods.Widgets; | |
| public class Prayer { | |
| public static int getPrayerPoints() { | |
| return Integer.parseInt(Widgets.get(749, 6).getText()); | |
| } | |
| public static boolean isQuickPrayersOn() { |
OlderNewer