Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
LuaCreature Namespace Reference

Functions

int AddLootMode (lua_State *L, Creature *creature)
int AttackStart (lua_State *L, Creature *creature)
int CallAssistance (lua_State *L, Creature *creature)
int CallForHelp (lua_State *L, Creature *creature)
int CanAssistTo (lua_State *L, Creature *creature)
int CanFly (lua_State *L, Creature *creature)
int CanStartAttack (lua_State *L, Creature *creature)
int CanSwim (lua_State *L, Creature *creature)
int CanWalk (lua_State *L, Creature *creature)
int Despawn (lua_State *L, Creature *creature)
int DespawnOrUnsummon (lua_State *L, Creature *creature)
int FleeToGetAssistance (lua_State *L, Creature *creature)
int GetAggroRange (lua_State *L, Creature *creature)
int GetAIName (lua_State *L, Creature *creature)
int GetAITarget (lua_State *L, Creature *creature)
int GetAITargets (lua_State *L, Creature *creature)
int GetAITargetsCount (lua_State *L, Creature *creature)
int GetAttackDistance (lua_State *L, Creature *creature)
int GetCorpseDelay (lua_State *L, Creature *creature)
int GetCreatureSpellCooldownDelay (lua_State *L, Creature *creature)
int GetCurrentWaypointId (lua_State *L, Creature *creature)
int GetDefaultMovementType (lua_State *L, Creature *creature)
int GetHomePosition (lua_State *L, Creature *creature)
int GetLootMode (lua_State *L, Creature *creature)
int GetLootRecipient (lua_State *L, Creature *creature)
int GetLootRecipientGroup (lua_State *L, Creature *creature)
int GetNearestHostileTargetInAggroRange (lua_State *L, Creature *creature)
int GetNearestTarget (lua_State *L, Creature *creature)
int GetNearestTargetInAttackDistance (lua_State *L, Creature *creature)
int GetNPCFlags (lua_State *L, Creature *creature)
int GetReactState (lua_State *L, Creature *creature)
int GetRespawnDelay (lua_State *L, Creature *creature)
int GetRespawnRadius (lua_State *L, Creature *creature)
int GetScriptId (lua_State *L, Creature *creature)
int GetScriptName (lua_State *L, Creature *creature)
int GetShieldBlockValue (lua_State *L, Creature *creature)
int GetTransportHomePosition (lua_State *L, Creature *creature)
int GetWaypointPath (lua_State *L, Creature *creature)
int HasCategoryCooldown (lua_State *L, Creature *creature)
int HasInvolvedQuest (lua_State *L, Creature *creature)
int HasLootMode (lua_State *L, Creature *creature)
int HasLootRecipient (lua_State *L, Creature *creature)
int HasQuest (lua_State *L, Creature *creature)
int HasReactState (lua_State *L, Creature *creature)
int HasSearchedAssistance (lua_State *L, Creature *creature)
int HasSpell (lua_State *L, Creature *creature)
int HasSpellCooldown (lua_State *L, Creature *creature)
int IsCivilian (lua_State *L, Creature *creature)
int IsDamageEnoughForLootingAndReward (lua_State *L, Creature *creature)
int IsDungeonBoss (lua_State *L, Creature *creature)
int IsElite (lua_State *L, Creature *creature)
int IsGuard (lua_State *L, Creature *creature)
int IsInEvadeMode (lua_State *L, Creature *creature)
int IsRacialLeader (lua_State *L, Creature *creature)
int IsRegeneratingHealth (lua_State *L, Creature *creature)
int IsReputationGainDisabled (lua_State *L, Creature *creature)
int IsTappedBy (lua_State *L, Creature *creature)
int IsTargetAcceptable (lua_State *L, Creature *creature)
int IsTrigger (lua_State *L, Creature *creature)
int IsWorldBoss (lua_State *L, Creature *creature)
int RemoveCorpse (lua_State *L, Creature *creature)
int RemoveLootMode (lua_State *L, Creature *creature)
int ResetLootMode (lua_State *L, Creature *creature)
int Respawn (lua_State *L, Creature *creature)
int SaveToDB (lua_State *L, Creature *creature)
int SelectVictim (lua_State *L, Creature *creature)
int SendCreatureTalk (lua_State *L, Creature *creature)
int SetDeathState (lua_State *L, Creature *creature)
int SetDefaultMovementType (lua_State *L, Creature *creature)
int SetDisableGravity (lua_State *L, Creature *creature)
int SetDisableReputationGain (lua_State *L, Creature *creature)
int SetHover (lua_State *L, Creature *creature)
int SetInCombatWithZone (lua_State *L, Creature *creature)
int SetLootMode (lua_State *L, Creature *creature)
int SetNoCallAssistance (lua_State *L, Creature *creature)
int SetNoSearchAssistance (lua_State *L, Creature *creature)
int SetNPCFlags (lua_State *L, Creature *creature)
int SetReactState (lua_State *L, Creature *creature)
int SetRespawnDelay (lua_State *L, Creature *creature)
int SetRespawnRadius (lua_State *L, Creature *creature)
int SetWalk (lua_State *L, Creature *creature)

