Skip to content

Events

These are hooked events inside of Astrogalaxy. The Listen function hooks these events.

SDK_EVENT_FANTASY_X_RENDER

Description

Called whenever fantasy.x renders a new frame.


SDK_EVENT_LOAD_CONFIG

Description

Called whenever Astrogalaxy loads your configuration.

Parameter

  • string - Configuration in JSON.

Example

auto on_configuration_load( std::string json ) -> void
{
    /// print my configuration to console.
    std::cout << json;
}

SDK_EVENT_SAVE_CONFIG

Description

Called whenever Astrogalaxy saves your configuration.

Parameter

  • string - Configuration in JSON.

Example

auto on_configuration_save( std::string json ) -> void
{
    std::cout << "Configuration has been saved!" << std::endl;
}

SDK_EVENT_ON_FANTASY_CMD

Description

Called whenever a fantasy.cmd command is submitted.

Parameter

  • string - The command.

Example

auto on_fantasy_command( std::string cmd ) -> void
{
    if( !cmd.compare("boop") )
    {
        std::cout << "\"boop\" command activated!" << std::endl;
    }
}

SDK_EVENT_ON_FORUM_LOAD

Description

Called when Astrogalaxy loads your forum account information.


SDK_EVENT_ON_BHOP_RESET

Description

Called when Astrogalaxy's BHOP Learning System resets.


SDK_EVENT_ON_BHOP_ACTIVATE

Description

Called when Astrogalaxy's BHOP Learning System activates.


SDK_EVENT_TRIGGERBOT

Description

Called when Astrogalaxy's triggerbot activates.


SDK_EVENT_HUMANIZER_ACTIVATE

Description

Called every thinking tick of the humanizer.

Parameter

  • string - Target address.

Returns

  • boolean - Continue humanizer tick.

Example

auto on_humanizer_activate( std::string data ) -> bool
{
    /// get the target player information.
    player_information = sdk_information->GetPlayerInformation(data);

    /// visibility check
    auto is_visible = false;
    /// <code></code>

    /// when you return false, the humanizer stops. true, it continues.
    return is_visible;
}

SDK_EVENT_TICK

Description

Called every tick of Astrogalaxy's main thread.