July 27, 20178 yr Quote import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.ui.Message; import org.osbot.rs07.api.webwalk.INodeRouteFinder; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.util.List; import org.osbot.rs07.api.Bank; import org.osbot.rs07.api.GroundItems; import org.osbot.rs07.api.Inventory; import org.osbot.rs07.api.Skills; import org.osbot.rs07.api.Walking; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.model.GroundItem; import org.osbot.rs07.api.model.Player; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; import java.awt.*; @ScriptManifest(name = "IronOreSlave", author = "Aeon", version = 1.0, info = "About your script", logo = "Logo of your script. Imgur links here [DIRECT LINKS ONLY]") public class Skeleton extends Script { public static Area zone = new Area(3295, 3239, 3298, 3237); String[] Ore = new String[]{"Iron ore"}; private long startTime; private int oc = 0; INodeRouteFinder finder; public int onLoop() throws InterruptedException { boolean breaker = false; if (!this.inventory.isFull()) getWalking().walk(new Position(3296, 3312, 0)); //walk to a tile walkingEvent.setEnergyThreshold(30); //if the inventory isnt full walk to the tile to get more } boolean breaker = false; int i = 0; while (i < this.Ore.length) { for (GroundItem g : this.groundItems.getAll()) { if (!g.getName().equals(this.Ore[i]) || g == null) continue; this.log("more ore!" + this.Ore[i]); GroundItem a = this.groundItems.closest(new String[]{this.Ore[i]}); a.interact("Take"); this.oc++; }; while (this.myPlayer().!isAnimating(); // making it stop so it can pick up items without stopping by trying to do it over and over breaker = true; break; } else if (this.inventory.isFull()); getWalking().walk(new Position(3295,3234,0)); walkingEvent.setEnergyThreshold(30); Skeleton.new ConditionalSleep(3000, 600) { public boolean condition() throws InterruptedException { if zone contains myPlayer(); // trying to get it to meet the mule at a half way point and trade the ores over. } }.sleep(); } else { return; } } } Edited July 27, 20178 yr by aeondenied
July 27, 20178 yr Are you serious? Go and actually try to learn Java, follow some Java tutorials and only then attempt to make scripts. You can't just post some fucking completely syntactically and logically incorrect, unformatted code and expect someone to fix it for you. Edited July 27, 20178 yr by Explv
July 27, 20178 yr 1 hour ago, Explv said: Are you serious? Go and actually try to learn Java, follow some Java tutorials and only then attempt to make scripts. You can't just post some fucking completely syntactically and logically incorrect, unformatted code and expect someone to fix it for you. Question is, and I'm wondering. What IDE doesn't show these errors?
July 27, 20178 yr 30 minutes ago, Visty said: Question is, and I'm wondering. What IDE doesn't show these errors? np++
July 27, 20178 yr 1 hour ago, Visty said: Question is, and I'm wondering. What IDE doesn't show these errors?