Example of account management in a bot

An example of programmatic interaction with other accounts in a bot from the script of the active window.


uses SysUtils, Classes;

var
  A: TAccount;
  E: TGameControl;

begin
  A:= Accounts.GetAccount(0);
  if (not Assigned(A)) then Print('Account is not defined');

  E:= A.Engine; // or A.Control   
  if (not Assigned(E)) then Print('Account Engine is not defined');
  E.MoveTo(0,0,0);
end.
ArcheAngel Bot classes structure
  • Classes
    • TGameControl
    • TPaxEngine
    • TGameObject
      • TItem
        • TAucItem
      • TZoneItem
      • TSpawn
        • TLive
          • TNpc
            • TMount
          • TDoodad
          • TPlayer
            • TUser
      • TMailItem
      • TEffect
        • TBuff
        • TSkill
          • TCast
    • TGameList
      • TSpawnList
        • TPlayers
        • TMobs
        • TMounts
        • TDoodads
        • TNpcs
      • TInventory
      • TSkills
      • TSlotList
      • TZoneList
      • TBuffs
      • TMail
      • TAuction
    • TChatMessage
    • TAccount
    • TAccounts
    • THistoryMessage
    • TMessages