# Biometrics Biometrics related methods that are unique to the current player being used. For your convenience you can use {ref}`TBiometrics` methods through the {ref}`Biometrics variable`. - - - ## EBiometric ```pascal 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 represent biometrics affected by the user user unique player seed. - - - ## TBiometrics Record responsible for biometrics and beiometric behaviour. - - - ## TBiometrics.GetHash ```pascal function TBiometrics.GetHash(): TByteArray; ``` Get the current unique hash `TBiometrics.Hash` being used. If none is set yet one will be set. If the currently used player changed, we also reset the hash. If there's no players availble we will use a random hash. Example: ```pascal WriteLn Biometrics.GetHash(); ``` - - - ## Biometrics.GetBiometric ```pascal function TBiometrics.GetBiometric(biometric: EBiometric): Integer; ``` Get the value that corresponds to the specified `biometric`. The value is between 0 and 255. Example: ```pascal WriteLn Biometrics.GetBiometric(EBiometric.FKEYS); ``` - - - ## Biometrics.GetProbability ```pascal function TBiometrics.GetProbability(biometric: EBiometric): Single; ``` Get a probability from the current hash that is represented by `biometric`. The probability is between 0.0 and 1.0. Example: ```pascal WriteLn Biometrics.GetProbability(EBiometric.FKEYS); ``` - - - ## Biometrics.Random ```pascal 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: ```pascal FoodAmount := Biometrics.Random(7); ``` - - - ## Biometrics.RandomMode ```pascal 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: ```pascal FoodAmount := Biometrics.RandomMode(7, 3, 15); ``` - - - ## Biometrics.RandomBoolean ```pascal function TBiometrics.RandomBoolean(): Boolean; function TBiometrics.RandomBoolean(behaviour: EBiometric): Boolean; overload; function TBiometrics.RandomBoolean(probability: Double): Boolean; overload; ``` Returns a random boolean that is influenced by the current `TBiometrics.Hash`. Example: ```pascal UseBankEarly := Biometrics.RandomBoolean(); WriteLn UseBankEarly; ``` - - - ## Biometrics.GetSleepHour ```pascal 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: ```pascal WriteLn Biometrics.SetSleepHour(); ``` - - - ## Biometrics.GetSleepLength ```pascal 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: ```pascal WriteLn Biometrics.GetSleepLength(); ``` - - - ## Biometrics.Sleep ```pascal 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: ```pascal Biometrics.Sleep(3000); ``` - - - ## Biometrics.Click ```pascal 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: ```pascal Biometrics.Click(EMouseButton.LEFT); ``` - - - ## Biometrics variable Global {ref}`TBiometrics` variable.