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 TProfileArray you want to use for this botting session.
TProfileArray¶
Type that holds player account information for Login, world hopping and BankPin handling.
TProfileArray.Add¶
procedure TProfileArray.Add(user, pass: String; pin: String = ''; worlds: TIntegerArray = []);
Adds a TRSAccountProfile to the TProfileArray.
Example:
Profiles.Add('username', 'password', '0000');
Profiles.GetPlayer¶
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:
WriteLn Profiles.GetPlayer().Username;
Profiles.GetPin¶
function TProfileArray.GetPin(): String;
Get the current Player bank pin.
Example:
if BankPin.IsOpen() then
BankPin.Enter(Profiles.GetPin());
Profiles.Load¶
procedure TProfileArray.Load();
Loads all account profiles from the accounts JSON files (0.json, 1.json, etc).
TProfileArray.Contains¶
function TProfileArray.Contains(name: String): Boolean;
Checks if a profile with the given name already exists.
Profiles variable¶
Global TProfileArray variable.