[[Lua_Strike|:Strike(target, damage_type, spell, additional_damage, exclusive_damage, damage_mod_pct)]] : The <b>Unit</b> damages the <b>target</b> with the damage type specified. If a spell is specified, this will be used. See the page for more information.<br />

[[Lua_RemoveStealth|:RemoveStealth()]] : Removes any stealth from the specified Unit.<br />

+

−

[[Lua_PlaySpellVisual|:PlaySpellVisual(guid, spell)]] : 'Casts' the spell on the Unit GUID specified. The spell has no effect, and only the visual is played. To get a GUID, use [[Lua_GetGUID|:GetGUID()]].<br />

[[Lua_PlaySoundToPlayer|:PlaySoundToPlayer(sound)]] : Like [[Lua_PlaySoundToSet|:PlaySoundToSet()]], only the sound only plays to the player specified.<br />

+

−

[[Lua_GiveHonor|:GiveHonor(amount)]] : Gives the player specified the amount of honor specified.<br />

+

−

[[Lua_TakeHonor|:TakeHonor(amount)]] : Like [[Lua_GiveHonor|:GiveHonor()]], but removes instead of adds.<br />

+

−

[[Lua_AddLifetimeKills|:AddLifetimeKills(amount)]] : Adds the amount of lifetime kills specified to the player's total count.<br />

+

[[Lua_AddAura|:AddAura(id, duration[, temp])]] : 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. <br />

[[Lua_AddAura|:AddAura(id, duration[, temp])]] : 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. <br />

−

[[Lua_CreateCustomWaypointMap|:CreateCustomWaypointMap()]] : Creates a custom waypoint map for unit, and destroys the previous one if it existed.<br />

+

[[Lua_AddItem|:AddItem(item, quantity)]] : Gives the player an amount of items. Returns the item added or nil.<br />

+

[[Lua_AddLifetimeKills|:AddLifetimeKills(amount)]] : Adds the amount of lifetime kills specified to the player's total count.<br />

+

[[Lua_AddLoot|:AddLoot(id, mincount, maxcount, freeforall)]] : 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.<br />

+

[[Lua_AddSkill|:AddSkill(skill, current, max)]] : Sets the player's skill line at skill to current, and the max to max.<br />

[[Lua_EventCastSpell|:EventCastSpell(target, spell, delay, repeat)]] : Casts the spell on the target after the delay specified. Repeat set to 0 means that it repeats indefinitely. Ignores cast times.<br />

+

[[Lua_EventChat|:EventChat(type, language, message, delay)]] : Sends a chat message with the parameters given after a delay in miliseconds.<br />

+

[[Lua_FlagPvP|:FlagPvP()]] : Flags the Player for PvP.<br />

+

[[Lua_FullCastSpell|:FullCastSpell(spell)]] : Casts the specified spell. If the spell has a cast time, it is used.<br />

+

[[Lua_FullCastSpellOnTarget|:FullCastSpellOnTarget(spell, target)]] : Casts the specified spell on the target. If the spell has a cast time, it is used.<br />

[[Lua_UnlearnSpell|:UnlearnSpell(spell)]] : Removes the spell from the unit's spell-book.<br />

+

[[Lua_LearnSpells|:LearnSpells(table)]] : Teaches the player all spells in the table specified.<br />

−

[[Lua_Land|:Land()]] : Disables flying.<br />

+

[[Lua_LifeTimeKills|:LifeTimeKills(kills, mode)]] : Returns a number if kills is 0 and mode is nil. If mode is "add", it adds the kills onto the Unit's lifetime kills. If the mode is "del", it removes them. If the mode is "set", it explicity sets it to that amount.<br />

−

[[Lua_Root|:Root()]] : Disables all movement.<br />

+

[[Lua_ModifyAIUpdateEvent|:ModifyAIUpdateEvent(newtime)]] : Modifies the AI Update event to run at newtime.<br />

[[Lua_PlaySpellVisual|:PlaySpellVisual(guid, spell)]] : 'Casts' the spell on the Unit GUID specified. The spell has no effect, and only the visual is played. To get a GUID, use [[Lua_GetGUID|:GetGUID()]].<br />

[[Lua_RegisterAIUpdateEvent|:RegisterAIUpdateEvent(time)]] : Registers an AI Update event with the time given for the Unit specified.<br />

+

[[Lua_RegisterEvent|:RegisterEvent(name, delay, repeats)]] : 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.<br />

[[Lua_AddLoot|:AddLoot(id, mincount, maxcount, freeforall)]] : 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.<br />

+

[[Lua_SendChatMessageAlternateEntry|:SendChatMessageAlternateEntry(entry, type, lang, message)]] : Forces the Unit with the entry id specified to send a message with the parameters designated.<br />

[[Lua_SendPacket|:SendPacket(packet, self)]] : Sends the packet specified to all near Units. If self is set to true, the packet is also sent to the unit. See [[Lua_PacketFunctions|Packet Function Documentation]] for more information on packets.<br />

[[Lua_SendPacket|:SendPacket(packet, self)]] : Sends the packet specified to all near Units. If self is set to true, the packet is also sent to the unit. See [[Lua_PacketFunctions|Packet Function Documentation]] for more information on packets.<br />

−

[[Lua_SendPacketToPlayer|:SendPacketToPlayer(packet)]] : Sends the packet specified to the Unit specified. See [[Lua_PacketFunctions|Packet Function Documentation]] for more information on packets.<br />

