DeadZone Community Packages
    Preparing search index...

    Interface NPCComposition

    interface NPCComposition {
        STAT_ATTACK: number;
        STAT_DEFENCE: number;
        STAT_STRENGTH: number;
        STAT_HITPOINTS: number;
        STAT_RANGED: number;
        STAT_MAGIC: number;
        getName(): string;
        getModels(): number[];
        getChatheadModels(): number[];
        getActions(): string[];
        isInteractible(): boolean;
        isMinimapVisible(): boolean;
        getId(): number;
        getCombatLevel(): number;
        getConfigs(): number[];
        transform(): NPCComposition;
        getSize(): number;
        isFollower(): boolean;
        getFootprintSize(): number;
        getWidthScale(): number;
        getHeightScale(): number;
        getStats(): number[];
    }
    Index

    Methods

    • Gets the name of the NPC.

      Returns string

    • Gets the model IDs that compose this NPC.

      Returns number[]

    • Gets the model IDs that compose this NPC's chathead.

      Returns number[]

    • NPC can be interacting with via menu options

      Returns boolean

    • Gets whether the NPC is visible on the mini-map.

      Returns boolean

    • Gets the ID of the NPC.

      Returns number

    • Returns number

      the combat level, -1 if none

    • Get the IDs of NPCs this can transform into, depending on a Varbit or VarPlayer id

      Returns number[]

    • How many tiles wide this NPC is

      Returns number

    • If the npc is a follower, such as a pet. Is affected by the "Move follower options lower down" setting.

      Returns boolean

    • Get the npc footprint size

      Returns number

    • Horizontal scaling of the npc model (1/128th of a tile).

      Returns number

    • Vertical scaling of the npc model (1/128th of a tile).

      Returns number

    Properties

    STAT_ATTACK: number
    STAT_DEFENCE: number
    STAT_STRENGTH: number
    STAT_HITPOINTS: number
    STAT_RANGED: number
    STAT_MAGIC: number