Function Documentation

◆ AddLootMode()

int LuaCreature::AddLootMode ( lua_State * L,
Creature * creature )

Definition at line 254 of file CreatureMethods.cpp.

References Creature::AddLootMode().

◆ AttackStart()

int LuaCreature::AttackStart ( lua_State * L,
Creature * creature )

Definition at line 468 of file CreatureMethods.cpp.

References Creature::AI(), UnitAI::AttackStart(), and sEluna.

◆ CallAssistance()

int LuaCreature::CallAssistance ( lua_State * L,
Creature * creature )

Definition at line 186 of file CreatureMethods.cpp.

References Creature::CallAssistance().

◆ CallForHelp()

int LuaCreature::CallForHelp ( lua_State * L,
Creature * creature )

Definition at line 192 of file CreatureMethods.cpp.

References Creature::CallForHelp().

◆ CanAssistTo()

int LuaCreature::CanAssistTo ( lua_State * L,
Creature * creature )

Definition at line 149 of file CreatureMethods.cpp.

References Creature::CanAssistTo(), and sEluna.

◆ CanFly()

int LuaCreature::CanFly ( lua_State * L,
Creature * creature )

Definition at line 686 of file CreatureMethods.cpp.

References Creature::CanFly(), and sEluna.

◆ CanStartAttack()

int LuaCreature::CanStartAttack ( lua_State * L,
Creature * creature )

Definition at line 227 of file CreatureMethods.cpp.

References Creature::CanStartAttack(), and sEluna.

◆ CanSwim()

int LuaCreature::CanSwim ( lua_State * L,
Creature * creature )

Definition at line 351 of file CreatureMethods.cpp.

References Creature::CanSwim(), and sEluna.

◆ CanWalk()

int LuaCreature::CanWalk ( lua_State * L,
Creature * creature )

Definition at line 357 of file CreatureMethods.cpp.

References Creature::CanWalk(), and sEluna.

◆ Despawn()

int LuaCreature::Despawn ( lua_State * L,
Creature * creature )

Definition at line 499 of file CreatureMethods.cpp.

References Creature::DespawnOrUnsummon().

◆ DespawnOrUnsummon()

int LuaCreature::DespawnOrUnsummon ( lua_State * L,
Creature * creature )

Definition at line 110 of file CreatureMethods.cpp.

References Creature::DespawnOrUnsummon().

◆ FleeToGetAssistance()

int LuaCreature::FleeToGetAssistance ( lua_State * L,
Creature * creature )

Definition at line 200 of file CreatureMethods.cpp.

References Creature::DoFleeToGetAssistance().

