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
| package pedro.url; | |
| import javax.swing.*; | |
| import java.awt.event.KeyEvent; | |
| import java.awt.event.KeyListener; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| import java.net.URLConnection; | |
| public class ProfileViews { |
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
| Pedro |
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
| package us.brtm.algorithms.pathfinder; | |
| import org.powerbot.game.api.methods.Calculations; | |
| import org.powerbot.game.api.methods.Game; | |
| import org.powerbot.game.api.methods.Walking; | |
| import org.powerbot.game.api.wrappers.Tile; | |
| import java.util.ArrayList; | |
| import java.util.LinkedList; | |
| import java.util.List; |
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.Game; | |
| import org.powerbot.game.api.methods.Walking; | |
| import org.powerbot.game.api.wrappers.Tile; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| /** | |
| * @author pxpc2 & _phl0w | |
| */ |
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
| for (Tile aTILE_AREA : TILE_AREA) { | |
| if (SceneEntities.getAt(aTILE_AREA) != null && filter.accept(aTILE_AREA)) { | |
| sc.add(SceneEntities.getAt(aTILE_AREA)); | |
| } | |
| } |
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
| package us.brtm.scripts.algorithms.pathfinder; | |
| import org.powerbot.game.api.methods.Calculations; | |
| import org.powerbot.game.api.wrappers.Tile; | |
| import us.brtm.scripts.algorithms.CustomTile; | |
| import java.util.ArrayList; | |
| import java.util.LinkedList; | |
| import java.util.List; |
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 Applet createApplet(String host, String s, String className, | |
| Dimension d) throws Exception { | |
| String source = getPageSource(new URL(s), host); | |
| Matcher matcher = SOURCE_PATTERN.matcher(source); | |
| if (matcher.find()) { | |
| String first = matcher.group(1); | |
| String frameSource = getPageSource(new URL(first), host); | |
| matcher = ARCHIVE_PATTERN.matcher(frameSource); | |
| Matcher codeMatcher = CODE_PATTERN.matcher(frameSource); | |
| if (matcher.find() && codeMatcher.find()) { |
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 void getParams(String url) { | |
| final String[] VALUES = { "document.write", "<param name=\"", "\">'","'", "\\(", "\\)", "\"", " ", ";", "value" }; | |
| try { | |
| BufferedReader in = new BufferedReader(new InputStreamReader(new URL(url).openStream())); | |
| String line; | |
| for (String s : parameters.values()) { | |
| System.out.println(s); | |
| } |
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
| package us.brtm.client.loader; | |
| import javax.swing.*; | |
| import java.applet.Applet; | |
| import java.applet.AppletContext; | |
| import java.applet.AppletStub; | |
| import java.awt.*; | |
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.net.MalformedURLException; |
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 File createFile(final String fileName, final String directory) { | |
| final StringBuilder builder = new StringBuilder(directory); | |
| final Path path = Paths.get(builder.append(fileName).toString()); | |
| if (path == null || path.toFile().length() == 0) { | |
| System.err.println("failed to create file"); | |
| return null; | |
| } | |
| System.out.println("file created with success"); | |
| return path.toFile(); | |
| } |