-
Posts
55 -
Joined
-
Last visited
-
Feedback
0%
Everything posted by BloodRush20
-
Hey guys, I've been out of the scene for a few months, personal life and all. I was wondering last time I was scripting we still used localwalker. How accurate is webwalking, does it have any obstacles I would like to overcome? Does it spam click? Get stuck easy? Is it too bot like? The main reason I ask I need to decide to create a walking class or use this webwalking. I'm not where I can test it but have some free time so I can whip up a class if need be. In advance thanks for any input on this. ~Blood~
-
Thank you both I will try this after dinner and it looks great glad I can learn something new today! I will call it int IsolateAmount haha
-
Basically use a void it establish an int using the filter to grab the object inside my area? sorry not used filters much outside of the basic objects closest or inventory and such I understand walking to a new area but thats not my point I need the amount of X in any area I select honestly it has multiple uses hunter woodcutting, combat scripts, HUD script, idk ect. Say since ur the hunter man lately you set a area for chins then you wanna keep track of how many boxes are down in your area the boxes are the X but simply grabbing the closest wont return all the ones in the area. Then you can use the amount given at the time for Paint or a check, ect.
-
As simple as it sounds from the title, How would I go about looping thought all the objects in a area and getting the amount of certain objects Example in my area woodcutting there are 4 trees that are yew. but once one is cut down the object id changes so How can I loop through to see how many yews are left in the area. Id assume some type of for loop but I haven't attempted anything like this on osbot so help would be greatly appropriated! Edit: to be clear I'm not concerned with storing the positions or anything I just need a number count
-
omg how the hell did I miss that ty
-
Looking through the API i see nothing close to Mouse.location() it used to return the mouse x, and y on screen and such. My question is does anyone know of anything like this or has anyone created a method for this yet?
-
Thanks kindo may need this now because it will jsut randomly stop on items that arent the ferret n sit there haha!!!
-
This worked out perfect I kinda had an idea to use the name but i went with id, I see this api is slightly different than i've scrip[ted before but thanks to the community I hope to get the hang of it fast! Thank you Valk IT wouldn't execute as the condition of state checks for the item before executing
-
tired but it freaks out does one then just jumps along the others and is very slow. error is with the fr.getid equalling 10092 and yes using 10092 ids the ferrets inventory id
-
Tired just it before posting and it didnt i added the while loop to see if it wasn't trying to do one and then getting the state again but still nothing
-
Hey guys sorry im rushed n looking for a quick answer i have this loop while (this.inventory.contains(new String[] { "Ferret" })){ for (Item fr : inventory.getItems()) { if (fr.getId() == 10092) { fr.interact("Release"); sleep(random(500, 600)); } } } and instead of going to the item it just sits there i tired debugging it but im strapped for time anyone run into this before?
-
True you could add a hover event til the inventory is open!
-
Question about objects belonging to players
BloodRush20 replied to BloodRush20's topic in Scripting Help
Awesome thanks dude ps I enjoy your scripts used them both =) -
Wouldnt recommend a sleep as lag and other things can make sleeping not work well or if ur not prepared it can break the script making it think its casted
-
Question about objects belonging to players
BloodRush20 replied to BloodRush20's topic in Scripting Help
That would be a great alternative I was just also wondering if you cant filter items like this in the future by this simply this would save me a load of coding grabbing and checking that the position brings.(not a load but yea) -
Question about objects belonging to players
BloodRush20 replied to BloodRush20's topic in Scripting Help
Actually it does I tried using a simple detection of traps. Thinking that each item bird snares and boxes all had different ids when set, broken , ect but I was wrong it would work great til a user was trying to catch chins near me and kept freaking out trying to run to his traps. So I thought obviously I could fix this making the closest trap picked up but this is still a bandaid over a gash. If you and I are hunting birds in the same area it would try to pick up yours so the closest needs filtered by the player it belongs to and in debugging the info will show traps by users name I just need to find the filtering option for that but I can't seem too -
I'm newer to osbot scripting but i had one of the fastest magic scripts on rsbot. The only thing I cant grasp is osbot works off seeing the inventory so when you can for the action it isn't open because the screen doesn't update as fast as the script processes I can give two suggestions first try to add a wait til the inventory is open or visible on the screen to cast on the ring, if that doesn't work add a cached inventory system by storing it all into a array and pulling from it as needed.
-
Simply hunting is the idea here. I have a trap and it seems many traps share the same ids so simply getting the idea will have you trying to pick up others kills. I need to get my closest object that is my own trap. I understand programming done it for a while but I see nothing in the API to do this or I'm onlooking to hard and missed it. I do notice there is a debug for object info so i knows its possible. Any point in the right direction would be great! Thanks in advance.
-
well f me I feel so stupid for this ty guys
-
startExp = Skills.getExperience(Skill.MAGIC); Mouse.click(true); Bank.open(); Here are some small examples all pulling the same static error I didnt know calling the bank open method could be a static method. Or I have picked up bad habits from other api's i've used. Frost I didnt know there was such a difference in the wording there I never saw the getinventory only the inventory itself in the api. Also while im here is there a equivlent to Game in you api such as Game.logout(false);
-
Once I load up the latest jar all i constantly get is a message telling me that I cant make static references when i'm just using a method from the regular api. I get these errors constantly and they wont go away. I've seen others who wrote their code the same way so why am i getting the errors using eclipse btw set up as it should.