◆ GetAggroRange()

int LuaCreature::GetAggroRange ( lua_State * L,
Creature * creature )

Definition at line 206 of file CreatureMethods.cpp.

References Creature::GetAttackDistance(), and sEluna.

◆ GetAIName()

int LuaCreature::GetAIName ( lua_State * L,
Creature * creature )

Definition at line 430 of file CreatureMethods.cpp.

References Creature::GetAIName(), and sEluna.

◆ GetAITarget()

int LuaCreature::GetAITarget ( lua_State * L,
Creature * creature )

Definition at line 517 of file CreatureMethods.cpp.

◆ GetAITargets()

int LuaCreature::GetAITargets ( lua_State * L,
Creature * creature )

Definition at line 593 of file CreatureMethods.cpp.

◆ GetAITargetsCount()

int LuaCreature::GetAITargetsCount ( lua_State * L,
Creature * creature )

◆ GetAttackDistance()

int LuaCreature::GetAttackDistance ( lua_State * L,
Creature * creature )

Definition at line 216 of file CreatureMethods.cpp.

References Creature::GetAttackDistance(), and sEluna.

◆ GetCorpseDelay()

int LuaCreature::GetCorpseDelay ( lua_State * L,
Creature * creature )

Definition at line 450 of file CreatureMethods.cpp.

References Creature::GetCorpseDelay(), and sEluna.

◆ GetCreatureSpellCooldownDelay()

int LuaCreature::GetCreatureSpellCooldownDelay ( lua_State * L,
Creature * creature )

Definition at line 442 of file CreatureMethods.cpp.

References Creature::GetCreatureSpellCooldownDelay(), and sEluna.

◆ GetCurrentWaypointId()

int LuaCreature::GetCurrentWaypointId ( lua_State * L,
Creature * creature )

Definition at line 32 of file CreatureMethods.cpp.

References Creature::GetCurrentWaypointID(), and sEluna.

◆ GetDefaultMovementType()

int LuaCreature::GetDefaultMovementType ( lua_State * L,
Creature * creature )

Definition at line 132 of file CreatureMethods.cpp.

References Creature::GetDefaultMovementType(), and sEluna.

◆ GetHomePosition()

int LuaCreature::GetHomePosition ( lua_State * L,
Creature * creature )

Definition at line 456 of file CreatureMethods.cpp.

References Creature::GetHomePosition(), and sEluna.

◆ GetLootMode()

int LuaCreature::GetLootMode ( lua_State * L,
Creature * creature )

Definition at line 278 of file CreatureMethods.cpp.

References Creature::GetLootMode(), and sEluna.

◆ GetLootRecipient()

int LuaCreature::GetLootRecipient ( lua_State * L,
Creature * creature )

Definition at line 307 of file CreatureMethods.cpp.

References Creature::GetLootRecipient(), and sEluna.

◆ GetLootRecipientGroup()

int LuaCreature::GetLootRecipientGroup ( lua_State * L,
Creature * creature )

Definition at line 301 of file CreatureMethods.cpp.

References Creature::GetLootRecipientGroup(), and sEluna.

◆ GetNearestHostileTargetInAggroRange()

int LuaCreature::GetNearestHostileTargetInAggroRange ( lua_State * L,
Creature * creature )

◆ GetNearestTarget()

int LuaCreature::GetNearestTarget ( lua_State * L,
Creature * creature )

Definition at line 485 of file CreatureMethods.cpp.

References Creature::SelectNearestTarget(), and sEluna.

◆ GetNearestTargetInAttackDistance()

int LuaCreature::GetNearestTargetInAttackDistance ( lua_State * L,
Creature * creature )

Definition at line 478 of file CreatureMethods.cpp.

References Creature::SelectNearestTargetInAttackDistance(), and sEluna.

◆ GetNPCFlags()

int LuaCreature::GetNPCFlags ( lua_State * L,
Creature * creature )

