Jump to content

imancity

Trade With Caution
  • Posts

    323
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by imancity

  1. Hello, OSBot! This is my first attempt at a very simple script. After following countless tutorials/bothering the amazing members of this forum, I made this. It will go and buy Kebabs from Karim in Al-Kharid for 1gp each which you can later resell for a nice profit. INSTRUCTIONS: Start in the Al-Kharid bank, the Kebab shop, or anywhere in between with coins in your inventory, the bot will do the rest. Once out of coins, it will log out. FEATURES: -Does a bad-ass job of walking to the store, buying a shit ton of Kebabs, and banking them. -Dope bright-green paint to tell you the run time and how many Kebab you've bought. -No special anti-ban, but it goes at about a human pace. THANKS! Please leave feedback, and enjoy the script. Definitely gonna work on more intricate ones as I learn more. DOWNLOAD LINK (just copy and paste all 4 of the files into your OSBot scripts folder) Here is a scan of the ".rar" with AVG showing it is clean: Proggies!
  2. Sweet! Thanks a ton. What exactly is the 'MetalDragonsMain'? Do I put whatever I like there or?
  3. It does! How would I do this message listener? Never heard of it tbh.
  4. Sorry for that question I meant more of walking-wise. Would webWalk work or should I split it up to go to the gate then to GE. I've never scripted such long distances.
  5. I made a simple Kebab Buying script, but how would I keep track of how many are bought? I've tried having it get the amount of the inventory but I can't seem to figure out how to keep it adding onto a number. I tried to do a KebabCount = KebabCount + 1 after the dialogue where the Kebab is bought but nope. ALSO, if you're reading this, what would be my best way of walking my player from Al Kharid to the GE so he can sell the Kebabs. Not planning on adding this yet but just wondering.
  6. Ohh! I see, that makes sense. So for webWalking do i need Areas? I wanted to use webWalking but couldn't figure it out too well.
  7. Thanks!! I was thinking to do something like that but didn't know how to word it. Appreciate it. For some reason my code is making the contains red, do I need to import something in the beginning in relation to it?
  8. So I followed some Java tutorials and explored a bit more and managed to get my script from earlier to run. Now my problem is that when the player talks to the NPC, he keeps on clicking the NPC (after the random sleep i set) and also keeps clicking the first dialogue button. Is there a way to have him complete on BUY before starting over? First time coding and scripting, I appreciate any help! case BUY: state = "Walking To Karim"; getWalking().walk(kebabstore); npcs.closest("Karim").interact("Talk-to"); sleep(random(300,400)); if (dialogues.isPendingContinuation()) { dialogues.clickContinue();} sleep(random(300,400)); if (dialogues.isPendingOption()) { dialogues.selectOption("Yes please.");} sleep(random(300,400)); break;
  9. Will do. My roommate is in grad school for Computer Science so I was just having him do this with me, and I wanted to give it a shot myself. I'll def learn some Java to make this easier on me.
  10. For the second part where you want me to remove the */, it makes my whole bunch of code green. Doesn't seem right.
  11. I've never written code, let alone scripts, but I will for sure pay attention and be careful. Just trying to run my first one and then I'll study and see what does what. I learn best through trial and error. Thanks for the help everyone! I'll run it and see what happens, will post errors here.
  12. So I tried following the Tea Thiever tutorial and make my own simple Kebab Buyer to learn a little, and this is what I have so far. I compiled and tried it and nothing happens. The logger shows some error I could post if need be, but I closed out of it. The bot does absolutely nothing. FYI, I am completely new to scripting/programming so I may have made some completely newby mistakes and didn't realize at all. Here's the code: */ import org.osbot.rs07.api.Walking; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(name = "Kebab Buyer", author = "Faris", version = 1.0, info = "first script", logo = "") public class KebabBuyer extends Script { @Override public void onStart() { log("Let's buy some Kebabs!"); //Code here will execute before the loop is started } private enum State { BUY, BANK, WAIT }; private State getState() { if (inventory.contains("Coins")) return State.BUY; else stop(); if (inventory.isFull()) return State.BANK; return State.WAIT; } @Override public int onLoop() throws InterruptedException { switch (getState()) { case BUY: getWalking().walk(new Position(3274, 3180, 0)); npcs.closest("Karim").interact("Talk-to"); if (dialogues.isPendingContinuation()) { dialogues.clickContinue(); } else if (dialogues.isPendingOption()) { dialogues.selectOption("Yes please."); } case BANK: getWalking().walk(new Position(3270, 3168, 0)); if (!getBank().isOpen()){ getBank().open(); } else { bank.depositAll("Kebab"); getBank().close();} case WAIT: return random(100,400); //The amount of time in milliseconds before the loop starts over } //@Override //public void onExit() { log("Thanks for using my script!"); //Code here will execute after the script ends //@Override //public void onPaint(Graphics2D g) { //This is where you will put your code for paint(s) return random(200,300); } }
  13. Could I try the Perfect Crabs? I love your ranging guild script, it's flawless except for one detail, it should log out when out of money. I had too little and mine mindlessly tried playing for an extra 3 hours last night with no coins, hope I didn't set off any ban sensors.
×
×
  • Create New...