Zezurge Posted July 25, 2017 Share Posted July 25, 2017 ZePotatoPick I was bored wanted to learn how to make a script. Here's the result. What it does: - Picks Potatos - Banks - Also features the most complex paint you've ever seen. - Makes you up to 30k/ph, ran this on 10 bots made a few Ms in a day. DL: https://www.dropbox.com/s/i3dnzma983ki2cd/ZePotatoPick.jar?dl=0 YAY I FINISHED A SCRIPT! 2 Quote Link to comment Share on other sites More sharing options...
Charlotte Posted July 25, 2017 Share Posted July 25, 2017 Nice try 4 Quote Link to comment Share on other sites More sharing options...
Apaec Posted July 25, 2017 Share Posted July 25, 2017 Congratulations! I've never seen such a beautiful paint (: 1 Quote Link to comment Share on other sites More sharing options...
Zezurge Posted July 25, 2017 Author Share Posted July 25, 2017 9 minutes ago, Charlotte said: Nice try thanks dawg Quote Link to comment Share on other sites More sharing options...
Twisted Staff Posted July 25, 2017 Share Posted July 25, 2017 boss shit haha 1 Quote Link to comment Share on other sites More sharing options...
Phaibooty Posted July 25, 2017 Share Posted July 25, 2017 The paint is next level 1 Quote Link to comment Share on other sites More sharing options...
Antonio Kala Posted July 25, 2017 Share Posted July 25, 2017 what's your next project? Any chance I can see the source of the script? Quote Link to comment Share on other sites More sharing options...
Zezurge Posted July 25, 2017 Author Share Posted July 25, 2017 15 minutes ago, Antonio Kala said: what's your next project? Any chance I can see the source of the script? import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.api.model.Player; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.api.ui.Message; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "Zezurge", info = "Potato pickin first script!", name = "ZezurgePotatos", version = 1.0, logo = "") public class main extends Script { int picked = 0; @Override public void onStart() { log("Let's get started!"); } private enum State { PICK, BANK }; private State getState() { if (inventory.isFull()) return State.BANK; return State.PICK; } @Override public void onMessage(Message message) throws InterruptedException{ if(message.getMessage().toString().contains("You pick a potato.")){ picked = picked+1; } } @Override public int onLoop() throws InterruptedException { Player p = myPlayer(); Position position = myPosition(); Area pfeild = new Area(3136, 3292, 3158, 3266); RS2Object tater = getObjects().closest("Potato"); switch (getState()) { case PICK: if (!p.isAnimating() && !p.isMoving()){ if (pfeild.contains(position)){ if (tater != null) { tater.interact("Pick"); sleep(random(1200,1700)); } }else{ getWalking().webWalk(pfeild); } } break; case BANK: if (Banks.DRAYNOR.contains(p)){ RS2Object booth = getObjects().closest("Bank booth"); booth.interact("Bank"); sleep(random(1500, 2000)); getBank().depositAll(); }else{ getWalking().webWalk(Banks.DRAYNOR); random(200,500); } break; } return random(200, 300); } @Override public void onExit() { log("Thanks for running my PotatoPicker!"); } @Override public void onPaint(Graphics2D g) { g.drawString("Potatos Picked: " + picked, 50, 50); } } Im working on a bone picker & burier for fresh spawns to get a little prayer exp as we speak. Quote Link to comment Share on other sites More sharing options...
mercylad Posted July 25, 2017 Share Posted July 25, 2017 I woke up in a new potatoeBugatti 1 Quote Link to comment Share on other sites More sharing options...
Antonio Kala Posted July 25, 2017 Share Posted July 25, 2017 1 hour ago, Zezurge said: import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.api.model.Player; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.api.ui.Message; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "Zezurge", info = "Potato pickin first script!", name = "ZezurgePotatos", version = 1.0, logo = "") public class main extends Script { int picked = 0; @Override public void onStart() { log("Let's get started!"); } private enum State { PICK, BANK }; private State getState() { if (inventory.isFull()) return State.BANK; return State.PICK; } @Override public void onMessage(Message message) throws InterruptedException{ if(message.getMessage().toString().contains("You pick a potato.")){ picked = picked+1; } } @Override public int onLoop() throws InterruptedException { Player p = myPlayer(); Position position = myPosition(); Area pfeild = new Area(3136, 3292, 3158, 3266); RS2Object tater = getObjects().closest("Potato"); switch (getState()) { case PICK: if (!p.isAnimating() && !p.isMoving()){ if (pfeild.contains(position)){ if (tater != null) { tater.interact("Pick"); sleep(random(1200,1700)); } }else{ getWalking().webWalk(pfeild); } } break; case BANK: if (Banks.DRAYNOR.contains(p)){ RS2Object booth = getObjects().closest("Bank booth"); booth.interact("Bank"); sleep(random(1500, 2000)); getBank().depositAll(); }else{ getWalking().webWalk(Banks.DRAYNOR); random(200,500); } break; } return random(200, 300); } @Override public void onExit() { log("Thanks for running my PotatoPicker!"); } @Override public void onPaint(Graphics2D g) { g.drawString("Potatos Picked: " + picked, 50, 50); } } Im working on a bone picker & burier for fresh spawns to get a little prayer exp as we speak. Cool man I'm also about to start scripting, any advice? how did you get started Quote Link to comment Share on other sites More sharing options...
Juggles Posted July 25, 2017 Share Posted July 25, 2017 1 hour ago, Zezurge said: import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.api.model.Player; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.api.ui.Message; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "Zezurge", info = "Potato pickin first script!", name = "ZezurgePotatos", version = 1.0, logo = "") public class main extends Script { int picked = 0; @Override public void onStart() { log("Let's get started!"); } private enum State { PICK, BANK }; private State getState() { if (inventory.isFull()) return State.BANK; return State.PICK; } @Override public void onMessage(Message message) throws InterruptedException{ if(message.getMessage().toString().contains("You pick a potato.")){ picked = picked+1; } } @Override public int onLoop() throws InterruptedException { Player p = myPlayer(); Position position = myPosition(); Area pfeild = new Area(3136, 3292, 3158, 3266); RS2Object tater = getObjects().closest("Potato"); switch (getState()) { case PICK: if (!p.isAnimating() && !p.isMoving()){ if (pfeild.contains(position)){ if (tater != null) { tater.interact("Pick"); sleep(random(1200,1700)); } }else{ getWalking().webWalk(pfeild); } } break; case BANK: if (Banks.DRAYNOR.contains(p)){ RS2Object booth = getObjects().closest("Bank booth"); booth.interact("Bank"); sleep(random(1500, 2000)); getBank().depositAll(); }else{ getWalking().webWalk(Banks.DRAYNOR); random(200,500); } break; } return random(200, 300); } @Override public void onExit() { log("Thanks for running my PotatoPicker!"); } @Override public void onPaint(Graphics2D g) { g.drawString("Potatos Picked: " + picked, 50, 50); } } Im working on a bone picker & burier for fresh spawns to get a little prayer exp as we speak. He's going to steal your work. Never show the code! Quote Link to comment Share on other sites More sharing options...
Zezurge Posted July 25, 2017 Author Share Posted July 25, 2017 41 minutes ago, Juggles said: He's going to steal your work. Never show the code! Haha i don't mind very simple script i feel most people could do! 50 minutes ago, Antonio Kala said: Cool man I'm also about to start scripting, any advice? how did you get started Apeac and Explv both have very nice beginning scripting guides here - Quote Link to comment Share on other sites More sharing options...
Antonio Kala Posted July 25, 2017 Share Posted July 25, 2017 2 hours ago, Juggles said: He's going to steal your work. Never show the code! No I just want to learn! I need open source to learn Quote Link to comment Share on other sites More sharing options...
Juggles Posted July 25, 2017 Share Posted July 25, 2017 Just now, Antonio Kala said: No I just want to learn! I need open source to learn You can pay me and ill write you open source scripts Quote Link to comment Share on other sites More sharing options...
blokus Posted August 13, 2017 Share Posted August 13, 2017 On 7/25/2017 at 3:40 PM, Antonio Kala said: No I just want to learn! I need open source to learn There's a lot of scripts that are public, start with just trying one method at a time in a fresh script and tweak it a bit until you fully understand it. Then save it and start a new one. For a basic script it's just finding objects and npcs and interacting with them and your inventory. Start there and you'll be a pro in no time many public scripts are open source and have :Find NPC, Walk to bank, Walk to location, Eat food, and Interact with object On 7/25/2017 at 3:41 PM, Juggles said: You can pay me and ill write you open source scripts The greed is real Quote Link to comment Share on other sites More sharing options...