AddAchievement |
Adds the Achievement with the ID specified to the player. |
unit:AddAchievement() |
AddArenaPoints |
Adds the specified amount of arena points to the Unit specified. |
unit:AddArenaPoints() |
AddAura |
Buffs/Debuffs the current unit/player with the spell specified, with the duration specified. Setting temp to true allows it to stay on after logging. |
unit:AddAura() |
AddAuraObject |
|
unit:AddAuraObject() |
AddGroupMember |
Adds the Target to the Player’s group. |
unit:AddGroupMember() |
AddGuildMember |
Forces pPlayer to join the Unit’s guild. |
unit:AddGuildMember() |
AddItem |
Creates a new menu item, used after registering a new menu with GossipCreateMenu(). |
unit:AddItem() |
AddLifetimeKills |
Adds the amount of lifetime kills specified to the player’s total count. |
unit:AddLifetimeKills() |
AddLoot |
Adds the specified item to the Unit’s loot table. This will drop in amounts of mincount to maxcount, and if freeforall is set to true, anyone can use it. |
unit:AddLoot() |
AddSkill |
Sets the player’s skill line at skill to current, and the max to max. |
unit:AddSkill() |
AddToPhase |
|
unit:AddToPhase() |
AddVehiclePassenger |
Spawns an NPC and adds it as a passenger to the vehicle. |
unit:AddVehiclePassenger() |
AdvanceAllSkills |
Advances all skills by amount. |
unit:AdvanceAllSkills() |
AdvanceQuestObjective |
Advances the objective in quest id by 1. |
unit:AdvanceQuestObjective() |
AdvanceSkill |
Advances the skill by count. |
unit:AdvanceSkill() |
AggroWithInRangeFriends |
Unknown. See core for usage. |
unit:AggroWithInRangeFriends() |
Attack |
Sets the Unit’s main-hand attack speed to timer. If offhand is true, offhand is also set to this. |
unit:Attack() |
AttackReaction |
Adds threat to the target (Not damage) using the spell specified. |
unit:AttackReaction() |
BanFromChannel |
Bans the Unit from the Channel. |
unit:BanFromChannel() |
CalcAngle |
Calculates the angle between x/y and x2/y2 and takes the Unit’s position into account. See page for more info. |
unit:CalcAngle() |
CalcRadAngle |
Returns an angle in radians from the numbers x/y, x2/y2 and the Unit’s position. |
unit:CalcRadAngle() |
CalcToDistance |
Calculates the distance between the Unit and the point specified. |
unit:CalcToDistance() |
CallForHelpHp |
Sets the Unit’s ‘call for help’ HP to the hp specified. Basically, when the Unit hits this HP he flees for help. |
unit:CallForHelpHp() |
CanAttack |
Returns true if the unit can attack the target, false if not. |
unit:CanAttack() |
CanCallForHelp |
Sets the Unit to be able/unable to call for help. |
unit:CanCallForHelp() |
CancelSpell |
Stops casting the current spell. |
unit:CancelSpell() |
CanUseCommand |
Returns true if the Unit can use the specified level (“a” is usually GM, “az” for an admin). |
unit:CanUseCommand() |
CastSpell |
Casts the specified spell. Any cast time is ignored. |
unit:CastSpell() |
CastSpellAoE |
|
unit:CastSpellAoE() |
CastSpellAoF |
Casts the targeted AoE spell (Think Blizzard & Shadowfury) at the given area. Ignores cast times. |
unit:CastSpellAoF() |
CastSpellOnTarget |
Casts the specified spell on the target. Any cast time is ignored. |
unit:CastSpellOnTarget() |
ChangeGuildMaster |
Changes the Guild Master to newmaster. |
unit:ChangeGuildMaster() |
ChangeTarget |
Sets the Unit’s new target to new_target. |
unit:ChangeTarget() |
ChannelSpell |
Channels the spell given at the target. |
unit:ChannelSpell() |
ClearAllCooldowns |
Clears all Cooldowns for the player. |
unit:ClearAllCooldowns() |
ClearCooldownForSpell |
Removes the Cooldown of the spell specified for the player. |
unit:ClearCooldownForSpell() |
ClearThreatList |
Sets the threat of everyone on the Unit’s threat list to 1. |
unit:ClearThreatList() |
CreateGuardian |
Creates a guardian (a mob that attacks when you are attacked) with the specified parameters. |
unit:CreateGuardian() |
CreateLuaEvent |
|
unit:CreateLuaEvent() |
CreatureHasQuest |
Returns true if the creature can give the quest, otherwise returns false. |
unit:CreatureHasQuest() |
DealDamage |
Deals damage to the target with the specified spell. |
unit:DealDamage() |
DealGoldCost |
Removes the amount of copper from the player. |
unit:DealGoldCost() |
DealGoldMerit |
Akin to DealGoldCost(), but adds copper instead of removing it. |
unit:DealGoldMerit() |
DeletePhase |
Removes the phase specified. If ‘save’ is set to true, and the Unit is a NPC/Object, then the Unit will be saved to the new phase it is automatically set to. |
unit:DeletePhase() |
deMorph |
Sets the Unit’s display id back to it’s native one. |
unit:deMorph() |
DemoteGuildMember |
Forces the Unit to demote the target guild member. |
unit:DemoteGuildMember() |
Despawn |
Despawns the Unit with the delay. If the respawntimer is set to 0, the mob won’t respawn. |
unit:Despawn() |
DisableCombat |
If set to true, disables the Unit’s ability to enter combat completely. |
unit:DisableCombat() |
DisableMelee |
If set to true, disables the Unit’s ability to use Melee Combat. |
unit:DisableMelee() |
DisableRanged |
If set to true, disables the Unit’s ability to use Ranged Combat. |
unit:DisableRanged() |
DisableRespawn |
If set to false, the mob will no longer respawn. |
unit:DisableRespawn() |
DisableSpells |
If set to true, disables the Unit’s ability to use Spells. |
unit:DisableSpells() |
DisableTargeting |
If set to true, disables the Unit’s targeting capabilities (The mob will not be able to use targeted spells either). |
unit:DisableTargeting() |
DisbandGuild |
Disbands the Unit’s guild. |
unit:DisbandGuild() |
DismissPet |
Dismisses any current pet. |
unit:DismissPet() |
DismissVehicle |
Dismisses the vehicle of the selected unit. |
unit:DismissVehicle() |
Dismount |
Dismounts the Unit. |
unit:Dismount() |
EjectAllVehiclePassengers |
Ejects all passengers from the Unit’s vehicle. |
unit:EjectAllVehiclePassengers() |
EjectVehiclePassengerFromSeat |
Ejects the passenger from the specified seat of the Unit’s vehicle. |
unit:EjectVehiclePassengerFromSeat() |
Emote |
Makes the Unit use the emote specified. If time is greater than 0, then it is preformed after a delay of (time)ms. |
unit:Emote() |
EnableFlight |
If set to true, disables the usage of all flight path nodes. |
unit:EnableFlight() |
EnableFlyCheat |
Acts similar to the gm command .cheat fly. |
unit:EnableFlyCheat() |
EnableMoveFly |
Similar to SetFlying(). |
unit:EnableMoveFly() |
Energize |
Restores the amount of a type of energy to the target using a spell visual. See page for more info. |
unit:Energize() |
EnterVehicle |
Makes the Unit enter a vehicle. |
unit:EnterVehicle() |
EquipWeapons |
Equips the weapons specified in the specified slots. 1 (Main Hand), 2 (Off Hand), 3 (Ranged). |
unit:EquipWeapons() |
EventCastSpell |
Casts the spell on the target after the delay specified. Repeat set to 0 means that it repeats indefinitely. Ignores cast times. |
unit:EventCastSpell() |
EventChat |
Sends a chat message with the parameters given after a delay in miliseconds. |
unit:EventChat() |
ExitVehicle |
Makes the Unit exit it’s vehicle. |
unit:ExitVehicle() |
ExpandToRaid |
Forcibly changes the Unit’s group to a raid. |
unit:ExpandToRaid() |
FinishQuest |
Forces the Unit to finish quest ID. Rewards are not given. |
unit:FinishQuest() |
FlagFFA |
|
unit:FlagFFA() |
FlagPvP |
Flags the Player for PvP. |
unit:FlagPvP() |
FullCastSpell |
Casts the specified spell. If the spell has a cast time, it is used. |
unit:FullCastSpell() |
FullCastSpellAoE |
|
unit:FullCastSpellAoE() |
FullCastSpellAoF |
|
unit:FullCastSpellAoF() |
FullCastSpellOnTarget |
Casts the specified spell on the target. If the spell has a cast time, it is used. |
unit:FullCastSpellOnTarget() |
GetAccountName |
Returns the player’s account name. |
unit:GetAccountName() |
GetAddTank |
Returns the Unit second on the Unit’s threat table. |
unit:GetAddTank() |
GetAITargets |
Returns all units with threat on the Unit’s threat table. |
unit:GetAITargets() |
GetAITargetsCount |
Returns the amount of units with threat on the Unit’s threat table. |
unit:GetAITargetsCount() |
GetAreaId |
Returns the Unit’s area id. |
unit:GetAreaId() |
GetArenaPoints |
Returns the amount of Arena Points that the Unit specified has. |
unit:GetArenaPoints() |
GetAuraObjectById |
Returns a aura object with the entered spell id. |
unit:GetAuraObjectById() |
GetAuraStackCount |
|
unit:GetAuraStackCount() |
GetByteValue |
Returns the Byte value at index, index1. (Disabled) |
unit:GetByteValue() |
GetChannelMemberCount |
Returns the number of members in Channel. |
unit:GetChannelMemberCount() |
GetChannelPassword |
Returns the password for the Channel. |
unit:GetChannelPassword() |
GetClosestEnemy |
Returns the closest Unit to the Unit considered ‘hostile’. |
unit:GetClosestEnemy() |
GetClosestFriend |
Returns the closest Unit to the Unit considered ‘friendly’. |
unit:GetClosestFriend() |
GetClosestPlayer |
Returns the closets player to the Unit. |
unit:GetClosestPlayer() |
GetClosestUnit |
|
unit:GetClosestUnit() |
GetCoinage |
Returns the amount of copper the player has. |
unit:GetCoinage() |
GetCreatureNearestCoords |
Returns a creature that with the specified ID that is closest to the co-ordinates given. |
unit:GetCreatureNearestCoords() |
GetCurrentSkill |
Returns the player’s Skill level of the skill specified. |
unit:GetCurrentSkill() |
GetCurrentSpell |
Returns a SPELL object. |
unit:GetCurrentSpell() |
GetCurrentSpellId |
Returns the spell entry ID that is current casting. |
unit:GetCurrentSpellId() |
GetDisplay |
Returns the Unit’s current display ID. |
unit:GetDisplay() |
GetDistance |
Returns the number of pixels between the Unit and target. |
unit:GetDistance() |
GetDistanceYards |
Returns the number of yards between the Unit and target. |
unit:GetDistanceYards() |
GetDuelState |
Returns the stage in which a duel is taking place with the unit. 0 (Requested), 1 (Started) or 2 (Finished). |
unit:GetDuelState() |
GetDungeonDifficulty |
Returns the dungeon difficulty of the Unit. |
unit:GetDungeonDifficulty() |
GetEntry |
Returns the Unit’s entry id (does not work for items). |
unit:GetEntry() |
GetEquippedItemBySlot |
Returns an ITEM object from the item in the slot specified. |
unit:GetEquippedItemBySlot() |
GetFaction |
Returns the Unit’s faction. |
unit:GetFaction() |
GetFactionStanding |
Returns a string value of the Unit’s standing with the faction. |
unit:GetFactionStanding() |
GetFloatValue |
Returns the Unit’s float value. (Disabled) |
unit:GetFloatValue() |
GetGameObjectNearestCoords |
Returns the object closest to the co-ordinates specified with the id designated. |
unit:GetGameObjectNearestCoords() |
GetGender |
Returns a numerical representation of the Unit’s gender. |
unit:GetGender() |
GetGmRank |
Returns the player’s GM rank in string form (Ie, “a”, “az”). Returns nil when the player is not a GM. |
unit:GetGmRank() |
GetGroupLeader |
Returns a object of the player’s group leader. |
unit:GetGroupLeader() |
GetGroupPlayers |
Returns a table with the userdata of all players in Unit’s group. |
unit:GetGroupPlayers() |
GetGroupType |
Returns the player’s group type. Returns nil if the player is not in a group. |
unit:GetGroupType() |
GetGuid |
Returns the Unit’s GUID. A GUID is a unique number assigned to each and every object, unit and player in AE. |
unit:GetGuid() |
GetGuildId |
Returns the player’s Guild ID. Note that the guild ID is NOT the guild name. |
unit:GetGuildId() |
GetGuildLeader |
Returns a string value of the Guild Leader’s name |
unit:GetGuildLeader() |
GetGuildMemberCount |
Returns the amount of members in the guild. |
unit:GetGuildMemberCount() |
GetGuildMembers |
Returns a table of strings of guild members. |
unit:GetGuildMembers() |
GetGuildMotd |
Returns the Message of the Day from the specified unit’s guild. |
unit:GetGuildMotd() |
GetGuildName |
Returns the player’s guild name. |
unit:GetGuildName() |
GetGuildRank |
Returns the Unit’s guild rank. |
unit:GetGuildRank() |
GetHealth |
Returns an absolute value of the Unit’s health. |
unit:GetHealth() |
GetHealthPct |
Returns a percentage of the Unit’s health. |
unit:GetHealthPct() |
GetHonorToday |
Returns all Honor earned by the Unit today. |
unit:GetHonorToday() |
GetHonorYesterday |
Returns the Unit’s honor that was earnt yesterday. |
unit:GetHonorYesterday() |
GetInRangeEnemies |
Returns all hostiles in range of the Unit. |
unit:GetInRangeEnemies() |
GetInRangeFriends |
Returns all friendlies in range of the Unit. |
unit:GetInRangeFriends() |
GetInRangeObjects |
Returns all nearby GameObjects in range of the Unit. |
unit:GetInRangeObjects() |
GetInRangeObjectsCount |
Returns a count of all the GameObjects in range of the Unit. |
unit:GetInRangeObjectsCount() |
GetInRangePlayers |
Returns all players in range of the Unit. |
unit:GetInRangePlayers() |
GetInRangePlayersCount |
Returns a count of all the players in range of the Unit. |
unit:GetInRangePlayersCount() |
GetInRangeUnits |
Returns all units in the range of the Unit. |
unit:GetInRangeUnits() |
GetInstanceID |
Return the Unit’s instance id. |
unit:GetInstanceID() |
GetInventoryItem |
Returns the item in the player’s inventory in specified bag and slot. |
unit:GetInventoryItem() |
GetInventoryItemById |
Returns the slot that the item is in in the player’s inventory. |
unit:GetInventoryItemById() |
GetItemCount |
Returns how many of an item the Unit has. |
unit:GetItemCount() |
GetLandHeight |
Returns the land height using the parameters given. |
unit:GetLandHeight() |
GetLevel |
|
unit:GetLevel() |
GetLocation |
Returns the Unit’s x, y, z and o co-ordinates. |
unit:GetLocation() |
GetMainTank |
Returns the Unit with the highest threat on the Unit’s threat table. |
unit:GetMainTank() |
GetMana |
Returns an absolute value of the Unit’s mana. |
unit:GetMana() |
GetManaPct |
Returns a percentage of the Unit’s mana. |
unit:GetManaPct() |
GetMapId |
Returns the Unit’s map id. |
unit:GetMapId() |
GetMaxHealth |
Returns the maximum amount of health the Unit can have. |
unit:GetMaxHealth() |
GetMaxMana |
Returns the maximum amount of mana the Unit can have. |
unit:GetMaxMana() |
GetMaxPower |
Returns the absolute value of the Unit’s power (If type is specified, that type is returned instead). |
unit:GetMaxPower() |
GetMaxSkill |
Returns the player’s Max Skill level of the skill specified. |
unit:GetMaxSkill() |
GetName |
Returns the Unit’s name. |
unit:GetName() |
GetNativeDisplay |
Returns the Unit’s spawn display ID. |
unit:GetNativeDisplay() |
GetNativeFaction |
Returns the Unit’s spawn faction. |
unit:GetNativeFaction() |
GetO |
Returns the Unit’s o co-ordinate. |
unit:GetO() |
GetObject |
Returns a Unit based on the GUID given. |
unit:GetObject() |
GetObjectType |
Returns ‘Player’ or ‘Unit’ depending on the Unit. |
unit:GetObjectType() |
GetPetOwner |
Get Unit’s owner. |
unit:GetPetOwner() |
GetPhase |
Returns the phase the Unit is currently in. |
unit:GetPhase() |
GetPlayerClass |
Returns a string representation of the player’s class. |
unit:GetPlayerClass() |
GetPlayerLevel |
Returns the Unit’s level. |
unit:GetPlayerLevel() |
GetPlayerMovementFlags |
Returns the movement flag of the player. See page for more information. |
unit:GetPlayerMovementFlags() |
GetPlayerMovementVector |
Returns information about the Player’s movement. |
unit:GetPlayerMovementVector() |
GetPlayerRace |
Returns a numerical representation of the player’s race. |
unit:GetPlayerRace() |
GetPower |
Returns an absolute value of the Unit’s power (If type is specified, that type is returned instead). |
unit:GetPower() |
GetPowerPct |
Return a percentage of the Unit’s power (If type is specified, that type is returned instead). |
unit:GetPowerPct() |
GetPowerType |
Returns a numerical representation of the Unit’s power type. |
unit:GetPowerType() |
GetQuestLogSlot |
|
unit:GetQuestLogSlot() |
GetQuestObjectiveCompletion |
Returns how many mobs killed for the specified quest and objective. |
unit:GetQuestObjectiveCompletion() |
GetRandomEnemy |
Returns a Unit that is considered an Enemy to the Unit. |
unit:GetRandomEnemy() |
GetRandomFriend |
Gets a Unit that is considered a Friend to the Unit. |
unit:GetRandomFriend() |
GetRandomPlayer |
Returns a random player based on the flag specified. See page for more details. |
unit:GetRandomPlayer() |
GetSecondHated |
|
unit:GetSecondHated() |
GetSelectedGO |
|
unit:GetSelectedGO() |
GetSelection |
Returns the player’s currently selected Unit. |
unit:GetSelection() |
GetSpawnId |
Returns the Unit’s spawn ID. |
unit:GetSpawnId() |
GetSpawnLocation |
Returns the Unit’s spawn x, y, and z co-ordinates. |
unit:GetSpawnLocation() |
GetSpawnO |
Return the Unit’s spawn position x co-ordinate. |
unit:GetSpawnO() |
GetSpawnX |
Return the Unit’s spawn position x co-ordinate. |
unit:GetSpawnX() |
GetSpawnY |
Return the Unit’s spawn position x co-ordinate. |
unit:GetSpawnY() |
GetSpawnZ |
Return the Unit’s spawn position x co-ordinate. |
unit:GetSpawnZ() |
GetStanding |
Returns a numerical value of the Unit’s standing with the faction. |
unit:GetStanding() |
GetStealthLevel |
Returns the Unit’s stealth level. To set the stealth level, use SetStealthLevel(). |
unit:GetStealthLevel() |
GetTalentPoints |
Returns the player’s free talent points in the player’s primary (0) spec or secondary (1) spec. |
unit:GetTalentPoints() |
GetTaxi |
Returns the taxi that the player is on. |
unit:GetTaxi() |
GetTeam |
Returns 1 if Horde, and 0 if Alliance. |
unit:GetTeam() |
GetThreat |
Returns the amount of threat that the Unit has with the target specified. |
unit:GetThreat() |
GetTotalHonor |
Returns the unit’s total honor. |
unit:GetTotalHonor() |
GetUInt32Value |
Returns the UInt32Value for Unit at field. (Disabled) |
unit:GetUInt32Value() |
GetUInt64Value |
Returns the UInt64Value for Unit at field. (Disabled) |
unit:GetUInt64Value() |
GetUnitByGUID |
Returns the Unit with the GUID specified. |
unit:GetUnitByGUID() |
GetUnitBySqlId |
Returns the Unit with the specified SQL ID. |
unit:GetUnitBySqlId() |
GetVehicleBase |
Retrieves the base unit of the Unit’s vehicle. |
unit:GetVehicleBase() |
GetWorldStateForZone |
|
unit:GetWorldStateForZone() |
GetX |
Returns the Unit’s x co-ordinate. |
unit:GetX() |
GetY |
Returns the Unit’s y co-ordinate. |
unit:GetY() |
GetZ |
Returns the Unit’s z co-ordinate. |
unit:GetZ() |
GetZoneId |
Returns the Unit’s zone id. |
unit:GetZoneId() |
GiveHonor |
Gives the player specified the amount of honor specified. |
unit:GiveHonor() |
GiveXp |
Gives the Player the specified amount of XP. |
unit:GiveXp() |
GossipAddQuests |
Adds quests to the gossip menu if any available. |
unit:GossipAddQuests() |
GossipComplete |
Completes (closes) the player’s gossip window. |
unit:GossipComplete() |
GossipCreateMenu |
Creates a new NPC gossip menu with the TextID specified. |
unit:GossipCreateMenu() |
GossipMenuAddItem |
Creates a new menu item, used after registering a new menu with GossipCreateMenu(). |
unit:GossipMenuAddItem() |
GossipMiscAction |
Performs a Gossip Action. |
unit:GossipMiscAction() |
GossipSendMenu |
Sends the gossip menu to the player. |
unit:GossipSendMenu() |
GossipSendPOI |
Sets a mark on the player’s mini map. Used when asking city guards where to go. |
unit:GossipSendPOI() |
GossipSendQuickMenu |
|
unit:GossipSendQuickMenu() |
GuildBankDepositMoney |
Removes gold from the unit and deposits it in the guild bank. |
unit:GuildBankDepositMoney() |
GuildBankWithdrawMoney |
Removes gold from the guild bank and gives it to the unit. |
unit:GuildBankWithdrawMoney() |
HandleEvent |
Unknown, see core for usage. |
unit:HandleEvent() |
HasAchievement |
Returns true if the player has the achievement, otherwise false. |
unit:HasAchievement() |
HasAura |
Returns true if the Unit is afflicted by an aura with the id specified, otherwise false. |
unit:HasAura() |
HasAuraWithMechanic |
Returns true if the Unit has an aura that has a specific mechanic. See page for more details. |
unit:HasAuraWithMechanic() |
HasEmptyVehicleSeat |
Tells if the Unit’s vehicle has an empty seat. |
unit:HasEmptyVehicleSeat() |
HasFinishedQuest |
Returns true if the unit has completed the quest, false otherwise. |
unit:HasFinishedQuest() |
HasFlag |
Returns true if the Unit possess the flag at index, otherwise false. (Disabled) |
unit:HasFlag() |
HasInRangeObjects |
Returns true if there are GameObjects in range of the Unit. |
unit:HasInRangeObjects() |
HasItem |
Returns true if the player has the item specified, false if not. |
unit:HasItem() |
HasNegativeAura |
Returns true if the Unit has a debuff on them, otherwise it returns false. |
unit:HasNegativeAura() |
HasPositiveAura |
The same as HasNegativeAura(), but with buffs instead of debuffs. |
unit:HasPositiveAura() |
HasQuest |
Returns true if the Unit has the quest, returns false otherwise. |
unit:HasQuest() |
HasSkill |
Returns true if the Unit has the skill specified, false if not. |
unit:HasSkill() |
HasSpell |
Returns true if the Unit has the spell specified, false if not. |
unit:HasSpell() |
HasTitle |
Returns true if the Unit has the title specified, otherwise false. |
unit:HasTitle() |
Heal |
Returns an absolute value of the Unit’s health. |
unit:Heal() |
InterruptSpell |
Interrupts the current spell. |
unit:InterruptSpell() |
IsAlive |
Returns true if the Unit is alive, otherwise false. |
unit:IsAlive() |
IsAttackable |
Returns true if Unit can attack target, otherwise false. |
unit:IsAttackable() |
IsCreature |
Returns true if the Unit is a creature, otherwise false. |
unit:IsCreature() |
isDazed |
Returns true if the Unit is dazed, otherwise false. |
unit:isDazed() |
IsDead |
Returns true if the Unit is dead, otherwise false. |
unit:IsDead() |
IsFeared |
Returns true if the Unit is feared, otherwise false. |
unit:IsFeared() |
IsFFAFlagged |
|
unit:IsFFAFlagged() |
IsFFAPvPFlagged |
Returns true if the Unit is flagged for free for all, otherwise false. |
unit:IsFFAPvPFlagged() |
IsFlying |
Returns true if the Unit is flying, otherwise false. |
unit:IsFlying() |
IsFriendly |
Returns true if the target is friendly to the Unit, otherwise false. |
unit:IsFriendly() |
IsGm |
Returns true if the Unit has GM levels, otherwise false. |
unit:IsGm() |
IsGroupedWith |
Returns true if the player is in a group with the target, false if not. |
unit:IsGroupedWith() |
IsGroupFull |
Returns true if the group is full, false if not. |
unit:IsGroupFull() |
IsHostile |
IsFriendly(target) for hostile Units. |
unit:IsHostile() |
IsInArc |
Returns true if the target is in an Arc that is degrees wide from the Unit. |
unit:IsInArc() |
IsInBack |
Returns true if the Unit is considered ‘behind’ target. |
unit:IsInBack() |
IsInChannel |
Returns true if the Unit is in the channel specified, otherwise false. |
unit:IsInChannel() |
IsInCombat |
Returns true if the Unit is in Combat, otherwise false. |
unit:IsInCombat() |
IsInDungeon |
Returns true if the Unit is in a dungeon, otherwise false. |
unit:IsInDungeon() |
IsInFront |
Returns true if the Unit is considered ‘in front’ target. |
unit:IsInFront() |
IsInGroup |
Returns true if the player is in a group, false if not. |
unit:IsInGroup() |
IsInGuild |
Returns true if the Unit is in a guild, otherwise false. |
unit:IsInGuild() |
IsInPhase |
Returns true if the Unit is in the specified phase, otherwise false. |
unit:IsInPhase() |
IsInRaid |
IsInDungeon() for raids. |
unit:IsInRaid() |
IsInWater |
Returns true if the Unit is in water, otherwise false. |
unit:IsInWater() |
IsInWorld |
Returns true if the Unit is in the world, otherwise false. |
unit:IsInWorld() |
IsMounted |
Returns true if the Unit is mounted, false if not. |
unit:IsMounted() |
IsOnTaxi |
Returns true if the Unit is on a taxi, otherwise false. |
unit:IsOnTaxi() |
IsOnVehicle |
Tells if the unit is on a vehicle. |
unit:IsOnVehicle() |
IsPacified |
Returns true if the unit is pacified, false if not. |
unit:IsPacified() |
IsPet |
Returns true if the Unit is a pet, otherwise false. |
unit:IsPet() |
IsPlayer |
Returns true if the player is moving, false if not. |
unit:IsPlayer() |
IsPlayerAttacking |
Returns true if the player is attacking, false if not. |
unit:IsPlayerAttacking() |
IsPlayerMoving |
Returns true if the player is moving, false if not. |
unit:IsPlayerMoving() |
isPoisoned |
Returns true if the unit is poisoned, false if not. |
unit:isPoisoned() |
IsPvPFlagged |
Returns true if the Unit is flagged for PvP, otherwise false. |
unit:IsPvPFlagged() |
IsRooted |
Returns true if the Unit is rooted, otherwise false. |
unit:IsRooted() |
IsStealthed |
Returns true if the Unit is stealthed, otherwise false. |
unit:IsStealthed() |
IsStunned |
Returns true if the unit is stunned, false if not. |
unit:IsStunned() |
JoinChannel |
Force-joins the specified channel. |
unit:JoinChannel() |
KickFromChannel |
Kicks the Unit from the Channel. |
unit:KickFromChannel() |
KickPlayer |
Kicks the player after the delay. Please leave your message after the beep. |
unit:KickPlayer() |
Kill |
Returns the player’s Skill level of the skill specified. |
unit:Kill() |
Land |
Disables flying if set to 1. |
unit:Land() |
LearnSpell |
Teaches the Unit the spell given. |
unit:LearnSpell() |
LearnSpells |
Teaches the player all spells in the table specified. |
unit:LearnSpells() |
LeaveChannel |
Leaves the channel. |
unit:LeaveChannel() |
LifeTimeKills |
Adds the amount of lifetime kills specified to the player’s total count. |
unit:LifeTimeKills() |
MarkQuestObjectiveAsComplete |
Marks the objective of questid as completed. |
unit:MarkQuestObjectiveAsComplete() |
ModFloatValue |
Modifies the Unit’s float value to the float specified. (Disabled) |
unit:ModFloatValue() |
ModifyAIUpdateEvent |
Modifies the AI Update event to run at newtime. |
unit:ModifyAIUpdateEvent() |
ModifyFlySpeed |
Modifies the Unit’s fly speed to the specified speed. |
unit:ModifyFlySpeed() |
ModifyRunSpeed |
Modifies the Unit’s run speed to the specified speed. |
unit:ModifyRunSpeed() |
ModifyWalkSpeed |
Modifies the Unit’s walk speed to the specified speed. |
unit:ModifyWalkSpeed() |
ModThreat |
Modifies the Unit’s threat against target by amount. |
unit:ModThreat() |
ModUInt32Value |
Modifies the Unit’s uint32_t flag at index. (Disabled) |
unit:ModUInt32Value() |
MovePlayerTo |
MoveTo() for players. The flag can be 0 (walking), 256 (teleport), 4096 (running) or 12288 (flying). |
unit:MovePlayerTo() |
MoveRandomArea |
Moves the Unit to a random area within the given realm. |
unit:MoveRandomArea() |
MoveTo |
Forcibly moves the Unit specified to the co-ordinates specified. |
unit:MoveTo() |
MoveVehiclePassengerToSeat |
Moves the specified passenger of the unit’s vehicle to another seat. |
unit:MoveVehiclePassengerToSeat() |
PhaseAdd |
|
unit:PhaseAdd() |
PhaseDelete |
|
unit:PhaseDelete() |
PhaseSet |
|
unit:PhaseSet() |
PlayerSendChatMessage |
Forces the Player to send the message with the parameters specified. |
unit:PlayerSendChatMessage() |
PlaySoundToPlayer |
Like PlaySoundToSet(sound), only the sound only plays to the player specified. |
unit:PlaySoundToPlayer() |
PlaySoundToSet |
Plays the specified sound ID to everyone in the Unit’s map cell. |
unit:PlaySoundToSet() |
PlaySpellVisual |
‘Casts’ the spell on the Unit GUID specified. The spell has no effect, and only the visual is played. To get a GUID, use GetGUID(). |
unit:PlaySpellVisual() |
Possess |
Like the GM command .npc possess. |
unit:Possess() |
PromoteGuildMember |
Forces the Unit to promote the target guild member. |
unit:PromoteGuildMember() |
QuestAddFinisher |
Allows the NPC to be used to finish the quest with the id given. |
unit:QuestAddFinisher() |
QuestAddStarter |
Allows the NPC to be used to start the quest with the id given. |
unit:QuestAddStarter() |
RegisterEvent |
Registers the method given with the delay given and repeats (0 repeats indefinitely). The name can either be a reference, a direct method or a string value of the method. |
unit:RegisterEvent() |
RemoveAchievement |
Removes the Achievement with the ID specified from the player. |
unit:RemoveAchievement() |
RemoveAIUpdateEvent |
Removes all AI Update Events. |
unit:RemoveAIUpdateEvent() |
RemoveAllAuras |
Removes all auras on the Unit. |
unit:RemoveAllAuras() |
RemoveArenaPoints |
Removes the amount of arena points from the Unit specified. |
unit:RemoveArenaPoints() |
RemoveAura |
Removes the aura specified from the Unit. |
unit:RemoveAura() |
RemoveAurasByMechanic |
Removes all auras by the mechanic given. |
unit:RemoveAurasByMechanic() |
RemoveAurasType |
Removes all auras by the type given. |
unit:RemoveAurasType() |
RemoveEvents |
Removes all events registered with RegisterEvent(). |
unit:RemoveEvents() |
RemoveFlag |
Removes the Unit’s flag at field, value. (Disabled) |
unit:RemoveFlag() |
RemoveFromWorld |
Removes the Unit from the world. |
unit:RemoveFromWorld() |
RemoveGuildMember |
Force-removes the targeted guild member from the specified unit’s guild. Note that the target must be online for this to work. |
unit:RemoveGuildMember() |
RemoveItem |
Removes an item from the player with the count specified. |
unit:RemoveItem() |
RemoveNegativeAuras |
Removes all negative auras from the Unit. |
unit:RemoveNegativeAuras() |
RemovePvPFlag |
Removes the Unit’s PvP flag. |
unit:RemovePvPFlag() |
RemoveSkill |
Removes the skill from Unit with the skill id specified. |
unit:RemoveSkill() |
RemoveStealth |
Removes any stealth from the specified Unit. |
unit:RemoveStealth() |
RemoveThreat |
Erases the target from the threat table. |
unit:RemoveThreat() |
RepairAllPlayerItems |
Repairs all items that the player has. |
unit:RepairAllPlayerItems() |
Repop |
Force releases the spirit of a dead player. |
unit:Repop() |
ResetAllTalents |
Resets the player’s talents. |
unit:ResetAllTalents() |
ResetModel |
|
unit:ResetModel() |
ResetPetTalents |
Resets the current pet’s talents. |
unit:ResetPetTalents() |
ResetTalents |
|
unit:ResetTalents() |
ResurrectPlayer |
Revives the player unit. |
unit:ResurrectPlayer() |
ReturnToSpawnPoint |
Returns the Unit to it’s spawn point. |
unit:ReturnToSpawnPoint() |
Root |
Returns true if the Unit is rooted, otherwise false. |
unit:Root() |
SavePlayer |
Saves the player to the database. |
unit:SavePlayer() |
SendAIReaction |
|
unit:SendAIReaction() |
SendAreaTriggerMessage |
Sends an Area Trigger message with the specified string to the player. |
unit:SendAreaTriggerMessage() |
SendAuctionWindow |
Sends the player unit’s auction window. |
unit:SendAuctionWindow() |
SendBankWindow |
Sends the player specified a bank window with the unit as the sender. |
unit:SendBankWindow() |
SendBattlegroundWindow |
Sends the Player Unit’s battleground window. The battleground window varies on the ID you give it - see page for more info. |
unit:SendBattlegroundWindow() |
SendBroadcastMessage |
Broadcasts the specified string to the player. |
unit:SendBroadcastMessage() |
SendChatMessage |
Forces the Player to send the message with the parameters specified. |
unit:SendChatMessage() |
SendChatMessageAlternateEntry |
Forces the Unit with the entry id specified to send a message with the parameters designated. |
unit:SendChatMessageAlternateEntry() |
SendChatMessageToPlayer |
Sends the player specified a chat message with the parameters designated. |
unit:SendChatMessageToPlayer() |
SendGuildChatMessage |
Forces Unit to send a message to guild. If officer is set to true, then the message is broadcasted in the officer chat instead. |
unit:SendGuildChatMessage() |
SendGuildInvite |
Forces the Unit to send a guild invite to pPlayer. |
unit:SendGuildInvite() |
SendGuildLog |
Sends the Guild Log to the Unit. |
unit:SendGuildLog() |
SendInnkeeperWindow |
Sends an innkeeper window to the Unit. |
unit:SendInnkeeperWindow() |
SendLootWindow |
Sends a loot window to the Unit with the specified loottype. 1 (creature), 2 (skinning), 3 (pickpocket), 4 (fishing), 5 (herb/mining), 6 (disenchanting/prospecting/milling, etc). |
unit:SendLootWindow() |
SendPacket |
Sends the packet specified to all near Units. If self is set to true, the packet is also sent to the unit. See Packet Function Documentation for more information on packets. |
unit:SendPacket() |
SendPacketToGroup |
Sends the packet specified to the Unit’s group. See Packet Function Documentation for more information on packets. |
unit:SendPacketToGroup() |
SendPacketToGuild |
Sends the packet specified to the Unit’s guild. See Packet Function Documentation for more information on packets. |
unit:SendPacketToGuild() |
SendPacketToPlayer |
Sends the packet specified to the Unit specified. See Packet Function Documentation for more information on packets. |
unit:SendPacketToPlayer() |
SendTrainerWindow |
Akin to SendBankWindow(), but with trainers instead of banks. |
unit:SendTrainerWindow() |
SendVendorWindow |
Akin to SendBankWindow(), but with vendors instead of banks. |
unit:SendVendorWindow() |
SetAttackTimer |
Sets the Unit’s main-hand attack speed to timer. If offhand is true, offhand is also set to this. |
unit:SetAttackTimer() |
SetBindPoint |
Sets the Unit’s bind point to the co-ordinates specified. |
unit:SetBindPoint() |
SetByteValue |
Sets the byte at index, index1 to value. (Disabled) |
unit:SetByteValue() |
SetChannelName |
Renames the Channel. |
unit:SetChannelName() |
SetChannelPassword |
Adds a password to the Channel. |
unit:SetChannelPassword() |
SetCombatCapable |
If set to true, disables the Unit’s ability to enter combat completely. |
unit:SetCombatCapable() |
SetCombatMeleeCapable |
If set to true, disables the Unit’s ability to use Melee Combat. |
unit:SetCombatMeleeCapable() |
SetCombatRangedCapable |
If set to true, disables the Unit’s ability to use Ranged Combat. |
unit:SetCombatRangedCapable() |
SetCombatSpellCapable |
|
unit:SetCombatSpellCapable() |
SetCombatTargetingCapable |
If set to true, disables the Unit’s targeting capabilities (The mob will not be able to use targeted spells either). |
unit:SetCombatTargetingCapable() |
SetCreatureNameById |
Currently the method is commented out. Do not use. |
unit:SetCreatureNameById() |
SetDeathState |
Sets the Unit’s death state. 0 (Alive), 1 (Just Died), 2 (Corpse), 3 (Dead). |
unit:SetDeathState() |
SetDungeonDifficulty |
Sets the Dungeon difficulty to the level specified. 0 (10M), 2 (25M), 3 (10M HC) 4 (25M HC). |
unit:SetDungeonDifficulty() |
SetFacing |
Forces the Unit to face the orientation provided. |
unit:SetFacing() |
SetFaction |
Sets the Unit’s faction to the faction specified. |
unit:SetFaction() |
SetFlag |
|
unit:SetFlag() |
SetFloatValue |
Sets the Unit’s float value to the float specified. (Disabled) |
unit:SetFloatValue() |
SetFlying |
Allows the Unit to fly. Use Land() to force the unit to land again. |
unit:SetFlying() |
SetGender |
Sets the gender of a character. |
unit:SetGender() |
SetGroupLeader |
Promotes the player specified to the Group Leader. If silent is set to true, then no message is made in the chat frame. |
unit:SetGroupLeader() |
SetGuildInformation |
Sets the Guild Information to the string provided. |
unit:SetGuildInformation() |
SetGuildMotd |
Sets the Message of the Day of the unit’s guild to the string given. |
unit:SetGuildMotd() |
SetGuildRank |
Sets the Unit’s guild rank to the one specified. |
unit:SetGuildRank() |
SetHealth |
Sets the Unit’s health an absolute value based on the number specified. |
unit:SetHealth() |
SetHealthPct |
Sets the Unit’s health to a percentage based on the percentage given. |
unit:SetHealthPct() |
SetInFront |
Sets the target as ‘in front’ of the Unit. |
unit:SetInFront() |
SetInvincible |
Makes the unit invincible if set to true. |
unit:SetInvincible() |
SetInvisible |
If set to true, the Unit becomes completely invisible. |
unit:SetInvisible() |
SetKnownTitle |
Makes the Player use the title specified. This is not saved to the database. |
unit:SetKnownTitle() |
SetLevel |
Sets the Player’s level to the level given. Cannot exceed the max level in configs. |
unit:SetLevel() |
SetMana |
Sets the Unit’s mana to the absolute value provided. |
unit:SetMana() |
SetMaxHealth |
Sets the Unit’s maximum amount of health to the number specified. |
unit:SetMaxHealth() |
SetMaxMana |
Sets the Unit’s maximum mana to the absolute value provided. |
unit:SetMaxMana() |
SetMaxPower |
Sets the Unit’s maximum power to the absolute value and type provided. |
unit:SetMaxPower() |
SetModel |
Sets the Unit’s display id to the one specified. Returns true if successful, false if not. |
unit:SetModel() |
SetMount |
Mounts the Unit with the display ID given. |
unit:SetMount() |
SetMovementFlags |
Forces the Unit to move with the flags specified. 0 (Walk), 1 (Run), 2 (Fly). |
unit:SetMovementFlags() |
SetNPCFlags |
Sets the Unit’s flags to the flags specified (This is used to disable gossip, etc). |
unit:SetNPCFlags() |
SetOfficerNote |
Sets pPlayer’s officer note to the string provided. |
unit:SetOfficerNote() |
SetOrientation |
Sets the Unit’s orientation to the orientation specified. |
unit:SetOrientation() |
SetOutOfCombatRange |
When the Unit reaches this far away from it’s combat target, the combat is broken. |
unit:SetOutOfCombatRange() |
SetPacified |
True to pacify the Unit, false to unpacify the Unit. |
unit:SetPacified() |
SetPetOwner |
Sets Unit’s new owner to newowner. |
unit:SetPetOwner() |
SetPhase |
Sets the Unit to the phase specified. If ‘save’ is set to true, and the Unit is a NPC/Object, then the Unit will be saved in that phase. Mapped to PhaseSet(newphase[, save]) and PhaseAdd(newphase[, save]). |
unit:SetPhase() |
SetPlayerAtWar |
Sets /unsets the Player at war with the faction specified. |
unit:SetPlayerAtWar() |
SetPlayerLevel |
|
unit:SetPlayerLevel() |
SetPlayerLock |
Locks / unlocks the player from making any action. |
unit:SetPlayerLock() |
SetPlayerSpeed |
Sets the player’s global speed to speed. |
unit:SetPlayerSpeed() |
SetPlayerWeather |
Sets the player’s weather to type, and makes the strength density. |
unit:SetPlayerWeather() |
SetPosition |
Sets the Unit’s position to the co-ordinates specified. |
unit:SetPosition() |
SetPower |
Sets the Unit’s power to the amount specified. If type is specified, the unit’s power of that type is used instead. See the page for more info. |
unit:SetPower() |
SetPowerPct |
Same as SetPower(), only this time you give a percentage instead of an absolute value. |
unit:SetPowerPct() |
SetPowerType |
|
unit:SetPowerType() |
SetPublicNote |
Sets pPlayer’s public note to the string provided. |
unit:SetPublicNote() |
SetScale |
Sets the Unit’s scale to the scale provided. |
unit:SetScale() |
SetSelectedGO |
|
unit:SetSelectedGO() |
SetStanding |
Sets the Unit’s standing with the faction to the value specified. |
unit:SetStanding() |
SetStandState |
Sets the Unit’s stand state. |
unit:SetStandState() |
SetStealthLevel |
Sets the Unit’s stealth level to the one provided. See page for more information. |
unit:SetStealthLevel() |
SetTalentPoints |
Sets spec to have amount talent points. |
unit:SetTalentPoints() |
SetTauntedBy |
|
unit:SetTauntedBy() |
SetUInt32Value |
Sets the Unit’s uint32_t flag at index. (Disabled) |
unit:SetUInt32Value() |
SetUInt64Value |
Sets the Unit’s uint64_t guid at field. (Disabled) |
unit:SetUInt64Value() |
SetUnitToFollow |
Follows the target specified, at the specified angle and will stop following when it reaches the amount of yards specified. |
unit:SetUnitToFollow() |
SetWorldStateForPlayer |
|
unit:SetWorldStateForPlayer() |
SetWorldStateForZone |
|
unit:SetWorldStateForZone() |
SetZoneWeather |
SetPlayerWeather() for zones. |
unit:SetZoneWeather() |
SoftDisconnect |
Kicks the player to the character select screen. |
unit:SoftDisconnect() |
SpawnAndEnterVehicle |
Spawns a new vehicle and makes the Unit enter it. |
unit:SpawnAndEnterVehicle() |
SpawnCreature |
Spawns a creature in the Unit’s map with the co-ordinates and faction specified. Despawns after duration (0 for no despawn). |
unit:SpawnCreature() |
SpawnGameObject |
Spawns a GameObject in the Unit’s map with the co-ordinates and scale specified. Despawns after duration (0 for no despawn). |
unit:SpawnGameObject() |
SpellNonMeleeDamageLog |
Unknown, Check core for usage. |
unit:SpellNonMeleeDamageLog() |
StartQuest |
Force-start the quest with the given ID. If any items are required for the quest, these are automatically added. |
unit:StartQuest() |
StartTaxi |
Forces the Unit to start the taxi path specified, and mount it on the specified display id. |
unit:StartTaxi() |
StopChannel |
Stops channeling the current spell. |
unit:StopChannel() |
StopMovement |
Stops all movement for the unit for the time specified. |
unit:StopMovement() |
StopPlayerAttack |
Stops the player attacking. This is only for melee. |
unit:StopPlayerAttack() |
Strike |
The Unit damages the target with the damage type specified. If a spell is specified, this will be used. See the page for more information. |
unit:Strike() |
TakeHonor |
Like GiveHonor(), but removes instead of adds. |
unit:TakeHonor() |
Teleport |
Teleports the Player to the co-ordinates given. |
unit:Teleport() |
TeleportCreature |
Teleports the Creature to the co-ordinates given. Note that the creature cannot be teleported to another map. To do this, you’ll need to spawn it there. |
unit:TeleportCreature() |
UnbanFromChannel |
Unbans the Unit from the Channel. |
unit:UnbanFromChannel() |
UnlearnSpell |
Removes the spell from the unit’s spell-book. |
unit:UnlearnSpell() |
Unpossess |
Like the GM command .npc unpossess. |
unit:Unpossess() |
Unroot |
Allows movement. |
unit:Unroot() |
UnsetKnownTitle |
Removes the title specified. This is not saved to the database. |
unit:UnsetKnownTitle() |
UseAI |
|
unit:UseAI() |
VendorAddItem |
Adds the specified amount of items to the Unit designated. Setting quantity to zero enables unlimited quantity. |
unit:VendorAddItem() |
VendorRemoveAllItems |
Removes all items from the vendor. |
unit:VendorRemoveAllItems() |
VendorRemoveItem |
Removes the specified item from the Unit designed. |
unit:VendorRemoveItem() |
WipeCurrentTarget |
Drops the Unit’s current target. Also sets their threat to 0 (More specifically, removes them from the threat table). |
unit:WipeCurrentTarget() |
WipeTargetList |
Resets the Unit’s target list. |
unit:WipeTargetList() |
WipeThreatList |
Sets the threat of everyone on the unit’s threat list to 0. |
unit:WipeThreatList() |