Jump to content

[ANTIBAN] What am i doing wrong?


Sebastian

Recommended Posts

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 by Sebastian
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

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 by Mr Pro Pop
Link to comment
Share on other sites

 

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. 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by venetox
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...