Definition at line 635 of file CreatureMethods.cpp.

References Object::GetUInt32Value(), sEluna, and UNIT_FIELD_NPC_FLAGS.

◆ GetReactState()

int LuaCreature::GetReactState ( lua_State * L,
Creature * creature )

Definition at line 337 of file CreatureMethods.cpp.

References Creature::GetReactState(), and sEluna.

◆ GetRespawnDelay()

int LuaCreature::GetRespawnDelay ( lua_State * L,
Creature * creature )

Definition at line 104 of file CreatureMethods.cpp.

References Creature::GetRespawnDelay(), and sEluna.

◆ GetRespawnRadius()

int LuaCreature::GetRespawnRadius ( lua_State * L,
Creature * creature )

Definition at line 84 of file CreatureMethods.cpp.

References Creature::GetRespawnRadius(), and sEluna.

◆ GetScriptId()

int LuaCreature::GetScriptId ( lua_State * L,
Creature * creature )

Definition at line 436 of file CreatureMethods.cpp.

References Creature::GetScriptId(), and sEluna.

◆ GetScriptName()

int LuaCreature::GetScriptName ( lua_State * L,
Creature * creature )

Definition at line 424 of file CreatureMethods.cpp.

References Creature::GetScriptName(), and sEluna.

◆ GetShieldBlockValue()

int LuaCreature::GetShieldBlockValue ( lua_State * L,
Creature * creature )

Definition at line 679 of file CreatureMethods.cpp.

◆ GetTransportHomePosition()

int LuaCreature::GetTransportHomePosition ( lua_State * L,
Creature * creature )

Definition at line 44 of file CreatureMethods.cpp.

References Creature::GetTransportHomePosition(), and sEluna.

◆ GetWaypointPath()

int LuaCreature::GetWaypointPath ( lua_State * L,
Creature * creature )

Definition at line 38 of file CreatureMethods.cpp.

References Creature::GetWaypointPath(), and sEluna.

◆ HasCategoryCooldown()

int LuaCreature::HasCategoryCooldown ( lua_State * L,
Creature * creature )

Definition at line 416 of file CreatureMethods.cpp.

References Creature::HasCategoryCooldown(), and sEluna.

◆ HasInvolvedQuest()

int LuaCreature::HasInvolvedQuest ( lua_State * L,
Creature * creature )

Definition at line 62 of file CreatureMethods.cpp.

References Creature::hasInvolvedQuest(), and sEluna.

◆ HasLootMode()

int LuaCreature::HasLootMode ( lua_State * L,
Creature * creature )

Definition at line 270 of file CreatureMethods.cpp.

References Creature::HasLootMode(), and sEluna.

◆ HasLootRecipient()

int LuaCreature::HasLootRecipient ( lua_State * L,
Creature * creature )

Definition at line 295 of file CreatureMethods.cpp.

References Creature::hasLootRecipient(), and sEluna.

◆ HasQuest()

int LuaCreature::HasQuest ( lua_State * L,
Creature * creature )

Definition at line 657 of file CreatureMethods.cpp.

References Creature::hasQuest(), and sEluna.

◆ HasReactState()

int LuaCreature::HasReactState ( lua_State * L,
Creature * creature )

Definition at line 343 of file CreatureMethods.cpp.

References Creature::HasReactState(), and sEluna.

◆ HasSearchedAssistance()

int LuaCreature::HasSearchedAssistance ( lua_State * L,
Creature * creature )

Definition at line 164 of file CreatureMethods.cpp.

References Creature::HasSearchedAssistance(), and sEluna.

◆ HasSpell()

int LuaCreature::HasSpell ( lua_State * L,
Creature * creature )

Definition at line 649 of file CreatureMethods.cpp.

References Creature::HasSpell(), and sEluna.

◆ HasSpellCooldown()

int LuaCreature::HasSpellCooldown ( lua_State * L,
Creature * creature )

