XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 67

Thread: [Update] XenoBot Apophis v14.7.6.733

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Senior Member
    Join Date
    Jul 2014
    Posts
    788
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    @DarkstaR, you can edit messages proxy, example
    lua code:

    function messageProxyCallback(proxy, message)
    print(proxy:Key() .. ": " .. message)
    end
    CustomMessageProxy.OnReceive("CustomMessageProxy", messageProxyCallback, LOOT_PROXY)
    CustomMessageProxy.OnReceive("CustomMessageProxy", messageProxyCallback, BATTLE_PROXY)
    CustomMessageProxy.OnReceive("CustomMessageProxy", messageProxyCallback, SUPPLY_PROXY)
    CustomMessageProxy.OnReceive("CustomMessageProxy", messageProxyCallback, NPC_PROXY)

    and variables in xenolualib:
    example:
    lua code:

    BATTLE_PROXY = 12
    LOOT_PROXY = 13
    SUPPLY_PROXY = 14
    NPC_PROXY = 15

    And as we know loot message, supplies etc. green messages have different ID in tibia.
    Example from Tibia 10.41 OTS
    lua code:

    enum MessageClasses {
    MESSAGE_STATUS_CONSOLE_BLUE = 0x04, /*FIXME Blue message in the console*/
    MESSAGE_STATUS_CONSOLE_RED = 0x0D, /*Red message in the console*/
    MESSAGE_STATUS_DEFAULT = 0x11, /*White message at the bottom of the game window and in the console*/
    MESSAGE_STATUS_WARNING = 0x12, /*Red message in game window and in the console*/
    MESSAGE_EVENT_ADVANCE = 0x13, /*White message in game window and in the console*/
    MESSAGE_STATUS_SMALL = 0x14, /*White message at the bottom of the game window"*/
    MESSAGE_INFO_DESCR = 0x15, /*Green message in game window and in the console*/
    MESSAGE_DAMAGE_DEALT = 0x16,
    MESSAGE_DAMAGE_RECEIVED = 0x17,
    MESSAGE_HEALED = 0x18,
    MESSAGE_EXPERIENCE = 0x19,
    MESSAGE_DAMAGE_OTHERS = 0x1A,
    MESSAGE_HEALED_OTHERS = 0x1B,
    MESSAGE_EXPERIENCE_OTHERS = 0x1C,
    MESSAGE_EVENT_DEFAULT = 0x1D, /*White message at the bottom of the game window and in the console*/
    MESSAGE_LOOT = 0x1E,
    MESSAGE_EVENT_ORANGE = 0x23, /*Orange message in the console*/
    MESSAGE_STATUS_CONSOLE_ORANGE = 0x24 /*Orange message in the console*/
    };
    Last edited by HjugO; 08-04-2014 at 01:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •