Method PlayerBot.CreateBotSession [-] [+]

Creates a bot [WorldSession] without a network socket (isBot=true). The session is added to the world session manager but no character is logged in yet. Use [LoginBotByGuid] to log in a character on this session.

You typically don't need to call this directly — [LoginBotByGuid] creates its own session.

Synopsis

success = Playerbot.CreateBotSession( accountId )

Arguments

number accountId

The account ID for the bot session.

Valid numbers: integers from 0 to 4,294,967,295.

Returns

boolean success

True if session was created, false if it already exists or accountId is invalid.

Generated on
©2026 - ALE Lua Engine