Jump to content

MySQLi

Members
  • Posts

    49
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by MySQLi

  1. As far as the web walking goes, I see what you guys mean having a predefined path since it is such a close walk, although I did run the script for 6 hours without any errors!
  2. Hey guys, today I'm releasing my first very basic script. With the release of this I'm also working on an AIO Woodcutter, I know there's a million but I'm just doing this to learn! Varrock east wood cutter Provides banking Inventory or equipped axe support Not much to the script, just my first basic contribution, as I am learning to do more, so if for nothing, give me suggestions. Pastebin Source : https://pastebin.com/nkrYCZqT
  3. Knowledgeable user, is always willing to help. Greatly appreciate it!

  4. Solved with help from Visty, thank you!
  5. Yes, inventory is empty, and I checked the coordinates too.
  6. import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(name = "MyYewCutter", author = "MySQLi", version = 1.0, info = "Cuts yews in East Varrock", logo = "") public class Main extends Script { private State state; Area WC = new Area(3247,3472,0,0); Area Bank = new Area(3253,3420,0,0); private enum State{ CUT, WALKTOBANK, BANK, WALKTOTREE } private State getState(){ if(getInventory().isFull() && Bank.contains(myPlayer())){ return State.BANK; } if(getInventory().isFull() && !Bank.contains(myPlayer())){ return State.WALKTOBANK; } if(!getInventory().isFull() && WC.contains(myPlayer().getPosition())){ return State.CUT; } if(!getInventory().isFull() && !WC.contains(myPlayer().getPosition())){ return State.WALKTOTREE; } return State.BANK; } public void onStart(){ } public int onLoop() throws InterruptedException{ state = getState(); switch (state){ case BANK: if(!getBank().isOpen()){ getBank().open(); }else{ getBank().depositAll(); } case WALKTOBANK: getWalking().webWalk(Bank); break; case CUT: if (myPlayer().isAnimating()){ }else{ if(!myPlayer().isAnimating()){ } RS2Object yew = getObjects().closest(WC, "Yew"); if (yew != null){ yew.interact("Chop down"); } } break; case WALKTOTREE: getWalking().webWalk(WC); break; } return random(150,175); } }
  7. I tried this, it still won't walk to the yew tree. I don't understand why.
  8. Thank you, that fixes that, but with your other suggestion, it still won't walk to the Woodcutting location... I don't understand why it's not working.
  9. I do not, it's equipped on my character.
  10. So... This script will work.. kind of. If I start at the yew tree in East Varrock, it'll cut the yew, but after the yew is cut down, it'll run to the next closest yew on the other side of the castle. If I start it anywhere other then that yew tree, it won't walk to it. Can anyone tell me what's wrong with this..
  11. I appreciate that, I'm having a lot of trouble learning how to write scripts, there so many different guides, and things to learn, I'm having trouble where to start, and every guide is different with how people do things so I'm getting mixed up. I appreciate everyone's help though.
  12. Hey guys, here are my problems with this script, then I'll post the code. When at the Yew Tree in Varrock, even though I have a ConditionalSleep, it still spam clicks the tree Once the tree is cut down once, it won't click on the tree once it respawns Once the inventory is full, it won't walk to the bank, If I walk the player to the bank, it won't open the bank, deposit the logs.
  13. Thanks man, got that working, got one more question if you have a second, posted it up top!
  14. Hey guys, sorry I post so many help topics, but what better way to learn then to ask questions?! I'm trying to check my inventory, and I've read a few tutorials now, even taking notes, but I can't find an exact answer or tutorial explaining how to do this! Basically, I'm making a simple Varrock Yew Cutter, the first thing I want to do is check to make sure the inventory isn't already full! How would I go about that Psuedo Code I wrote, so you guys can follow what exaclty I'm doing, Only need guidance on how to check the current status of my inventory and if it is full! I have another question, here is my code so far, wondering why my conditional sleep on cut isn't working?
  15. I just did that, It is working now. I must of had a small error somewhere that I wasn't picking up. Thanks, I appreciate it. When you're implementing sleeps, what time do you usually use? 5000 MS works for me, I one hit chickens, if you figure a level 3 fighting chickens, what do you image a good wait time is? Or is there another check without using waits to just check if the player is currently fighting, or looting?
  16. I fixed that, but it still doesn't fix my issue, thank you for pointing that out though.
  17. Hey guys, just working on my first script, I've ran into another issue I can't seem to figure out. Where I'm; if (feather != null) return state.LOOT; It's saying feather cannot be resolved to a variable, although I have it declared, can anyone tell me what I did wrong?
  18. Still need someone, I couldn't trade with Bogla, due to the 15 day trade back limit.
  19. Hey guys, have a few skins on CS:GO I'd be willing to trade for OSGP, take a look at what I have, if interested post below, and I'll message you! Here is my steam inventory! I also have $8.00 on steam if you're interested in a cheap game, in game item, or whatever. Let me know http://steamcommunity.com/profiles/76561198154868001/inventory/
  20. MySQLi

    Hey Ya'll

    Hey guys, just joined the forums, I've been inactive on RS for a while, and I started playing last week. I was afraid to bot, but today I decided, screw it, LOL. Looks like a nice community, look forward to meeting some new people!
×
×
  • Create New...