Events

Last updated 4 months ago

If you do not need one of these functions, you should not add it to your Python script.

finished

This function gets called when Python is being unloaded and the bot is exiting. You should close any open files here.

connected

This function gets called when the bot connects to the game server.

handle_joymax(opcode, data)

All packets received from the server are passed to this function.

handle_silkroad(opcode, data)

All packets received from the game client are passed to this function.

joined_game()

Called when the user successfully selects a character. No character data has been loaded yet.

teleported()

Called when the character teleports and right after joined_game()

event_loop()

Called every 500ms.

character_listing(args)

Called when the character listing is received. args is a string list of character names. Character name will include * at the beginning of its name if it is being deleted.

‚Äč

handle_chat(t, player, msg)

All chat messages received are sent to this function. player can be None if it's not a private message.