[[Lua_SendPacketToGroup|:SendPacketToGroup(packet)]] : Sends the packet specified to the Unit's group. See [[Lua_PacketFunctions|Packet Function Documentation]] for more information on packets.<br />

[[Lua_SendPacketToGroup|:SendPacketToGroup(packet)]] : Sends the packet specified to the Unit's group. See [[Lua_PacketFunctions|Packet Function Documentation]] for more information on packets.<br />

[[Lua_SendPacketToGuild|:SendPacketToGuild(packet)]] : Sends the packet specified to the Unit's guild. See [[Lua_PacketFunctions|Packet Function Documentation]] for more information on packets.<br />

[[Lua_SendPacketToGuild|:SendPacketToGuild(packet)]] : Sends the packet specified to the Unit's guild. See [[Lua_PacketFunctions|Packet Function Documentation]] for more information on packets.<br />

[[Lua_SendPacketToPlayer|:SendPacketToPlayer(packet)]] : Sends the packet specified to the Unit specified. See [[Lua_PacketFunctions|Packet Function Documentation]] for more information on packets.<br />

−

[[Lua_RegisterAIUpdateEvent|:RegisterAIUpdateEvent(time)]] : Registers an AI Update event with the time given for the Unit specified.<br />

+

−

[[Lua_ModifyAIUpdateEvent|:ModifyAIUpdateEvent(newtime)]] : Modifies the AI Update event to run at newtime.<br />

[[Lua_EventCastSpell|:EventCastSpell(target, spell, delay, repeat)]] : Casts the spell on the target after the delay specified. Repeat set to 0 means that it repeats indefinitely. Ignores cast times.<br />

+

−

[[Lua_LearnSpells|:LearnSpells(table)]] : Teaches the player all spells in the table specified.<br />

[[Lua_StopMovement|:StopMovement(time)]] : Stops all movement for the unit for the time specified.<br />

[[Lua_StopMovement|:StopMovement(time)]] : Stops all movement for the unit for the time specified.<br />

−

[[Lua_SavePlayer|:SavePlayer()]] : Saves the player to the database.<br />

+

[[Lua_StopPlayerAttack|:StopPlayerAttack()]] : Stops the player attacking. This is only for melee.<br />

−

[[Lua_LifeTimeKills|:LifeTimeKills(kills, mode)]] : Returns a number if kills is 0 and mode is nil. If mode is "add", it adds the kills onto the Unit's lifetime kills. If the mode is "del", it removes them. If the mode is "set", it explicity sets it to that amount.<br />

+

[[Lua_Strike|:Strike(target, damage_type, spell, additional_damage, exclusive_damage, damage_mod_pct)]] : The <b>Unit</b> damages the <b>target</b> with the damage type specified. If a spell is specified, this will be used. See the page for more information.<br />

[[Lua_TakeHonor|:TakeHonor(amount)]] : Like [[Lua_GiveHonor|:GiveHonor()]], but removes instead of adds.<br />

−

[[Lua_RegisterEvent|:RegisterEvent(name, delay, repeats)]] : 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.<br />

+

−

[[Lua_RemoveAllAuras|:RemoveAllAuras()]] : Removes all auras on the Unit.<br />

+

−

[[Lua_Kill|:Kill(target)]] : Causes the Unit to kill the target.<br />

+

−

[[Lua_RepairAllPlayerItems|:RepairAllPlayerItems()]] : Repairs all items that the player has.<br />

[[Lua_TeleportCreature|:TeleportCreature(x, y, z)]] : 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 [[Lua:SpawnCreature|spawn]] it there.<br />

[[Lua_TeleportCreature|:TeleportCreature(x, y, z)]] : 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 [[Lua:SpawnCreature|spawn]] it there.<br />

[[Lua_SetPhase|:SetPhase(newphase[, save])]] : 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]).<br />

[[Lua_SetPhase|:SetPhase(newphase[, save])]] : 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]).<br />

[[Lua_DeletePhase|:DeletePhase(phase[, save])]] : 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.<br />

[[Lua_DeletePhase|:DeletePhase(phase[, save])]] : 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.<br />

[[Lua_GetPhase|:GetPhase()]] : Returns the phase the Unit is currently in.<br />

[[Lua_GetPhase|:GetPhase()]] : Returns the phase the Unit is currently in.<br />

Phasing Methods

:SetPhase(newphase[, save]) : 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]).:DeletePhase(phase[, save]) : 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.:GetPhase() : Returns the phase the Unit is currently in.

Spell & Aura Methods

:GetCaster() : Returns the userdata of the caster of the aura/spell.:GetObjectType() : Will return "Aura" if the object is an userdata of an aura.:GetDuration() : Will return the total duration left in miliseconds. (the duration which were left when the aura just was added.):SetDuration(dur) : Sets the total duration left of the aura.:SetNegative([amount]) : Sets the aura negative. Amount is optional; Some auras needs more points do become negative.:SetPositive([amount]) : Same as above. This is just used to set the aura positive. :SetVar(var [, subindex], value) : var is a string referring to a parameter of Spell. subindex is optional; used when the variable you are setting has sub indexes. value is what you want to set it to. Returns true on success, false on failure.:GetVar(var [, subindex]) : See above, but returns the value on success or nil on failure.:GetAuraSlot() : Returns the current slot of the aura. Gonna update this page at saturday - Ice.:SetAuraSlot(slot) : Sets the slot of the aura.:Remove() : Removes ALL effects and events by the aura. (Triggers, effect, etc.) :GetTimeLeft() : Returns the duration left of the aura.