Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

Simulate left click

shapito96

New member
Joined
May 29, 2024
Messages
2
Reaction score
0
Points
1
just made triggerbot. Anticheat flags it because i don`t miss at all. How do i simulate miss? I tried to just send animate hand packet, but it still flags
 
What flags and what anticheat?, Make sure your swing order is correct for your version too
 
just made triggerbot. Anticheat flags it because i don`t miss at all. How do i simulate miss? I tried to just send animate hand packet, but it still flags
An easy way to make it to a chance, is generating a random number between 1 and 10, then determine if the number falls within the desired percentage range. Ofc adjust to your needs. Ive made a simple example for you here.

Java:
// Set the desired hit chance (e.g., 20%)
int hitChancePercentage = 20;

// Generate a random number between 1 and 10
Random random = new Random();

// Generates a number between 1 and 10
int randomNumber = random.nextInt(10) + 1;

// Calculate the range based on the percentage
int maxHitNumber = (int) Math.ceil(hitChancePercentage / 10.0);

// Check if the random number falls within the hit chance
if (randomNumber <= maxHitNumber) {
    System.out.println("Hit! Random number: " + randomNumber);
} else {
    System.out.println("Miss. Random number: " + randomNumber);
}
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top