-
Posts
90 -
Joined
-
Last visited
-
Feedback
0%
Everything posted by Strange_Fk
-
Damn you're always so knowledgeable with the JS! Thanks mah dude
-
Hahahaha as I was reading your comment I remembered that only mouse clicks are recorded ... At least I think
-
Title says all, wondering if there is a way to change the mouse movement speed.
-
You could add a bit of code to your script to prevent it from hopping x number of times in a given amount of time. This would likely solve your issue, but might be annoying figuring out what the hop threshold is
-
I think this is to prevent any temp bans on your account due to hopping too much within a short amount of time. I remember couple months back I was hopping a lot to find an empty world and got a message in game chat, or on login screen after force logout... can't remember exactly which one hahahah (was also using osbuddy at time, not osbot). So I think osbot dev added some code to prevent people from continuing to hop once a certain limit is reached within a certain amount of time. I could be completely wrong though
-
Thanks mah dude, didn't use this exact snippet, but it got me in right direction and now doesn't lag anymore!
-
Yeah I noticed without changing ip after 1 or 2 accs being ban they seem to ban you much quicker
-
Damn wtf, was the screen sent in via PM?
-
If I'm not mistaken mouse movements without a click will still make u log, however mouse.click() should work since it will just right click(which from my experiece won't cause you to afk log) Could be wrong though
-
I've come up with two ways to hover an action, both have ups and downs. The first was lag free, but not the most effective so I ditched this and came up with this as my second attempt, however it lags slightly whenever it pulls up the menu. int menuActionNumber = getMenuAPI().getMenuIndex(menuName, menuAction); if (!canLoot && menu.isOpen() && menuActionNumber >= 0) { int minOptionX = menu.getX(); int maxOptionX = minOptionX + menu.getWidth(); int minOptionY = menu.getOptionRectangle(menuActionNumber).y; int maxOptionY = minOptionY + 12; sleep(random(611, 711)); mouse.move(random(minOptionX, maxOptionX), random(minOptionY, maxOptionY)); } The if statement is the same for both attempts so if has to do with the body of the if statement that causes the lag. If there is a more effective way to do this it would be much appreciated if someone could send me in the right direction.
-
[HELP] how to detect "Attack Mode" and how to intract with entinty
Strange_Fk replied to wafihsn's topic in Scripting Help
Explv is a boss, always see him helping people with scripting and putting out some quality scripts -
Does that apply to scripts that are generally pay to use scripts as well? For example if I released a script I wrote, that had the same purpose as one that was a premium script, I can still release it as long as it doesn't have malicious code? Not trying to be a smart ass at all, but I have always heard different things on this in the past so I wanted to make sure. Thanks in advance man
-
Yeah buddy same here, been pretty successful with it until very recently. Seems I be getting ban quick as fuck now though, all private scripts new and old that I would never get ban using.
-
Were yall using stealth injection or mirror? would be extremely helpful to me, thank you
-
Yeah I forgot to add if (entity !=null) { entity.interact("Attack"); }
-
No problem, feel free to hmu with any questions you have
-
String npcName = "The npcs name" Entity anyEntityName = npcs.closest(new Filter<NPC>() { public boolean match(NPC npc) { return (npc.getName().equals(npcName) && !npc.isUnderAttack() && (npc.getCurrentHealth() != 0 || npc.getMaximumHealth() == 0 && npc.getHealthPercent() != 0)) && !npc.isInteracting(myPlayer()) && killZone.contains(npc.getPosition()) && npc.getInteracting() ==null); } }); anyEntityName.interact("Attack"); sloppy but will do, you can take out or add booleans to define npc as you please. I was toying with it a lot so this example might have a lot of pointless filters. Hope this helps regardless
-
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
-
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
-
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
-
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
Strange_Fk replied to Strange_Fk's topic in Scripting Help
Ahh dope ill try that man. I had that but instead of getInteracting() I had !npc.getInteracting(myPlayer). Thanks mate should work man -
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.
-
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)