# Profiles Page dedicated to handling profile accounts. - - - ## ProfileIndex variable This variable is what tells WaspLib which account you will be using of the ones you have in a {ref}`TProfileArray` you want to use for this botting session. - - - ## TProfileArray Type that holds player account information for {ref}`login`, world hopping and {ref}`bankpin` handling. - - - ## TProfileArray.Add ```pascal procedure TProfileArray.Add(user, pass: String; pin: String = ''; worlds: TIntegerArray = []); ``` Adds a TRSAccountProfile to the TProfileArray. Example: ```pascal Profiles.Add('username', 'password', '0000'); ``` - - - ## Profiles.GetPlayer ```pascal function TProfileArray.GetPlayer(): TRSAccountProfile; ``` Returns the currently selected TRSAccountProfile. The currently selected TRSAccountProfile is decided by `ProfileIndex` which is an index of the TRSAccountProfileArra. Example: ```pascal WriteLn Profiles.GetPlayer().Username; ``` - - - ## Profiles.GetPin ```pascal function TProfileArray.GetPin(): String; ``` Get the current Player bank pin. Example: ```pascal if BankPin.IsOpen() then BankPin.Enter(Profiles.GetPin()); ``` - - - ## Profiles.Load ```pascal procedure TProfileArray.Load(); ``` Loads all account profiles from the accounts JSON files (0.json, 1.json, etc). - - - ## TProfileArray.Contains ```pascal function TProfileArray.Contains(name: String): Boolean; ``` Checks if a profile with the given name already exists. - - - ## Profiles variable Global {ref}`TProfileArray` variable.