Biometrics¶
Biometrics related methods that are unique to the current player being used.
For your convenience you can use TBiometrics methods through the Biometrics variable.
EBiometric¶
EBiometric = enum(
MULTIPLIER,
SLEEP_H, SLEEP_M, SLEEP_S, SLEEP_LENGTH, BREAKS,
MIN_CLICKTIME, MAX_CLICKTIME, MOUSE_SPEED, MOUSE_GRAVITY, MOUSE_WIND,
FKEYS, ESCAPE, CHAT_KEYBOARD,
CHOOSEOPTION,
SPAM_CLICK,
PATTERN,
BANK_CONSUME,
RATING, LIKES, DISLIKES
);
Enum that represents biometrics affected by the user’s unique player seed.
TBiometrics¶
Record responsible for biometrics and biometric behaviour.
TBiometrics.Hash¶
property TBiometrics.Hash: TByteArray;
Get the current unique hash generated for the current TProfile being used.
Changing ProfileIndex, will reset the hash.
If there’s no Profiles available WaspLib will use a random hash.
Example:
WriteLn Biometrics.Hash;
Biometrics.GetBiometric¶
function TBiometrics.GetBiometric(biometric: EBiometric): Byte;
function TBiometrics.GetBiometric(index: Integer): Byte; overload;
Get the value that corresponds to the specified biometric.
The return value is a byte, so it’s a value between 0 and 255.
Example:
WriteLn Biometrics.GetBiometric(EBiometric.FKEYS);
Biometrics.GetProbability¶
function TBiometrics.GetProbability(biometric: EBiometric): Single;
function TBiometrics.GetProbability(index: Integer): Single; overload;
Get a probability from the current hash that is represented by biometric or index.
The probability is between 0.0 and 1.0.
Example:
WriteLn Biometrics.GetProbability(EBiometric.FKEYS);
Biometrics.Random¶
function TBiometrics.RandomDouble(input: Double): Double;
function TBiometrics.RandomInteger(input: Integer): Integer;
These generate a unique random number based on your input and your current Hash.
Example:
FoodAmount := Biometrics.Random(7);
Biometrics.RandomMode¶
function TBiometrics.RandomModeDouble(input, minimum, maximum: Double): Double;
function TBiometrics.RandomModeInteger(input, minimum, maximum: Integer): Integer; overload;
Generate a unique random number based on your input and your current Hash
with a minimum minimum and maximum maximum value.
Example:
FoodAmount := Biometrics.RandomMode(7, 3, 15);
Biometrics.RandomBoolean¶
function TBiometrics.RandomBoolean(): Boolean;
function TBiometrics.RandomBoolean(behaviour: EBiometric): Boolean; overload;
function TBiometrics.RandomBoolean(index: Integer): Boolean; overload;
function TBiometrics.RandomBoolean(probability: Double): Boolean; overload;
Returns a random boolean that is influenced by the current TBiometrics.Hash.
Example:
UseBankEarly := Biometrics.RandomBoolean();
WriteLn UseBankEarly;
Biometrics.GetSleepHour¶
function TBiometrics.GetSleepHour(): String;
Gives you a unique sleep hour for the current player being used that can be anywhere from 23:00:00 to 04:00:00.
Example:
WriteLn Biometrics.SetSleepHour();
Biometrics.GetSleepLength¶
function TBiometrics.GetSleepLength(): Single;
Gives you a unique sleep length for the current player being used that can be anywhere from 6 to 10 hours.
Example:
WriteLn Biometrics.GetSleepLength();
Biometrics.Sleep¶
procedure TBiometrics.Sleep(time: UInt32);
procedure TBiometrics.Sleep(minimum, maximum: UInt32; weight: ERandomDir = ERandomDir.MEAN); overload;
Halts the script for time milliseconds influenced by your current player.
Example:
Biometrics.Sleep(3000);
Biometrics.Click¶
procedure TBiometrics.Click(button: EMouseButton; clicks: UInt32 = 3);
Clicks with button and has a chance to spam click up to clicks times which
by default is 3.
While spam clicking there’s a chance to wiggle the mouse a little bit.
Example:
Biometrics.Click(EMouseButton.LEFT);
Biometrics variable¶
Global TBiometrics variable.