-
Posts
332 -
Joined
-
Last visited
-
Feedback
100%
Everything posted by TheGreatests
-
Can I get a trial please? Looking to compare and perhaps purchase.
-
Could I try a trial, I am debating which scripts to purchase atm. You're on the list, and 2 others are also.
-
i'll buy if you want, got btc. you'll need to let me know asap though.
-
Got mills for sale? -Apologize, didnt mean to offend you? on the topic though? ^^
-
Let me know, looking to either buy 5m or 3mill!
-
yup got btc homie each time you're talking to me its going up like 3-4$ lol
-
Looking to buy like 4m, let me know. need 14 day pass.
-
You dont need a e-mail to play rs? I thought you had to activate the account?
-
Can I buy sponsorship now? I got btc, and BTC is only gonna be going up. Wow thanks for giving me free sponorship!
-
i'll buy at .90/mill
-
whats it do when you guys start it, i'll fix it if someone tells me whats going on and the gives me the log.
-
Nice man, whats your typical range for 1 account before its banned?
-
Having issues with my damn fisher, I dont know wtf is wrong@!
TheGreatests replied to TheGreatests's topic in Scripting Help
That wont work as you're null checking the banker, and would basically only validate that boolean if the banker is there. -
Having issues with my damn fisher, I dont know wtf is wrong@!
TheGreatests replied to TheGreatests's topic in Scripting Help
Basically making myself a method to validate the banker being on screen. I deleted that, now the big problem couldnt you also do if(Banker !=null { NotThere = false; return sA....blah blah && NotThere = true; Anyways, im having issues with a null pointer check on the webEvent.execute(); method... you ever use it to run to banks? What I did instead of the event walker - @SuppressWarnings("unused") public class Bank extends Node { Data data = new Data(); NPC banker = sA.npcs.closest(395); public Bank(Script sA) { super(sA); // TODO Auto-generated constructor stub } private void MoveToZone(Area zone) throws InterruptedException { sA.walking.webWalk(zone.getRandomPosition()); } public boolean validate() throws InterruptedException{ //// Checking if inventory is full, and if so, is our player in the bank or not return sA.inventory.isFull() && !data.EBank.contains(sA.players.myPosition()); } public boolean execute() throws InterruptedException { sA.settings.setRunning(true); MoveToZone(Banks.EDGEVILLE); -
Having issues with my damn fisher, I dont know wtf is wrong@!
TheGreatests replied to TheGreatests's topic in Scripting Help
Banking works very good, just having issues with the bank node. Lines 26 which is the return in the validation boolean. Ahh null checker on Banker! How? Lovely now, im getting a null pointer on webWalk event.. Should I store the variable with a int, and then call it !(banker != null) -
Hello All, figure I would share my fisher to the public. Some strange reason I am lagging out, and the nodes dont seem to execute at all. I had it picking salmon but after full inventory it laggs out. Loot Node: package GreatestFisher; import org.osbot.rs07.api.model.GroundItem; import org.osbot.rs07.script.Script; import Scripts.Node; import data.Data; public class Loot extends Node { public void getTypeAndLog(GroundItem items){ caller.log = ("[Debug] ground type: " + items.getName() + ("picking up...")); } Data d = new Data(); FishNLoot caller = new FishNLoot(); GroundItem item = sA.groundItems.closest(331); GroundItem item2 = sA.groundItems.closest(335); public Loot(Script sA) { super(sA); // TODO Auto-generated constructor stub } public boolean validate() throws InterruptedException{ //item.interact("Take"); return item !=null && !sA.inventory.isFull() && d.FishingSpot.contains(sA.players.myPosition()) ; } public boolean execute() throws InterruptedException { caller.log = "Looting!"; if(item !=null && item.isOnScreen()){ caller.log = "We are picking up " +item.getName(); item.interact("Take"); } else{ sA.camera.toEntity(item); } if(item2 !=null && item2.isOnScreen()){ caller.log = "We are picking up " +item.getName(); item2.interact("Take"); getTypeAndLog(item); } else{ sA.camera.toEntity(item2); } return false; } } FishNLoot main : package GreatestFisher; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.lang.Thread.State; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.osbot.rs07.api.Inventory; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import Scripts.Node; import data.Data; @ScriptManifest(author = "Elvitos Fisher", info = "Fishes+Loots", name = "Fishing and Loot", version = .1, logo = "Loots while fishing") public class FishNLoot extends Script{ public static Data data; //private SettingsGUI gui; public long OresTransfeered; public long startTime; public String status; public String log; private Inventory inv; private long elapsed; private boolean isRunning = false; private List<Node> nodes = new ArrayList<Node>(); public void onStart() { //createGUI(); isRunning = true; Collections.addAll(nodes, new Loot(this), new Fish(this), new Banking(this), new Bank(this)); //new ClayMine(this) If you want to add the mining clay //various checks to see if show the gui yet Thread runTimeThread = new Thread() { @[member=Override] public void run() { try { RunTime(); } catch (Exception e) { log(e.getMessage()); } } }; runTimeThread.start(); } public int onLoop() throws InterruptedException{ for (Node n : nodes){ if(n.validate()){ status = n.status(); if(n.execute()) { return random(200,400); } } } return random(250,400); } @SuppressWarnings("unused") private void createGUI() { // TODO Auto-generated method stub //code for the GUI } @SuppressWarnings("unused") private State getState() { return null; } @[member=Override] public void onExit() { isRunning = false; log("Thanks for running the script!"); } public final String formatTime(final long ms){ long s = ms / 1000, m = s / 60, h = m / 60; s %= 60; m %= 60; h %= 24; return String.format("%02d:%02d:%02d", h, m, s); } private void RunTime() throws InterruptedException { long startTime = System.currentTimeMillis(); while(isRunning) { elapsed = (System.currentTimeMillis() - startTime); sleep(1000); } } private String GetRunTime() { long hours = (elapsed / (1000 * 60 * 60)) % 24; long minutes = (elapsed / (1000 * 60)) % 60; long seconds = (elapsed / 1000) % 60; return String.format("%02d:%02d:%02d", hours, minutes, seconds); } @[member=Override] public void onPaint(Graphics2D g) { int x = getMouse().getPosition().x; int y = getMouse().getPosition().y; g.drawLine(0, y, 765, y); g.drawLine(x, 0, x, 503); DrawUpdate(g); } private void DrawUpdate(Graphics2D g) { g.setColor(new Color(0, 0, 0, 80)); g.fillRect(4, 280, 512, 58); g.setColor(Color.white); g.setFont(new Font("Consolas", Font.PLAIN, 12)); //g.drawString("Mule trader script by Elvito!", 10, 40); g.drawString("Status " + status, 10, 55); g.drawString("log " + log, 20, 371); @SuppressWarnings("unused") final long runTime = System.currentTimeMillis() - startTime; g.setColor(Color.GREEN); g.drawString("RunTime: " + GetRunTime(), 16, 325); OresTransfeered =+ inv.getAmount(435); g.drawString("Ores traded " + OresTransfeered, 561, 449); } } fish node: package GreatestFisher; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.lang.Thread.State; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.osbot.rs07.api.Inventory; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import Scripts.Node; import data.Data; @ScriptManifest(author = "Elvitos Fisher", info = "Fishes+Loots", name = "Fishing and Loot", version = .1, logo = "Loots while fishing") public class FishNLoot extends Script{ public static Data data; //private SettingsGUI gui; public long OresTransfeered; public long startTime; public String status; public String log; private Inventory inv; private long elapsed; private boolean isRunning = false; private List<Node> nodes = new ArrayList<Node>(); public void onStart() { //createGUI(); isRunning = true; Collections.addAll(nodes, new Loot(this), new Fish(this), new Banking(this), new Bank(this)); //new ClayMine(this) If you want to add the mining clay //various checks to see if show the gui yet Thread runTimeThread = new Thread() { @[member=Override] public void run() { try { RunTime(); } catch (Exception e) { log(e.getMessage()); } } }; runTimeThread.start(); } public int onLoop() throws InterruptedException{ for (Node n : nodes){ if(n.validate()){ status = n.status(); if(n.execute()) { return random(200,400); } } } return random(250,400); } @SuppressWarnings("unused") private void createGUI() { // TODO Auto-generated method stub //code for the GUI } @SuppressWarnings("unused") private State getState() { return null; } @[member=Override] public void onExit() { isRunning = false; log("Thanks for running the script!"); } public final String formatTime(final long ms){ long s = ms / 1000, m = s / 60, h = m / 60; s %= 60; m %= 60; h %= 24; return String.format("%02d:%02d:%02d", h, m, s); } private void RunTime() throws InterruptedException { long startTime = System.currentTimeMillis(); while(isRunning) { elapsed = (System.currentTimeMillis() - startTime); sleep(1000); } } private String GetRunTime() { long hours = (elapsed / (1000 * 60 * 60)) % 24; long minutes = (elapsed / (1000 * 60)) % 60; long seconds = (elapsed / 1000) % 60; return String.format("%02d:%02d:%02d", hours, minutes, seconds); } @[member=Override] public void onPaint(Graphics2D g) { int x = getMouse().getPosition().x; int y = getMouse().getPosition().y; g.drawLine(0, y, 765, y); g.drawLine(x, 0, x, 503); DrawUpdate(g); } private void DrawUpdate(Graphics2D g) { g.setColor(new Color(0, 0, 0, 80)); g.fillRect(4, 280, 512, 58); g.setColor(Color.white); g.setFont(new Font("Consolas", Font.PLAIN, 12)); //g.drawString("Mule trader script by Elvito!", 10, 40); g.drawString("Status " + status, 10, 55); g.drawString("log " + log, 20, 371); @SuppressWarnings("unused") final long runTime = System.currentTimeMillis() - startTime; g.setColor(Color.GREEN); g.drawString("RunTime: " + GetRunTime(), 16, 325); OresTransfeered =+ inv.getAmount(435); g.drawString("Ores traded " + OresTransfeered, 561, 449); } } Banking Node: package GreatestFisher; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.script.Script; import Scripts.Node; import data.Data; public class Banking extends Node { FishNLoot caller = new FishNLoot(); NPC banker = sA.npcs.closest(395); Data supply = new Data(); public Banking(Script sA) { super(sA); // TODO Auto-generated constructor stub } public boolean validate() throws InterruptedException{ return banker!=null && banker.isOnScreen(); } public boolean execute() throws InterruptedException{ if(sA.bank.isOpen()){ sA.bank.depositAllExcept(supply.F_equipment); } else{ } sA.bank.open(); caller.log ="Banking"; return false; } } Bank node: package GreatestFisher; import org.osbot.rs07.api.Players; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.event.WebWalkEvent; import org.osbot.rs07.script.Script; import Scripts.Node; import data.Data; import nodes.Wait; @SuppressWarnings("unused") public class Bank extends Node { private Data data; NPC banker = sA.npcs.closest(395); public Bank(Script sA) { super(sA); // TODO Auto-generated constructor stub } public boolean validate() throws InterruptedException{ //// Checking if inventory is full, and if so, is our player in the bank or not return sA.inventory.isFull() && !data.EBank.contains(sA.players.myPosition()) && !banker.isOnScreen(); } public boolean execute() throws InterruptedException { sA.settings.setRunning(true); WebWalkEvent webEvent = new WebWalkEvent(Banks.EDGEVILLE); webEvent.execute(); return false; } } Node class: package Scripts; import org.osbot.rs07.script.Script; public abstract class Node { public Script sA; public Node(Script sA){ this.sA = sA; } public String status(){ return ""; } public abstract boolean validate() throws InterruptedException; public abstract boolean execute() throws InterruptedException; } Any help at all would be amazing. Im lagging out soon as inventory is full. I used Dunks Path maker for the area. When I exported the jar, i included my Data constant class, and my Node.java class also.
-
[Guide]Types of Entities and how to use them correctly
TheGreatests replied to Vilius's topic in Tutorials
So what "public void interactCustom(Entity entity, String action){ if(entity.isVisible()) entity.interact(action); else getCamera().toEntity(entity); }" Is basically doing is clicking it no matter what. I am assuming or could you maybe go into more depth of each parameter and its purpose. This method passes a string called action to it using entity. So its basically clicking it right? -
Are you using proxies, if so which ones may I ask?
-
Want to buy as many gold bars as I can...
TheGreatests replied to sudoinit6's topic in Scripting Help
if you wanna teamviewer i'll help you out bro, or give me the script and i'll work on it. -
Well what I am looking to do is calculate that if surrounding players is more then 3, to either hop or move to the next rock... int Tomuch = 3; the thing is, I cant do <=, or >= for (Player player : getPlayers().getAll()) { ///////Calculating players around if(player.equals(Tomuch)){ //hop //walktootherrock } } Could I use this?? for (Player player : getPlayers().getAll()) { ///////Calculating players around if(player.getIndex() <=2){ //do something } }
-
Want to buy as many gold bars as I can...
TheGreatests replied to sudoinit6's topic in Scripting Help
Try this int barsToBuy; barsToBuy = getInventory().getAmount("Coins") / 100); Honestly bro, I am pretty new to this all over again. im trying to figure out how to calculate all players around me and if the players are more then 3, to hop worlds. -
yup I did, doesnt buy stuff from aubury
-
Want to buy as many gold bars as I can...
TheGreatests replied to sudoinit6's topic in Scripting Help
You're using getamount wrong. -
Everytime I start her up shes lagging me out. I guess I can make myself one. hopefully its not 2 hard