Class Creature [-] [+]

Non-Player controlled Units (i.e. NPCs).

Inherits all methods from: Object, WorldObject, Unit

Methods

AddLootMode

Adds a loot mode to the Creature

AttackStart

Make the Creature attack target.

CallAssistance

Make the Creature call for assistance in combat from other nearby Creatures.

CallForHelp

Make the Creature call for help in combat from friendly Creatures within radius.

CanAggro

Returns true if the Creature can start attacking nearby hostile Units, and returns false otherwise.

CanAssistTo

Returns true if the Creature can assist friend in combat against enemy, and returns false otherwise.

CanCompleteQuest

Returns true if the Creature completes the Quest with the ID questID, and returns false otherwise.

CanFly

Returns true if the Creature can fly, and returns false otherwise.

CanStartAttack

Returns true if the Creature can start attacking specified target

CanSwim

Returns true if the Creature can move through deep water, and returns false otherwise.

CanWalk

Returns true if the Creature can move on land, and returns false otherwise.

DespawnOrUnsummon

Despawn this Creature.

FleeToGetAssistance

Make the Creature flee combat to get assistance from a nearby friendly Creature.

GetAIName

Returns the Creature's AI name.

GetAITarget

Returns a target from the Creature's threat list based on the supplied arguments.

GetAITargets

Returns all Units in the Creature's threat list.

GetAITargetsCount

Returns the number of Units in this Creature's threat list.

GetAggroRange

Returns the aggro range of the Creature for target.

GetAttackDistance

Returns the effective aggro range of the Creature for target.

GetCorpseDelay

Returns the delay between when the Creature dies and when its body despawns.

GetCreatureSpellCooldownDelay

Returns the Creature's cooldown for spellID.

GetCurrentWaypointId

Returns the current waypoint ID of the Creature.

GetDBTableGUIDLow

Returns the guid of the Creature that is used as the ID in the database

GetDefaultMovementType

Returns the default movement type for this Creature.

GetHomePosition

Returns position the Creature returns to when evading from combat or respawning.

GetLootMode

GetLootRecipient

Returns the Player that can loot this Creature.

GetLootRecipientGroup

Returns the Group that can loot this Creature.

GetNPCFlags

Returns the Creature's NPC flags.

GetRespawnDelay

Returns the time it takes for this Creature to respawn once killed.

GetScriptId

Returns the Creature's script ID.

GetScriptName

Returns the Creature's script name.

GetShieldBlockValue

Returns the Creature's shield block value.

GetWanderRadius

Returns the radius the Creature is permitted to wander from its respawn point.

GetWaypointPath

Returns the current waypoint path ID of the Creature.

HasCategoryCooldown

Returns true if the Creature cannot cast spellId due to a category cooldown, and returns false otherwise.

HasLootMode

Returns true if Creature has the specified loot mode

HasLootRecipient

Returns true if the Creature will give its loot to a Player or Group, and returns false otherwise.

HasQuest

Returns true if the Creature starts the Quest questId, and returns false otherwise.

HasSearchedAssistance

Returns true if the Creature has searched for combat assistance already, and returns false otherwise.

HasSpell

Returns true if the Creature can cast spellId when mind-controlled, and returns false otherwise.

HasSpellCooldown

Returns true if the Creature has spellId on cooldown, and returns false otherwise.

IsCivilian

Returns true if the Creature is a civilian, and returns false otherwise.

IsDamageEnoughForLootingAndReward

Returns true if the Creature is damaged enough for looting

IsElite

Returns true if the Creature's rank is Elite or Rare Elite, and returns false otherwise.

IsGuard

Returns true if the Creature is a city guard, and returns false otherwise.

IsInEvadeMode

Returns true if the Creature is returning to its spawn position from combat, and returns false otherwise.

IsRacialLeader

Returns true if the Creature is the leader of a player faction, and returns false otherwise.

IsReputationGainDisabled

Returns true if the Creature is set to not give reputation when killed, and returns false otherwise.

IsTappedBy

Returns true if the Creature will give its loot to player, and returns false otherwise.

IsTargetableForAttack

Returns true if the Creature can be targeted for attack, and returns false otherwise.

IsTrigger

Returns true if the Creature is an invisible trigger, and returns false otherwise.

IsWorldBoss

Returns true if the Creature's rank is Boss, and returns false otherwise.

MoveWaypoint

Make the Creature start following its waypoint path.

RemoveCorpse

Remove this Creature's corpse.

RemoveLootMode

Removes specified loot mode from Creature

ResetLootMode

Resets Creature's loot mode to default

Respawn

Respawn this Creature.

SaveToDB

Save the Creature in the database.

SelectVictim

Make the Creature try to find a new target.

SetAggroEnabled

Sets whether the Creature can be aggroed.

SetDeathState

Sets the Creature's death state to deathState.

SetDefaultMovementType

Sets the default movement type of the Creature.

SetDisableGravity

Makes the Creature able to fly if enabled.

SetDisableReputationGain

Sets whether the Creature gives reputation or not.

SetEquipmentSlots

Equips given Items to the Unit. Using 0 removes the equipped Item

SetHomePosition

Sets the position the Creature returns to when evading from combat or respawning.

SetHover

Sets whether the creature is hovering / levitating or not.

SetInCombatWithZone

Sets the Creature as in combat with all Players in the dungeon instance.

SetLootMode

SetNPCFlags

Sets the Creature's NPC flags to flags.

SetNoCallAssistance

Sets whether the Creature can call nearby enemies for help in combat or not.

SetNoSearchAssistance

Sets whether the Creature can search for assistance at low health or not.

SetRespawnDelay

Sets the time it takes for the Creature to respawn when killed.

SetWalk

Sets whether the Creature is currently walking or running.

SetWanderRadius

Sets the distance the Creature can wander from it's spawn point.

UpdateEntry

Transform the Creature into another Creature.

Generated on 11/04/2018
©2016 - Eluna Lua Engine