Jump to content

Gearfighter

Members
  • Posts

    77
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Gearfighter

  1. yeah i would like to also know how you are going? Im going to be starting up something with a mate of mine
  2. I did see a video not too long ago about level 3 accounts, fresh off tutorial island getting logged out. Could it be kinda like an insta flag from jagex atm?
  3. Hey guys, how are we all. My name is Gearfighter, i did a couple easy scripts a couple of years ago. Ive been away from the botting scene for a while, but looking to pick it back up again. Just wanted to say hi to you all, Old faces and new faces. Im sure i will see you all around on the forums/discord
  4. Haha, 100%. You never truly leave OSRS, its always with you
  5. Me and a mate are going to be doing this. I know him IRL so hopefully should be ok haah
  6. Gearfighter

    Zzzzzz

    Wow it does seem everyone is starting to come back lol. Ive just started myself
  7. Gearfighter

    Lol

    Simple, use weed on pot, tinderbox on pot full of weed...... sit back and relax
  8. @@CloudCode I have cleaned up my code a bit since this post, if you want, private message me your code and i can help you out where i can
  9. so would it be something like if (getBank().contains("Pizza base") && (getBank().contains("Tomato") { getBank().withdraw("Pizza base", 14) if (getInventory().contains("Pizza base") getBank().withdraw("Tomato", 14) else if (getBank().contains("Incomplete pizza") && (getBank().contains("Cheese") { getBank().withdraw("Incomplete pizza", 14) if (getInventory().contains("Incomplete pizza") getBank().withdraw("Cheese", 14) else if..... ? @House im scared
  10. @House so do i basically make 2 states? one for withdrawing items and the other for combining? also what about the cooking problem?
  11. Hi all, ive got 2 problems with my script. First is that if the script starts with the bank open it wont do anything, but if i close the bank the bot starts(and when it starts it opens the bank....) second one is that i want it to make all the uncooked pizzas first before cooking them, but once it makes all the uncooked one it just goes into an endless loop of opening and closing the bank. Here is my code (hope it something simple im overlooking): import java.awt.Graphics2D; import java.awt.font.NumericShaper.Range; import org.osbot.rs07.api.Bank; import org.osbot.rs07.api.Inventory; import org.osbot.rs07.api.Mouse; import org.osbot.rs07.api.Objects; import org.osbot.rs07.api.Settings; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.api.model.Player; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.input.mouse.MiniMapTileDestination; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; import org.osbot.rs07.api.ui.RS2Widget; @SuppressWarnings("unused") @ScriptManifest(name = "Gearz Pizza Maker", author = "Gearfighter", version = 1.0, info = "About your script", logo = "Logo of your script. Imgur links here [DIRECT LINKS ONLY]") public class GearzPizzaMaker extends Script { public void makeAll() throws InterruptedException { RS2Widget PizzaWidget; PizzaWidget = getWidgets().get(309, 6); if (PizzaWidget != null && PizzaWidget.isVisible()) if (PizzaWidget.interact("Make all")) sleep(18000); } public void cookAll() throws InterruptedException { RS2Widget UnpizzaWidget = widgets.get(307, 4); if (UnpizzaWidget != null && UnpizzaWidget.isVisible()) sleep(500); UnpizzaWidget.interact("Cook All"); new ConditionalSleep(1000000) { @ Override public boolean condition() throws InterruptedException { return !getInventory().contains("Uncooked pizza"); } }.sleep(); } public void onStart() { log("Ima Make some a Pizza"); } private enum State { Basetomato, Incompcheese, Uncookbank, Incompbank, Uncooking, Basefail, Tomfail, Cheesefail, Plainbank } private State getState() { if (getInventory().isEmpty()) { return State.Basetomato; } else if (getInventory().contains("Incomplete pizza")) { return State.Incompcheese; } else if (getInventory().contains("Uncooked pizza")) { return State.Uncookbank; } else if (getBank().contains("Incomplete pizza")) { return State.Incompbank; } else if (!getBank().contains("Pizza base") && (!getBank().contains("Incomplete pizza"))) { return State.Uncooking; } else if (getInventory().onlyContains("Pizza base")) { return State.Basefail; } else if (getInventory().onlyContains("Tomato")) { return State.Tomfail; } else if (getInventory().onlyContains("Cheese")) { return State.Cheesefail; } else if (getInventory().contains("Plain pizza") && (!getInventory().contains("Uncooked pizza"))) { return State.Plainbank; } return null; } @[member=Override] public void onExit() { // Code here will execute after the script ends // Examples: logs, listeners, or dynamic sig data. Really anything that // needs to be ended when the user of your script stops it. log("Script ended! Please leave feedback on the forums"); } @[member=Override] public int onLoop() throws InterruptedException { switch (getState()) { case Basetomato: if (!getBank().isOpen()) { getBank().open(); getBank().withdraw("Pizza base", 14); sleep(300); getBank().withdraw("Tomato", 14); getBank().close(); if (getInventory().getItem("Pizza base").interact("Use", "Pizza base")) if (getInventory().getItem("Tomato").interact("Use", "Tomato")) sleep(1000); makeAll(); } break; case Incompcheese: if (!getBank().isOpen()) { getBank().open(); sleep(300); if (!getInventory().contains("Pizza base")); getBank().withdraw("Cheese", 14); getBank().close(); if (getInventory().getItem("Incomplete pizza").interact("Use", "Incomplete pizza")) if (getInventory().getItem("Cheese").interact("Use", "Cheese")) sleep(800); makeAll(); } break; case Uncookbank: if (!getBank().isOpen());{ getBank().open(); sleep(500); getBank().depositAll(); getBank().close(); } break; case Incompbank: sleep(300); { getBank().withdraw("Incomplete pizza", 14); if (getInventory().contains("Incomplete pizza")); sleep(300); getBank().withdraw("Cheese", 14); getBank().close(); if (getInventory().getItem("Incomplete pizza").interact("Use", "Incomplete pizza")) if (getInventory().getItem("Cheese").interact("Use", "Cheese")) sleep(500); makeAll(); } break; case Uncooking: sleep(300); { getBank().withdrawAll("Uncooked pizza"); sleep(500); getBank().close(); RS2Widget UnpizzaWidget = widgets.get(307, 4); RS2Object Range = objects.closest("Range");{ if (Range.isVisible()); if (getInventory().getItem("Uncooked pizza").interact("Use", "Uncooked pizza")) if (Range.interact("Use")); new ConditionalSleep(10000) { @ Override public boolean condition() throws InterruptedException { return (UnpizzaWidget != null && (UnpizzaWidget.isVisible())); } }.sleep(); cookAll(); } } break; case Basefail: if (!getBank().isOpen()) { getBank().open(); sleep(800); getBank().withdraw("Tomato", 14); getBank().close(); } break; case Cheesefail: if (!getBank().isOpen()) { getBank().open(); sleep(800); getBank().withdraw("Incomplete pizza", 14); getBank().close(); } break; case Tomfail: if (!getBank().isOpen()) { getBank().open(); sleep(800); getBank().withdraw("Pizza base", 14); getBank().close(); } break; default: break; } return 0; } }
  12. Thanks for all your help and ideas, my script is now working again!
  13. Hi guys, got a script that i am NEARLY done, but now it doesnt seem to wont to work at all when i start it. Can i get you guys to have a look and see what might be the cause of it not starting? cheers, Gearfighter import java.awt.Graphics2D; import org.osbot.rs07.api.Bank; import org.osbot.rs07.api.Inventory; import org.osbot.rs07.api.Mouse; import org.osbot.rs07.api.Objects; import org.osbot.rs07.api.Settings; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.api.model.Player; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.input.mouse.MiniMapTileDestination; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; import org.osbot.rs07.api.ui.RS2Widget; @SuppressWarnings("unused") @ScriptManifest(name = "Gearz Pizza Maker", author = "Gearfighter", version = 1.0, info = "About your script", logo = "Logo of your script. Imgur links here [DIRECT LINKS ONLY]") public class GearzPizzaMaker extends Script { public void makeAll() throws InterruptedException { RS2Widget PizzaWidget; PizzaWidget = getWidgets().get(309, 6); if (PizzaWidget != null && PizzaWidget.isVisible()) if (PizzaWidget.interact("Make all")) sleep(18000); } public void onStart() { log("Ima Make some a Pizza"); } private enum State { Bank, Banka, Bankb, Bank1, Bank1a, Pizza, Bank2, Pizza2, Bank3 } private State getState() { if (getInventory().isEmpty() && !getBank().contains("Incomplete pizza")) { return State.Bank; } if (getInventory().contains("Pizza base") && getInventory().contains("Tomato")) { return State.Pizza; } if (getInventory().contains("Incomplete pizza") && !getInventory().contains("Cheese")) { return State.Bank1; } if (getInventory().contains("Incomplete pizza") && getInventory().contains("Cheese")) { return State.Pizza2; } if (getInventory().contains("Uncooked pizza")) { return State.Bank2; } if (getBank().contains("Incomplete pizza")) { return State.Bank3; } if (getInventory().onlyContains("Tomato")) { return State.Banka; } if (getInventory().onlyContains("Pizza base")) { return State.Bankb; } if (getInventory().onlyContains("Cheese")) { return State.Bank1a; } return null; } @[member=Override] public void onExit() { // Code here will execute after the script ends // Examples: logs, listeners, or dynamic sig data. Really anything that // needs to be ended when the user of your script stops it. log("Script ended! Please leave feedback on the forums"); } @[member=Override] public int onLoop() throws InterruptedException { switch (getState()) { case Bank: if (!getBank().isOpen()) { getBank().isOpen(); getBank().withdraw("Pizza base", 14); if (getInventory().contains("Pizza base")) ; sleep(1000); getBank().withdraw("Tomato", 14); getBank().close(); } break; case Banka: if (!getBank().isOpen()) { getBank().open(); getBank().withdraw("Pizza base", 14); getBank().close(); } break; case Bankb: if (!getBank().isOpen()) { getBank().open(); getBank().withdraw("Tomato", 14); getBank().close(); } break; case Pizza: if (getInventory().getItem("Pizza base").interact("Use", "Pizza base")) if (getInventory().getItem("Tomato").interact("Use", "Tomato")) sleep(3000); makeAll(); break; case Bank1: if (!getBank().isOpen()) { getBank().open(); getBank().withdraw("Cheese", 14); getBank().close(); } break; case Bank1a: if (!getBank().isOpen()) { getBank().open(); getBank().withdraw("Incomplete pizza", 14); getBank().close(); } break; case Bank2: if (!getBank().isOpen()) { getBank().open(); getBank().depositAll(); } break; case Pizza2: if (getInventory().getItem("Incomplete pizza").interact("Use", "Incomplete pizza")) if (getInventory().getItem("Cheese").interact("Use", "Cheese")) sleep(3000); makeAll(); case Bank3: if (!getBank().isOpen()) { getBank().open(); sleep(800); getBank().withdraw("Incomplete pizza", 14); if (getInventory().contains("Incomplete pizza")); sleep(1000); getBank().withdraw("Cheese", 14); getBank().close(); } break; } return 0; } }
  14. Im making a Pizza maker script but i cant get it to interact with the widget. it just goes to the next state import java.awt.Graphics2D; import org.osbot.rs07.api.Bank; import org.osbot.rs07.api.Inventory; import org.osbot.rs07.api.Mouse; import org.osbot.rs07.api.Objects; import org.osbot.rs07.api.Settings; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.api.model.Player; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.input.mouse.MiniMapTileDestination; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; import org.osbot.rs07.api.ui.RS2Widget; @SuppressWarnings("unused") @ScriptManifest(name = "Gearz Pizza Maker", author = "Gearfighter", version = 1.0, info = "About your script", logo = "Logo of your script. Imgur links here [DIRECT LINKS ONLY]") public class GearzPizzaMaker extends Script { public void onStart() { log("Ima Make some a Pizza"); } private enum State { Bank, Bank1, Pizza, Bank2, Pizza2 } private State getState() { if (inventory.isEmpty()) { return State.Bank; } if (getInventory().getAmount("Pizza base") == 14 && (getInventory().getAmount("Tomato") == 14)) { return State.Pizza; } if (getInventory().getAmount("Incomplete pizza") == 14) { return State.Bank1; } if (inventory.contains("Incomplate pizza", "Cheese")) { return State.Pizza2; } if (inventory.contains("Uncooked pizza")) ; return State.Bank2; } @[member=Override] public void onExit() { // Code here will execute after the script ends // Examples: logs, listeners, or dynamic sig data. Really anything that // needs to be ended when the user of your script stops it. log("Script ended! Please leave feedback on the forums"); } @[member=Override] public int onLoop() throws InterruptedException { switch (getState()) { case Bank: if (!getBank().isOpen()) { getBank().open(); getBank().withdraw("Pizza base", 14); if (getInventory().getAmount("Pizza base") == 14) getBank().withdraw("Tomato", 14); getBank().close(); } break; case Pizza: RS2Widget PizzaWidget; PizzaWidget = getWidgets().get(309, 6); if (getInventory().getAmount("Pizza base") == 14) if (getInventory().getAmount("Tomato") == 14) if (getInventory().getItem("Pizza base").interact("Use", "Pizza base")) if (getInventory().getItem("Tomato").interact("Use", "Tomato")) if (PizzaWidget != null && PizzaWidget.isVisible()) { if (PizzaWidget.interact("Make all")) new ConditionalSleep(50000) { // not sure // how you // want to // do this // but this // is how u // implement // conditional // sleeps @[member=Override] public boolean condition() throws InterruptedException { return getInventory().getAmount("Incomplete pizza") == 14; // if // true // stop // sleeping..helpful // to // combat // latency..(lagg // etc) } }.sleep(); break; } case Bank1: if (inventory.contains("Incomplete pizza")) ; if (!getBank().isOpen()) { getBank().open(); getBank().withdraw("Cheese", 14); break; } case Bank2: if (inventory.contains("Uncooked pizza")) ; if (!getBank().isOpen()) { getBank().open(); getBank().depositAll(); break; } case Pizza2: PizzaWidget = getWidgets().get(309, 6); if (inventory.contains("Incomplete pizza", "Cheese")) ; if (getInventory().getItem("Incomplete pizza").interact("Use", "Incomplete pizza")) if (getInventory().getItem("Cheese").interact("Use", "Cheese")) ; if (PizzaWidget != null) PizzaWidget.interact("Make all"); break; } return 0; } private void sleep(int i, int j) { // TODO Auto-generated method stub } } anything to help make it better and for me to learn would be greatly appreciated
  15. Gearfighters Frog Killer! Want to get some easy afk combat levels? Have around 30 att,str,def,mage,range? Then this script is for you! Currently this script focus' on killing Giant Frogs and if there isnt any available, they will kill Big Frogs. Start in the Frog area which is in lumby swamp Will be adding in an option to kill one or the other in future updates with a GUI as well as adding in a sexy paint for you all as well as deathwalk Hope you like it download: https://www.mediafire.com/?sp8jddgg3zkje9q
  16. Hey Explv, thankyou for this, i will give it a shot. its very helpful and informative!
  17. How would i go about putting that into my script. sorry for being nooby but ive been looking all over the place trying to do it
  18. Hi everyone, I am currently nearly finished with the combat portion of my script, as it is attacking only one thing at a time, and waiting till it dies to attack another NPC, and also not attacking other NPC's already in combat. Something i thought that would be really good to polish of the script off would be to add in a hover option so that as soon as the npc the bot is killing dies, it clicks on the next available, not in combat npc. Just something that would be good as it would make the bot get potentionally more exp/hour. http://pastebin.com/7XCBwFYi That is my pastebin of the script i have currently. What would i need to add and explain why so i can learn. And is there anything i need to change in my script to make the script run smoother or be more functional? I have been researching as well so its not like im asking for an easy cop out. i have been trying to learn java for a couple days and looking at all different open source scripts to learn more and more. Cheers in advance, Gearfighter
  19. Prolax that was done in the else statement. And how would I go about a hover function? And would it change targets if the target it was hovered over started getting attacked?
  20. If i am only attacking one thing is it worth making a filter for it? is it personal preference? or does it just make the code that little bit neater?
  21. ***UPDATE**** http://pastebin.com/8XLQ1iFj This is the new updated one i just worked out today. Currently Fixes the multiple clicking on the npc while in combat problem. Now just need to work on the attacking npcs currently under attack. If you could just have a look at my coding and let me know if its ok or if it is able to be trimmed down/cleaned up that would be awesome. Thankyou all for your help so much, looking to be a contributor here. Cheers, Gearfighter
  22. Here is my code (sorry i dont know how to pastebin right lol). Like i said this is very basic and i just want it to attack properly first before i throw anything else into the mix import java.awt.Graphics2D; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(name = "Gearz Flesh Crawler Killer", author = "Alek", version = 1.0, info = "", logo = "") public class GearzFleshCrawlerKiller extends Script { @Override public void onStart() { log("Time to kill some Flesh Crawlers"); } @Override public void onExit() { } @Override public int onLoop() throws InterruptedException { NPC FleshCrawler = npcs.closest("Flesh Crawler"); myPlayer().getCombatTime(); myPlayer().isMoving(); { if (FleshCrawler != null) { if (FleshCrawler.isVisible()) { FleshCrawler.interact("Attack"); sleep(random(600, 900)); } else { camera.toEntity(FleshCrawler); } } sleep(random(300, 600)); } return (random(600, 900)); // The amount of time in milliseconds before the loop starts over } @Override public void onPaint(Graphics2D g) { // This is where you will put your code for paint(s) } } Also another thing i just thought of is how do i make it so it doesnt attack mobs that are already under attack from someone else?
  23. Hi Everyone, My name is Gearfighter, I am interested in making a script (to start off a Flesh Crawler script) I have an understanding of some of the basics and i have looked at every tutorial i can find on this site, and any other site i could find. I was just wondering if anyone wanted to help teach me how to make a basic script. Currently these are the problems i am running into. Bot clicks regulary on NPC it is attacking (when i think that it should only be once) If another NPC of the same name comes closer then the one im attacking the bot tries to switch to that npc, even though it is still under attack. I think currently these are my first 2 issues that i am currently having. i will implement banking and walking at some stage, but i want to get the basic function of what the script is right first, and nice and clean as well. If you can reply here, PM me or leave me a skype username so that i can get some help, that would be greatly appreieted. If you need any more information, dont hesitate to ask and i will try my best. Cheers, Gearfighter
  24. Hi Molly. I have a question about black jacking. I tried this at the menphite people in your script, but most of the time he would fail, the NPC would be become aggressive and the bot even though it says its status is "run: it doesnt run away, can you just confirm yourself if its just me or if its the bot, and if it is me, tell me what settings you used? Cheers
×
×
  • Create New...