Sebastian Posted September 7, 2016 Share Posted September 7, 2016 (edited) Hey guys, So i have the following problem and i can't see whats the problem. I have created 2 ints: public int randomNumber = random(1, 19); public int activateAntiban = 0; So the randomNumber is a number between 1 and 19. In the code below you can see when whenever i'm under attack, my activateAntiban will count to the randomNumber. So, i expect that when the activateAntiban number is the same as the randomNumber, it will activate the antiBan(); But it doesn't. This is my code: public void antiBan() throws InterruptedException { switch (randomNumber) { case 1: getTabs().open(Tab.SKILLS); sleep(100 + random(300, 700)); getSkills().hoverSkill(Skill.STRENGTH); sleep(100 + random(3000, 4000)); getMouse().moveRandomly(); status = "[ANTIBAN] Checking stats.."; randomNumber = random(randomNumber); log("New random number is: " + randomNumber); break; case 2: sleep(random(600,700)); status = "[ANTIBAN] Sleeping for a bit.."; randomNumber = random(1, 19); log("New random number is: " + randomNumber); break; } log("something is working.."); sleep(random(700, 1800)); getTabs().open(Tab.SKILLS); } In the onLoop(): if (myPlayer().isUnderAttack()) { log("Antiban count: " + randomNumber + ", " + activateAntiban); activateAntiban++; } if(randomNumber == activateAntiban){ antiBan(); log("antiban is running."); } This is my logger: [INFO][Bot #1][09/07 02:34:59 AM]: Antiban count: 14, 13 [INFO][Bot #1][09/07 02:34:59 AM]: something is working.. [INFO][Bot #1][09/07 02:35:01 AM]: antiban is running. [INFO][Bot #1][09/07 02:35:04 AM]: Antiban count: 14, 14 [INFO][Bot #1][09/07 02:35:11 AM]: Antiban count: 14, 15 [INFO][Bot #1][09/07 02:35:18 AM]: Antiban count: 14, 16 [INFO][Bot #1][09/07 02:35:28 AM]: Antiban count: 14, 17 The first 14 is the randomNumber int and the second one is the activateAntiban int. As you can see it activates something, but not my switch cases. It could be me being realllllly stoned or i am actually close to get the antiban working.. either way, i clueless at the moment lol. also, this is not my full antiban. Adding more cases when it works. Hope you all can help me. Sebastian. Edited September 7, 2016 by Sebastian Quote Link to comment Share on other sites More sharing options...
Manner Posted September 7, 2016 Share Posted September 7, 2016 (edited) In this run, randomNumber was 14, which is definitely not equal to 1 or 2 to activate your switch statement. If you want to just randomly pick an antiban case, change switch(randomNumber) to switch(random(1,2)). Edited September 7, 2016 by Manner 1 Quote Link to comment Share on other sites More sharing options...
Sebastian Posted September 7, 2016 Author Share Posted September 7, 2016 In this run, randomNumber was 14, which is differently not equal to 1 or 2 to activate your switch statement. Ahh, so if i choose the antiban between 1 and 2 it will activate case 1 or 2? Trying this out. Quote Link to comment Share on other sites More sharing options...
Juggles Posted September 7, 2016 Share Posted September 7, 2016 (edited) The problem is you're trying to add antiban, which is fake. Edited September 7, 2016 by Juggles 4 Quote Link to comment Share on other sites More sharing options...
Sebastian Posted September 7, 2016 Author Share Posted September 7, 2016 In this run, randomNumber was 14, which is definitely not equal to 1 or 2 to activate your switch statement. If you want to just randomly pick an antiban case, change switch(randomNumber) to switch(random(1,2)). You the man! It worked. The problem is you're trying to add antiban which is fake to your script. Can you explain this so i can learn from it? Quote Link to comment Share on other sites More sharing options...
Manner Posted September 7, 2016 Share Posted September 7, 2016 Can you explain this so i can learn from it? He means that this kind of "Anti-ban" will likely do nothing to lower the ban rate of the script. Here is an old post by Alek about the topic: http://osbot.org/forum/topic/45618-preventing-rs-botting-bans/ Quote Link to comment Share on other sites More sharing options...
Sebastian Posted September 7, 2016 Author Share Posted September 7, 2016 He means that this kind of "Anti-ban" will likely do nothing to lower the ban rate of the script. Here is an old post by Alek about the topic: http://osbot.org/forum/topic/45618-preventing-rs-botting-bans/ I'm going to add more cases to this antiban. It may lower the ban rate then. Or do you think that switching cases isn't a good method for antiban? I will read that topic later as i am tired now. Quote Link to comment Share on other sites More sharing options...
Muffins Posted September 7, 2016 Share Posted September 7, 2016 I'm going to add more cases to this antiban. It may lower the ban rate then. Or do you think that switching cases isn't a good method for antiban? I will read that topic later as i am tired now. antiban doesnt do anything so adding more cases would just be irrelevant Quote Link to comment Share on other sites More sharing options...
Prolax Posted September 7, 2016 Share Posted September 7, 2016 Since you are making a combat script, this would be ideas for antiban: Hover over next npc (on random times) Hover over food (on random times) Move mouse out of screen (on random times) 1 Quote Link to comment Share on other sites More sharing options...
Mr Pro Pop Posted September 17, 2016 Share Posted September 17, 2016 (edited) Well to be honest we cant say that the antiban is 100% real but it is useful to be added as it lower the bot chance of being detected as jagex is checking out our clicks and moves! So like if we keep switching to other tabs and move mouse out screen it might help us atleast by 10-20% chance of not being detected! Edited September 17, 2016 by Mr Pro Pop Quote Link to comment Share on other sites More sharing options...
Solzhenitsyn Posted September 18, 2016 Share Posted September 18, 2016 Since you are making a combat script, this would be ideas for antiban: Hover over next npc (on random times) Hover over food (on random times) Move mouse out of screen (on random times) Well to be honest we cant say that the antiban is 100% real but it is useful to be added as it lower the bot chance of being detected as jagex is checking out our clicks and moves! So like if we keep switching to other tabs and move mouse out screen it might help us atleast by 10-20% chance of not being detected! You guys need to work on your reading comprehension. This type of "anti-ban" does NOTHING. Quote Link to comment Share on other sites More sharing options...
Prolax Posted September 18, 2016 Share Posted September 18, 2016 You guys need to work on your reading comprehension. This type of "anti-ban" does NOTHING. It does, you have no idea. Quote Link to comment Share on other sites More sharing options...
venetox Posted September 18, 2016 Share Posted September 18, 2016 For those of you that aren't understanding the post by Alek. This kind of anti-ban is "pseudo anti-ban", yes jagex CAN and does log your mouse clicks (they do it rarerly iirc), they don't log mouse moving (as far as I know). Because of this, any anti-ban that does not effect what you look like to other players or mods (the people that report and ban you) it will do nothing. Obviously if your script has clear patterns the automatic ban will catch you (I think) but other than that, these types of anti-bans will do nothing at all.If you want a "real anti-ban" you will want to do things that are visible. Things like random pathing (webwalking), random choice of mobs etc, basically making yourself not look scripted to other players. This doesn't apply for all things, i.e. for an alching bot you wouldn't need any anti-ban really because there is no visible difference between a person alching and a bot alching since you just stand there. In short, anything other people can't see does nothing, focus on things people can see. A big thing IMO that helps is talking, HOWEVER don't do what I've been seeing heaps of in varrock west bank where every time the bots bank they just fkn paste a random quote. Theres like 20 of them all just saying something at the same point after banking (sometimes in different languages), and its even clearer they are bots. So be careful with your anti-bans too so they actually are anti-bans. If you make private scripts and will be having multiple accounts running in the same world and area on your script, maybe have them have conversations to each other because that way you can have conversations that shouldn't look scripted.If looking into auto-talking I recommend learning about those auto-talking bots. Quote Link to comment Share on other sites More sharing options...
Solzhenitsyn Posted September 18, 2016 Share Posted September 18, 2016 It does, you have no idea. ... I have written my own mouse handler which doesn't move the mouse (it sets the cursor location), it creates mouse events, assigns them a time, inserts them into a min-heap, and then handles them at the correct time. My scripts runs like a machine and makes no mistakes, because the goal is for all of them to be maximally efficient. My ban rates are identical to what they were before. I doubt that they are tracking mouse patterns. Quote Link to comment Share on other sites More sharing options...
venetox Posted September 18, 2016 Share Posted September 18, 2016 (edited) I have written my own mouse handler which doesn't move the mouse (it sets the cursor location), it creates mouse events, assigns them a time, inserts them into a min-heap, and then handles them at the correct time. My scripts runs like a machine and makes no mistakes, because the goal is for all of them to be maximally efficient. My ban rates are identical to what they were before. I doubt that they are tracking mouse patterns. Yeah that's what I thought, I have seen the code where they send packets containing data from mouse clicks but not only would it be stupid to track mouse movement for many reasons but I see know reason to believe they do it. I have done a similar thing where I just had macro script for dropping my logs which just set the mouse position, did it till 99 woodcutting, no ban, although thats just anecdotal evidence from me. Edited September 18, 2016 by venetox Quote Link to comment Share on other sites More sharing options...