Jump to content
  • We are looking for staff for the Wiki area!
    If interested please
    click here and select "Documentation Team"

  • creature_linking_template


    antz
     NOTE:  This page is auto-generated from the MAGNET DBDocs module,
                 Any changes made directly to this page will be lost when it is regenerated.

    Description of the 'creature_linking_template' table for MaNGOSThree

    This table holds details on how creature templates linked to a master creature template should act in combat and non-combat situations.

    Table Notes

    This table uses the 'InnoDB' DB Engine

    The Field definitions follow:

    Field Name Field Type Nullable Key Default Value Attributes Notes
    entry mediumint(8) unsigned NO PRI '0'   creature_template.entry of the slave mob that is linked.
    map smallint(5) unsigned NO PRI '0'   A map identifier
    master_entry mediumint(8) unsigned NO '0'   master entry to trigger events
    flag mediumint(8) unsigned NO '0'   This flag determines how a linked creature will act.
    search_range mediumint(8) unsigned NO '0'   IF given != 0 only mobs with spawn-dist

    Description of the fields

    entry mediumint(8) unsigned

    creature_template.entry of the slave mob that is linked [See creature_template.entry].

    map smallint(5) unsigned

    A map identifier. The value has to match with a map identifier [See Map.dbc]. This is the map where creature templates are located.

    master_entry mediumint(8) unsigned

    This is a unique ID for which the entry is valid [See "creature_template" table].

    This is the master creature template which defines behaviour for the linked creature template.

    flag mediumint(8) unsigned

    This flag determines how a linked creature will act, when the master is changing it's combat state. Flags provide support for combat state, non combat state and life state.

    The following flags determine the behaviour if the master is in combat state.

    Value Hex FlagName Description
    1 0x1 FLAG_AGGRO_ON_AGGRO The "slave" aggroes when the "master" aggroes
    2 0x2 FLAG_TO_AGGRO_ON_AGGRO The master aggroes when the slave aggroes
    4 0x4 FLAG_RESPAWN_ON_EVADE The slave respawns when the master evades
    8 0x8 FLAG_TO_RESPAWN_ON_EVADE the master respawns when the slave evades
    16 0x10 FLAG_DESPAWN_ON_DEATH the slave despawns when the master dies
    32 0x20 FLAG_SELFKILL_ON_DEATH the slave goes suicide when the master dies
    64 0x40 FLAG_RESPAWN_ON_DEATH the slave respawn when the master dies
    128 0x80 FLAG_RESPAWN_ON_RESPAWN the slave respawns on master respawn
    256 0x100 FLAG_DESPAWN_ON_RESPAWN the slave despawns on master respawn (TODO: check for slave != master)
    512 0x200 FLAG_FOLLOW the slave follows the master, very basic, see TODO notes in commit, or post below
    1024 0x400 FLAG_CANT_SPAWN_IF_BOSS_DEAD the slave cannot respawn while boss is dead
    2048 0x800 FLAG_CANT_SPAWN_IF_BOSS_ALIVE the slave cannot respawn while boss is alive
    4096 0x1000 FLAG_DESPAWN_ON_EVADE the slave despawn after the master evade
    8192 0x2000 FLAG_DESPAWN_ON_DESPAWN the slave despawn after the master despawns


    search_range mediumint(8) unsigned

    IF given != 0 only mobs with spawn-dist
    IF = 0 all mobs on the map are linked to the master.


    auto-generated by the getMaNGOS.eu MAGNET dbdocs module

    Edited by Antz


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use