Everything posted by MySQLi
-
MyYewCutter | Varrock Yew Cutter | Banking
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!
-
MyYewCutter | Varrock Yew Cutter | Banking
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
-
Where did I go wrong?
Solved with help from Visty, thank you!
-
Where did I go wrong?
Yes, inventory is empty, and I checked the coordinates too.
-
Where did I go wrong?
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); } }
-
Where did I go wrong?
I tried this, it still won't walk to the yew tree. I don't understand why.
-
Where did I go wrong?
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.
-
Where did I go wrong?
- Where did I go wrong?
I do not, it's equipped on my character.- Where did I go wrong?
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..- Why doesn't this script work?
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.- Why doesn't this script work?
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.- Need some help!
Thanks man, got that working, got one more question if you have a second, posted it up top!- Need some help!
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?- Where am I wrong?
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?- Where am I wrong?
I fixed that, but it still doesn't fix my issue, thank you for pointing that out though.- Where am I wrong?
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?- Can anyone help me
Thanks guys, I now have a basic chicken killer script running, I will now use this to build off and learn, appreciate the help!- Can anyone help me
Hey guys, I'm trying to learn Java, and script writing. I've been reading some tutorials and I just wrote this SUPER basic first script, however, it does NOTHING. I'm wondering if anyone can tell me where I went wrong, and why it does not attack "Chickens" import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; import java.lang.Thread.State; @ScriptManifest(author = "MySQLi", info = "Basic Chicken Killer", name = "MyChickenKiller", version = 1.0, logo = "") public class Main extends Script { @Override public void onStart() { log("Thank you for using my script, Let's kill chickens!"); } //What are we going to do in our script private enum State{ KILL,WAIT }; //Declare our conditions private State getState(){ RS2Object chicken = getObjects().closest("Chicken"); if(chicken != null) return State.KILL; return State.WAIT; } @Override public int onLoop() throws InterruptedException { switch (getState()){ case KILL: RS2Object chicken = getObjects().closest("Chicken"); if(chicken != null) { chicken.interact("Attack"); } break; case WAIT: sleep(random(500, 700)); break; } return random(200, 300); } @Override public void onExit() { log("Thanks for running my Chicken Killer!"); } @Override public void onPaint(Graphics2D g) { } }- Trading CS:GO Skins for RSGP
Still need someone, I couldn't trade with Bogla, due to the 15 day trade back limit.- Trading CS:GO Skins for RSGP
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/- 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! - Where did I go wrong?