Definition at line 671 of file CreatureMethods.cpp.

References Creature::HasSpellCooldown(), and sEluna.

◆ IsCivilian()

int LuaCreature::IsCivilian ( lua_State * L,
Creature * creature )

Definition at line 404 of file CreatureMethods.cpp.

References Creature::IsCivilian(), and sEluna.

◆ IsDamageEnoughForLootingAndReward()

int LuaCreature::IsDamageEnoughForLootingAndReward ( lua_State * L,
Creature * creature )

Definition at line 12 of file CreatureMethods.cpp.

References Creature::IsDamageEnoughForLootingAndReward(), and sEluna.

◆ IsDungeonBoss()

int LuaCreature::IsDungeonBoss ( lua_State * L,
Creature * creature )

Definition at line 623 of file CreatureMethods.cpp.

References Creature::IsDungeonBoss(), and sEluna.

◆ IsElite()

int LuaCreature::IsElite ( lua_State * L,
Creature * creature )

Definition at line 386 of file CreatureMethods.cpp.

References Creature::isElite(), and sEluna.

◆ IsGuard()

int LuaCreature::IsGuard ( lua_State * L,
Creature * creature )

Definition at line 392 of file CreatureMethods.cpp.

References Creature::IsGuard(), and sEluna.

◆ IsInEvadeMode()

int LuaCreature::IsInEvadeMode ( lua_State * L,
Creature * creature )

Definition at line 380 of file CreatureMethods.cpp.

References Creature::IsInEvadeMode(), and sEluna.

◆ IsRacialLeader()

int LuaCreature::IsRacialLeader ( lua_State * L,
Creature * creature )

Definition at line 410 of file CreatureMethods.cpp.

References Creature::IsRacialLeader(), and sEluna.

◆ IsRegeneratingHealth()

int LuaCreature::IsRegeneratingHealth ( lua_State * L,
Creature * creature )

Definition at line 56 of file CreatureMethods.cpp.

References Creature::isRegeneratingHealth(), and sEluna.

◆ IsReputationGainDisabled()

int LuaCreature::IsReputationGainDisabled ( lua_State * L,
Creature * creature )

Definition at line 18 of file CreatureMethods.cpp.

References Creature::IsReputationGainDisabled(), and sEluna.

◆ IsTappedBy()

int LuaCreature::IsTappedBy ( lua_State * L,
Creature * creature )

Definition at line 284 of file CreatureMethods.cpp.

References Creature::isTappedBy(), and sEluna.

◆ IsTargetAcceptable()

int LuaCreature::IsTargetAcceptable ( lua_State * L,
Creature * creature )

Definition at line 138 of file CreatureMethods.cpp.

References Unit::isTargetableForAttack(), and sEluna.

◆ IsTrigger()

int LuaCreature::IsTrigger ( lua_State * L,
Creature * creature )

Definition at line 398 of file CreatureMethods.cpp.

References Creature::IsTrigger(), and sEluna.

◆ IsWorldBoss()

int LuaCreature::IsWorldBoss ( lua_State * L,
Creature * creature )

Definition at line 629 of file CreatureMethods.cpp.

References Creature::isWorldBoss(), and sEluna.

◆ RemoveCorpse()

int LuaCreature::RemoveCorpse ( lua_State * L,
Creature * creature )

Definition at line 118 of file CreatureMethods.cpp.

References Creature::RemoveCorpse().

◆ RemoveLootMode()

int LuaCreature::RemoveLootMode ( lua_State * L,
Creature * creature )

Definition at line 246 of file CreatureMethods.cpp.

References Creature::RemoveLootMode().

◆ ResetLootMode()

int LuaCreature::ResetLootMode ( lua_State * L,
Creature * creature )

Definition at line 240 of file CreatureMethods.cpp.

References Creature::ResetLootMode().

◆ Respawn()

