Everything posted by Strange_Fk
-
Returning wrong state for no reason?
Lmfao its because when u run script when not logged in it wont be able to retrieve your inventory probably until fully logged in. Try adding a boolean to the out of food portion that states that the account is fully logged in as well
-
Returning wrong state for no reason?
Instead of public State GetState() { if (!players.inventory.contains(FOOD) && AREA.contains(myPlayer())) { return State.WALK; } if (!players.inventory.contains(FOOD)&& COMBAT_AREA.contains(myPlayer())) { return State.OUT_OF_FOOD; } if (myPlayer().isUnderAttack()) { return State.IN_COMBAT; } if (!myPlayer().isUnderAttack() && COMBAT_AREA.contains(myPlayer())){ return State.ATTACKING; } else return State.ATTACKING; } try swapping the if() statements for attacking and out of food like this public State GetState() { if (!players.inventory.contains(FOOD) && AREA.contains(myPlayer())) { return State.WALK; } if (!myPlayer().isUnderAttack() && COMBAT_AREA.contains(myPlayer())){ return State.ATTACKING; } if (!players.inventory.contains(FOOD) && COMBAT_AREA.contains(myPlayer())) { return State.OUT_OF_FOOD; } if (myPlayer().isUnderAttack()) { return State.IN_COMBAT; } } It might help temporarily solve the issue, but the problem could be somewhere else in your script that leads to this issue
-
possible to not run?
The walking in the api deviates by 1 or 2 tiles from the actual position you are trying to walk to, this is for antiban measures most likely. I know you can override the deviation amount, however I have never really needed to badly enough to actually find out how. To get to an exact position for one of my scripts i used the walker to walk to that tile and if it didn't go to the exact position I needed I then just had the mouse hover the tile i needed and then applied a mouse click after the hover to walk to that exact tile. Sorry for my poor description hahaha pretty tired right now but hope that helps a bit
-
me being braindead once again
if(inventory.isFull()) { //action you want it to do } if(!inventory.isFull()) { //action you want it to do } the "!" in front of booleans (conditions) basically means the opposite return than if it didn't have it. if else statements work well too, but I would stick to using just if statements for now, but thats just my opinion
-
Need help with NPC facing/Interacting with another player
Ahh dope ill try that man. I had that but instead of getInteracting() I had !npc.getInteracting(myPlayer). Thanks mate should work man
-
Need help with NPC facing/Interacting with another player
So I'm not a complete noob to scripting (not saying I'm crazy good either), but I am very new to the whole combat portion of the api and am in the process of making my first basic combat script. To cut to the point I am unsure what filter/boolean to use for an npc that another playing is splash mage training on. Everything works great, except when a player is splashing the npc/entity I have chosen to train on. It will only click it once (occasionally) and right after get filtered out of the npc requirements and choose to attack a different npc nearby. I was wondering what methods/boolean would prevent this from occuring as I see this as a potential red flag to get detected botting if done frequent enough. Here is my script (feel free to use it, but ask for consent before sharing yourself which I doubt will be an issue) it is kinda sloppy and could definitely be cleaned up, but its my first combat script and have been to lazy to go back and clean and cut down/simplify the script at the momement. Thank you all in advance..... Entity name is seagull, because I was using it for seagulls originally and have been lazy to change it to a universal name hahahahah EDIT: oh and the names/int with names like shark and what not are because I never changed/deleted them from the standard template that I use when i write new scripts Oh and if anyone is interested in non combat scripts I wrote feel free to ask me, I might have what you're looking for that have worked well for me.
-
Errors out of know where
Exactly, dont worry if its grayed out if you use intelliJ. It dulls/grays out any imports or functions not used within your script. If you however aren't using intelliJ I would highly recommend it over ecliples (personal opinion however, but I find it much easier and useful to use)
-
Stealth Injection vs Mirror Client... worth it?
Dope thanks a lot man. Answered my question plus some. I'm not a crazy scripter, but definitely make a lot better scripts than almost all the free ones i have tried. If the change necessary in the scripting is outside my current league, then ill pry just hold off on it for it until I do more research on the changes. Thanks again man
-
Stealth Injection vs Mirror Client... worth it?
Thanks for the feedback so quick man. My recent bans have been from spinning bow strings on my main after 85 or 86 crafting all bow strings ofc ;( as well as 1 att obby mauler all ftp at 71 str in two days or so. Mainly due to not breaking after i hit 60-71 str which was definitely a stupid test. Had few others over time get ban with all lvl 1 stats beside 63 fm and 85-89 wc all yews after 60 wc and all ftp besides my main that was listed above. anyone have an idea as to how much harder it is to detect mirror than it is from stealth injection? because for some of my scripts i feel like that has to be the case.
-
Stealth Injection vs Mirror Client... worth it?
Hey whats up guys, I would start to say I apologize if this is posted in the wrong section, but was unsure as I thought it could fit in a few. So I've been using osbot for awhile now and have been coding on and off. Some of my scripts go beast mode with no bans for long time, even on ftp.... However this is usually with 1-2 hr breaks for every 2-4 hr bot time totally an average of 10 hrs botting (without breaks added into it). For the most part it seems decent however I go thru periods where I get hit on accounts much quicker. Obviously this all depends on many variables as in whether it is a new account, or where im botting, ect, ect. To get to the point I wanted a hopefully unbiased opinion as to whether or not the upgrade to mirror client is worth it. Obviously its not much money but I have never purchased any scripts or client upgrades ever and would like to keep that going if the mirror version is really that much better. Thank you
- chatbox getmessages error
-
Ban rates for spinning flax at lumby & f2p edge yews
Just wanted to hear feedback from others with their experience botting edgeville yews (free to play) and making bow strings in lumby (obviously p2p). My reason for asking is because I have written personal scripts for both and have only been ban one time while botting each of these 2 hot spots. Yews I was ban close to 90 wc ftw (rest were lvl 1 stats and acc was maybe 2-3 weeks old) Bow strings account ban around 83-87 crafting, cant remem which it was (rest were lvl 1 stats as well and I was multi logging same comp, running same script - no vpn or proxies - meaning same ip for both accounts ONLY on night of the ban) On both accs I was trading all gp to my main acc, and almost the whole time ran the scripts by themselves which ran anywhere from 10-24 hrs (breaks taken various times with botting 2-3 hrs/breaks 1-2 hrs) With most free scripts i used from the site I would get ban fairly quickly so I just wanted to know whether those were shitty free scripts or whether writing your own scripts really makes that big of a difference in ban rates and botting(obviously writing your own scripts has a major advantage, but I want to know how much; especially since these are fairly basic scripts to write and they cannot differ a whole lot from the free ones that are out there).
-
Any help botting yews? F2P. Or don't?
ayyyy lol forgot it was running so hopefully no ban
-
Scripting Template with Basic Paint
Wow please tell me that was added sometime in the last month or so to the api ahahahah. Otherwise i'm going to feel prettttty stupid
-
Req paint help with transparency
ayyy thanks guys
-
Any help botting yews? F2P. Or don't?
I have been doing ftp edgeville yews, using a personal script I made, without using mirror client. I have run it for 3 days, with 12-16 hrs run time(breaks included) each day (breaking 1-1.3 hrs after botting for 2-3 hrs). Still no ban, I'm 78 wc atm on that account. Maybe I'm just lucky or will get ban soon. However I think it easy to spot bots at edgeville yews, because most of the bots don't move locations from the yew that was just chopped, unless the next yew has spawned already. Another thing that makes them easy to spot, other than 85% of them not being able to open the door, is that they will won't move unless they are done animating after a tree has been cut down. I would try to find scripts that don't behave like most bots do to avoid getting reported as much (FTP players seem to report likely bots a lot more often than PTP)
-
Running only one bot but error keep saying I am running multiple bots
When you click the osbot program to initially load it up, if you click it more once(or double click more than once) it can cause this error to pop up. I know this has happened to me before but usually only if I click it a few times because it is taking forever to pop up. However idk if this is the same case with you guys, because usually it will happen only like 10 min max after i tried loading it. When it pops up any of the time, do you try typing something and then it pops up? Because this could be from the screen being open, but the focus may still be on your desktop. So if you were to hit enter and Osbot was highlighted in background, maybe it tries running it again.
-
Req paint help with transparency
Ahh just realized it was you again FixThisSite! I'll post a screen of proggy tomorrow morning
-
Req paint help with transparency
hell yeah thanks guys much appreciated!
-
Req paint help with transparency
If anybody knows the command/method used to alter the transparency of a fillRect() for paint that would be great. I tried looking it up and saw that it might be called alpha to alter this, however I can't figure out how to change alpha. The only command i can see is getAlpha(). If anyone could provide me with an example that would be great. I'm sure I can figure it out from there! Thanks in advance!
-
Scripting Template with Basic Paint
fixthissite is an OG at java ahahaha much love man. Yeah honestly most of the pain was a basic setup I had from a long time ago. I've been too lazy to try cleaning it up, but my java script has gotten a lot better in the scripts I've made (that I haven't released on forums). Hoping my yew cutter works out ahaha, need money for bond. Just got done running it for 15 hours with 1 hr breaks every 3 hrs of botting. It works better than any other yew woodcutting bots that I watched while running it. Hopefully no ban though, but we'll see! Just checked out your thieve script BobRocket, looks dope af. Props to you too man, thanks for the input from both of y'all
-
Scripting Template with Basic Paint
I decided to make a Yew cutter at edgeville since there are no free ones and my fresh account woodcutter and fire maker has gotten me the sufficient levels to cut Yews. I stripped the old script of the contents which left a template some people might want to use, along with a notes on paint in case some people don't know what to do to change paint. Some of the methods used to check the paint were made when i first started learning javascript, that being said I know there are better methods but since they work I have been too lazy to simplify them... import org.osbot.rs07.Bot; import org.osbot.rs07.api.model.*; import org.osbot.rs07.event.*; import org.osbot.rs07.event.Event; import org.osbot.rs07.input.mouse.MiniMapTileDestination; import org.osbot.rs07.input.mouse.awt.BotMouseEvent; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.ui.Skill; import java.awt.*; import org.osbot.rs07.api.map.Area; import java.awt.Font; import java.awt.event.MouseEvent; import java.io.File; import java.io.IOException; import java.net.URI; import java.nio.file.*; import java.util.Iterator; import java.util.concurrent.TimeUnit; import static org.osbot.rs07.api.ui.Skill.WOODCUTTING; @ScriptManifest(author = "Strange's Simple Script's", info = "Chops Yews in Edgeville", name = "Yew Chopper", version = .2, logo = "") public class YewChopper extends Script { /////////////////////////PAINT VARIABLES//////////////////////////// public int startExp; public int paintCheck; public int expFor; public int expTil; public int startExp2; public int currentExp; public int expGained; public int currentLvl; public int nextLvl; public int sharksCaught; public int fontSize; public int center; public int mouseX; public int mouseY; public int fmEXPStart; public int fmEXPCurrent; public int fmEXPGained; private long timeBegan; private long timeRan; public void onStart() { timeBegan = System.currentTimeMillis(); currentLvl = getSkills().getDynamic(WOODCUTTING); nextLvl = currentLvl + 1; expFor = skills.getSkills().getExperienceForLevel(nextLvl); expTil = skills.experienceToLevel(WOODCUTTING); fmEXPStart = skills.getSkills().getExperience(Skill.FIREMAKING); startExp2 = expFor - expTil; startExp = skills.getSkills().getExperience(WOODCUTTING); expGained = currentExp - startExp; paintCheck = startExp - startExp2; if (startExp != startExp2 || expGained > 0) { return; } this.log("Strange's Yew Chopper has started"); } public int onLoop() throws InterruptedException { State current = this.getState(); //this.log(current.toString()); switch (current) { } return (random(211, 761)); } public void forLoop1() throws InterruptedException { } public void forLoop2() throws InterruptedException { } public void forLoop3() throws InterruptedException { } public void forLoop4() throws InterruptedException { } public void forLoop5() throws InterruptedException { } public void forLoop6() throws InterruptedException { } public void forLoop7() throws InterruptedException { } public void onPaint(Graphics2D g) { Graphics2D gr = g; fmEXPCurrent = skills.getExperience(Skill.FIREMAKING); fmEXPGained = fmEXPCurrent - fmEXPStart; currentExp = skills.getExperience(Skill.WOODCUTTING); expGained = currentExp - startExp; sharksCaught = expGained / 15; timeRan = System.currentTimeMillis() - this.timeBegan; fontSize = 26; center = (fontSize/3); mouseX = getMouse().getPosition().x - center; mouseY = getMouse().getPosition().y + center; Font crossHair2 = new Font("SANS_SERIF", Font.BOLD, fontSize); //////////////////////MOUSE CROSSHAIR OUTLINE COLOR///////////////////////// g.setColor(Color.BLACK); //////////////////////////////////////////////////////////////////////////// g.setFont(crossHair2); g.drawString("+", mouseX, mouseY); Font crossHair = new Font("SANS_SERIF", Font.PLAIN, fontSize); //////////////////////MOUSE CROSSHAIR MAIN FILL COLOR/////////////////////// g.setColor(Color.MAGENTA); //////////////////////////////////////////////////////////////////////////// g.setFont(crossHair); g.drawString("+", mouseX, mouseY); Font normal = new Font("SANS_SERIF", Font.BOLD, 14); Font italic = new Font("SANS_SERIF", Font.ITALIC, 12); g.setColor(Color.WHITE); g.setFont(normal); /////////////////PAINT TEXT CONTENTS FOLLOWED BY THEIR POSITION///////////// g.drawString("Strange's Account Starter", 8, 30); g.drawString("Time Elapsed: " + ft(timeRan), 8, 45); g.drawString("Woodcutting Exp Gained: " + expGained, 8, 60); g.drawString("Firemaking Exp Gained " + fmEXPGained, 8, 75); g.setFont(italic); g.drawString(this.getState().toString(), 8, 90); } private String ft(long duration) { String res = ""; long days = TimeUnit.MILLISECONDS.toDays(duration); long hours = TimeUnit.MILLISECONDS.toHours(duration) - TimeUnit.DAYS.toHours(TimeUnit.MILLISECONDS.toDays(duration)); long minutes = TimeUnit.MILLISECONDS.toMinutes(duration) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(duration)); long seconds = TimeUnit.MILLISECONDS.toSeconds(duration) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(duration)); if (days == 0) { res = (hours + ":" + minutes + ":" + seconds); } else { res = (days + ":" + hours + ":" + minutes + ":" + seconds); } return res; } public void onExit() { this.log("Script ended! Please notify of any bugs you may come across, I will try my best to fix as soon as possible."); this.log("Total EXP Gained: " + expGained); this.log("Yews Chopped " + sharksCaught); } public State getState() { return State.IDLE; } public enum State { IDLE } } The paint has exp gained, and a mouse crosshair
-
Someone please help me find solution to these errors
You my friend are are genius. Worked like a charm, wish i hadnt uninstalled all my java downloads from before that I could have used ahahah but ty for fix man.
-
Someone please help me find solution to these errors
Whenever i try loading osbot this is all that happens after I click Launch(yes it is most updated version). I tried downloading most recent java as well but no luck. Last time osbot ran fine was with v 104.
-
Is OSbot down right now?
Hahahaha yes trust me I've read the panel on whether its online or not, but i know sometimes it will be inaccurate after an update(doesn't happen often, but has happened to me once in past week when it really was down). That is only reason why i made forum post asking if anybody else had the same issue. As for the java update, I was thinking that could be the issue here. I'll see if it works in a little bit. Thank you all for the replies... even if some stated the obvious ahahaha