Players

Page dedicated to handling player accounts.


PlayerIndex variable

This variable is what tells WaspLib which account you will be using of the ones you have in a TRSPlayerArray you want to use for this botting session.


TRSPlayerArray

Type that holds player account information for Login, world hopping and BankPin handling.


TRSPlayerArray.Add

procedure TRSPlayerArray.Add(user, pass: String; pin: String = ''; worlds: TIntegerArray = []);

Adds a TRSPlayer to the TRSPlayerArray.

Example:

Players.Add('username', 'password', '0000');

Players.GetPlayer

function TRSPlayerArray.GetPlayer(): TRSPlayer;

Returns the currently selected TRSPlayer. The currently selected TRSPlayer is decided by PlayerIndex which is an index of the TRSPlayerArra.

Example:

WriteLn Players.GetPlayer().Username;

Players.GetPin

function TRSPlayerArray.GetPin(): String;

Get the current Player bank pin.

Example:

if BankPin.IsOpen() then
  BankPin.Enter(Players.GetPin());

Players variable

Global TRSPlayerArray variable.