LoginService

This services allows you to logout from the game aswell as log back in.

logout

Allows you to logout from the world server and go back to the server selection screen.

// Request
{    
    "service": "LoginService",
    "method": "logout",
    "params": {}
}

// Response
{
    "status": "ok",
    "result": {}
}

isServerSelectionVisible

Returns true if the server selection screen is visible, false otherwise.

isCharacterSelectionVisible

Returns true if the character selection screen is visible, false otherwise.

getCharacterSlots

Returns a list with your character slots information.

selectLanguage

Choose a language server from the server selection screen. The lang_index parameter starts from 0.

selectServer

Choose a server from the server selection screen. The server_index parameter starts from 0.

selectChannel

Choose a channel from the server selection screen. The channel_index parameter starts from 0.

selectCharacter

Choose a character from the character selection screen and starts the game. The character_index parameter starts from 0.

relog

This method is an all in one, it will perform the following actions:

  1. Logout your character

  2. Selects the specified server

  3. Selects the specified channel

  4. Selects the specified character

This method will block your current thread and will only return once the entire process has been completed. If the channel you are attempting to join is full the method will keep trying to join it indefinetly. If you want to stay at the character selection screen you can use a value of -1 for the character_index parameter.

Last updated