-
Posts
59 -
Joined
-
Last visited
-
Feedback
0%
Profile Information
-
Gender
Male
Recent Profile Visitors
1504 profile views
JaggerNotchas's Achievements
Iron Poster (3/10)
11
Reputation
-
i fixed it kinda but still throwing these errors: https://gyazo.com/3e92e2cb80ac5a01ba05135fab31a4f8 import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(name = "WoodcutterScript", author = "Pgreen", version = 1.0, info = "Basic Woodcutting Script", logo = "") public class WoodcutterScript extends Script { private long startTime = System.currentTimeMillis(); private int logsCut = 0; private static final Area TREE_AREA = new Area(3163, 3287, 3167, 3290); @Override public void onStart() { log("Starting Woodcutter script..."); } @Override public void onExit() { log("Stopping Woodcutter script..."); } @Override public int onLoop() throws InterruptedException { // The onLoop() method contains the main logic of your script // Put the actions you want to repeat here // If we don't have an axe equipped, let's equip one if (!getEquipment().isWearingItem("Bronze axe") && !getInventory().contains("Bronze axe")) { getEquipment().equip("Bronze axe"); return random(1000, 1500); // Wait for the equipment screen to open } // If our inventory is full, let's go to the bank and deposit the logs if (getInventory().isFull()) { getBank().open(); getBank().depositAll("Logs"); getBank().close(); } else { // If we're not in the tree area, let's walk there if (!TREE_AREA.contains(myPlayer())) { getWalking().webWalk(TREE_AREA); } else { // If we're in the tree area, let's cut trees RS2Object tree = getObjects().closest("Tree"); if (tree != null && tree.isVisible()) { tree.interact("Chop down"); sleepUntil(() -> myPlayer().isAnimating() || myPlayer().isMoving(), random(3000, 5000)); sleepUntil(() -> !myPlayer().isAnimating(), random(5000, 8000)); logsCut++; } } } return random(100, 200); // Return a value to set the delay between loops } @Override public void onPaint(Graphics2D g) { // This is where you can add your custom paint // Calculate time spent woodcutting long timeElapsed = System.currentTimeMillis() - startTime; String timeFormatted = formatTime(timeElapsed); // Get woodcutting level int woodcuttingLevel = getSkills().getStatic(Skill.WOODCUTTING); // Draw the custom paint g.setColor(Color.BLACK); g.fillRect(10, 10, 180, 75); g.setColor(Color.WHITE); g.drawRect(10, 10, 180, 75); g.setFont(new Font("Arial", Font.PLAIN, 14)); g.drawString("Woodcutting Level: " + woodcuttingLevel, 15, 30); g.drawString("Logs Cut: " + logsCut, 15, 50); g.drawString("Time Running: " + timeFormatted, 15, 70); } private String formatTime(long time) { long seconds = time / 1000; long minutes = seconds / 60; long hours = minutes / 60; long days = hours / 24; return String.format("%02d:%02d:%02d:%02d", days, hours % 24, minutes % 60, seconds % 60); } // ... (Existing code) }
-
How would i go about fixing these errors? help would be much apprecaited! Errors: https://gyazo.com/47644d4e6e865d391b6eb94e8fd3191e Script code import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(name = "WoodcutterScript", author = "Pgreen", version = 1.0, info = "Basic Woodcutting Script", logo = "") public class WoodcutterScript extends Script { private static final Area TREE_AREA = new Area(3163, 3287, 3167, 3290); public class Woodcutter extends Script { private long startTime = System.currentTimeMillis(); private int logsCut = 0; // ... (Existing code) @Override public void onStart() { log("Starting Woodcutter script..."); } @Override public void onExit() { log("Stopping Woodcutter script..."); } @Override public int onLoop() throws InterruptedException { // The onLoop() method contains the main logic of your script // Put the actions you want to repeat here // If we don't have an axe equipped, let's equip one if (!getEquipment().isWearingItem("Bronze axe") && !getInventory().contains("Bronze axe")) { getEquipment().equip("Bronze axe"); return random(1000, 1500); // Wait for the equipment screen to open } // If our inventory is full, let's go to the bank and deposit the logs if (getInventory().isFull()) { getBank().open(); getBank().depositAll("Logs"); getBank().close(); } else { // If we're not in the tree area, let's walk there if (!TREE_AREA.contains(myPlayer())) { getWalking().webWalk(TREE_AREA); } else { // If we're in the tree area, let's cut trees RS2Object tree = getObjects().closest("Tree"); if (tree != null && tree.isVisible()) { tree.interact("Chop down"); sleepUntil(() -> myPlayer().isAnimating() || myPlayer().isMoving(), random(3000, 5000)); sleepUntil(() -> !myPlayer().isAnimating(), random(5000, 8000)); logsCut++; } } } return random(100, 200); // Return a value to set the delay between loops } @Override public void onPaint(Graphics2D g) { // This is where you can add your custom paint // Calculate time spent woodcutting long timeElapsed = System.currentTimeMillis() - startTime; String timeFormatted = formatTime(timeElapsed); // Get woodcutting level int woodcuttingLevel = getSkills().getStatic(Skill.WOODCUTTING); // Draw the custom paint g.setColor(Color.BLACK); g.fillRect(10, 10, 180, 75); g.setColor(Color.WHITE); g.drawRect(10, 10, 180, 75); g.setFont(new Font("Arial", Font.PLAIN, 14)); g.drawString("Woodcutting Level: " + woodcuttingLevel, 15, 30); g.drawString("Logs Cut: " + logsCut, 15, 50); g.drawString("Time Running: " + timeFormatted, 15, 70); } private String formatTime(long time) { long seconds = time / 1000; long minutes = seconds / 60; long hours = minutes / 60; long days = hours / 24; return String.format("%02d:%02d:%02d:%02d", days, hours % 24, minutes % 60, seconds % 60); } // ... (Existing code) } }
-
Could i get a trial of this please?
-
I never saw that u authed it till now and never even got to try it could u do it one more time pleasE? im sorry
-
could i get a trial of this script please?
-
could i have a trial of the script please? really considering buying it just wanna make sure it works for me.
-
Everytime i try and get it to use tele tabs it just uses the amulet of glory, and using the house tabs doesnt work either please... fix this or i want a refund.
-
Also if could u add the option to use Ardy cloak as a teleportation method? / make it so we can use the cloak and tabs as a teleportion method not just 1 option? PLESASE
-
Please add an option to edit profiles and delete settings it would be so helpful.
-
I ended up buying it so i hope this doesnt mess it up
-
Could i get a 24 hour trial of this bot please?
-
Can i have a trial please
-
can i have a trail now that mirror mode is fixed i never got to use it because i was using mirror mode before it was fixed
-
my bot just sits their and checks the gem what am i doing wrong? this is my inventoy https://gyazo.com/cd68299d32d11253b5bd2ec6c1c80a3f code fom log https://pastebin.com/t2adAmcv
-
Could i get a tial please?