function GetBotIndex(): integer;
var i: integer;
begin
Result:= -1;
for i:= 0 to BotList.count - 1 do // пробегаемся по списку аккаунтов в боте
if (TBot(BotList(i)) = Bot) then begin // сравниваем каждый элемент с объектом нашего аккаунта
Result:= i;
break;
end;
end;
begin
Print(GetBotIndex); // распечатает индекс нашего аккаунта в менеджере аккаунтов (индексы начинаются с 0)
end.
- Adrenaline
-
Classes
- TL2Control
- TL2Object
- TL2Spawn
- TL2Live
- TL2Char
- TL2User
- TL2Npc
- TL2Pet
- TL2Drop
- TL2Buff
- TL2Skill
- TLearnItem
- TL2Cast
- TL2Item
- TL2AucItem
- TL2List
- TL2StaticObject
- TSpawnList
- TCharList
- TNpcList
- TPetList
- TDropList
- TItemList
- TSkillList
- TBuffList
- TL2Warehouse
- TL2Auction
- TInventory
- TParty
- TConfirmDlg
- TMessages
- TChatMessage
- TBot
- TPaxEngine
- TGps
- TGpsPoint
- TL2Base
- TBaseList
- TBaseObject
- TBaseItem
- TBaseSkill
- TBaseAction
- TBaseNpc
- Enums
- Objects
- Methods
- Units
- NexTarget
- TRadar
- Scripts
- Scripts Examples
- Scripts Catalog
- Order a script
- Useful
- Navigation
- Cabinet
- Bot's site
- Buy Adrenaline
- Instructions
- Game IDs DB
- Tech. support