// Account 1
function OnEntry(var X: Integer): Boolean;
begin
print('Call from another script, increase X');
inc(X);
Result:= True;
end;
begin
Delay(-1);
end.
// Account 2
var
X: Integer;
Obj: TBot;
begin
if BotList.ByName('Account name 1', Obj) then begin // if found account
X:= 5; // assign an initial value of X
Print(Obj.UserName); // print his name
Obj.Control.Entry(X); // call the OnEntry event on account 1
Print(X); // print the new value of X
end;
end.
- Adrenaline
-
Classes
- TL2Control
- TL2Object
- TL2StaticObject
- TL2Spawn
- TL2Live
- TL2Char
- TL2User
- TL2Npc
- TL2Pet
- TL2Drop
- TL2Buff
- TL2Skill
- TLearnItem
- TL2Cast
- TL2Item
- TL2AucItem
- TL2List
- 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