int LuaCreature::Respawn ( lua_State * L,
Creature * creature )

Definition at line 90 of file CreatureMethods.cpp.

References Creature::Respawn().

◆ SaveToDB()

int LuaCreature::SaveToDB ( lua_State * L,
Creature * creature )

Definition at line 665 of file CreatureMethods.cpp.

References Creature::SaveToDB().

◆ SelectVictim()

int LuaCreature::SelectVictim ( lua_State * L,
Creature * creature )

Definition at line 692 of file CreatureMethods.cpp.

References Creature::SelectVictim(), and sEluna.

◆ SendCreatureTalk()

int LuaCreature::SendCreatureTalk ( lua_State * L,
Creature * creature )

Definition at line 506 of file CreatureMethods.cpp.

References Creature::AI(), sEluna, and CreatureAI::Talk().

◆ SetDeathState()

int LuaCreature::SetDeathState ( lua_State * L,
Creature * creature )

Definition at line 313 of file CreatureMethods.cpp.

References Creature::setDeathState().

◆ SetDefaultMovementType()

int LuaCreature::SetDefaultMovementType ( lua_State * L,
Creature * creature )

Definition at line 124 of file CreatureMethods.cpp.

References Creature::SetDefaultMovementType().

◆ SetDisableGravity()

int LuaCreature::SetDisableGravity ( lua_State * L,
Creature * creature )

Definition at line 363 of file CreatureMethods.cpp.

References sEluna, and Unit::SetDisableGravity().

◆ SetDisableReputationGain()

int LuaCreature::SetDisableReputationGain ( lua_State * L,
Creature * creature )

Definition at line 24 of file CreatureMethods.cpp.

References Creature::SetDisableReputationGain().

◆ SetHover()

int LuaCreature::SetHover ( lua_State * L,
Creature * creature )

Definition at line 372 of file CreatureMethods.cpp.

References sEluna, and Unit::SetHover().

◆ SetInCombatWithZone()

int LuaCreature::SetInCombatWithZone ( lua_State * L,
Creature * creature )

Definition at line 70 of file CreatureMethods.cpp.

References Creature::SetInCombatWithZone().

◆ SetLootMode()

int LuaCreature::SetLootMode ( lua_State * L,
Creature * creature )

Definition at line 262 of file CreatureMethods.cpp.

References Creature::SetLootMode().

◆ SetNoCallAssistance()

int LuaCreature::SetNoCallAssistance ( lua_State * L,
Creature * creature )

Definition at line 178 of file CreatureMethods.cpp.

References Creature::SetNoCallAssistance().

◆ SetNoSearchAssistance()

int LuaCreature::SetNoSearchAssistance ( lua_State * L,
Creature * creature )

Definition at line 170 of file CreatureMethods.cpp.

References Creature::SetNoSearchAssistance().

◆ SetNPCFlags()

int LuaCreature::SetNPCFlags ( lua_State * L,
Creature * creature )

Definition at line 641 of file CreatureMethods.cpp.

References Object::SetUInt32Value(), and UNIT_FIELD_NPC_FLAGS.

◆ SetReactState()

int LuaCreature::SetReactState ( lua_State * L,
Creature * creature )

Definition at line 329 of file CreatureMethods.cpp.

References Creature::SetReactState().

◆ SetRespawnDelay()

int LuaCreature::SetRespawnDelay ( lua_State * L,
Creature * creature )

Definition at line 96 of file CreatureMethods.cpp.

References Creature::SetRespawnDelay().

◆ SetRespawnRadius()

int LuaCreature::SetRespawnRadius ( lua_State * L,
Creature * creature )

Definition at line 76 of file CreatureMethods.cpp.

References Creature::SetRespawnRadius().

◆ SetWalk()

int LuaCreature::SetWalk ( lua_State * L,
Creature * creature )

Definition at line 321 of file CreatureMethods.cpp.

References Unit::SetWalk().