Class Player [-] [+]

Inherits all methods from: Object, WorldObject, Unit

Methods

AddComboPoints

Adds combo points to the Player

AddItem

Adds the given amount of the specified item entry to the player.

AddLifetimeKills

AddQuest

Tries to add the given quest entry for the Player.

AdvanceAllSkills

Advances all of the Players skills to the amount specified

AdvanceSkill

Advances a Players specific skill to the amount specified

AdvanceSkillsToMax

Advances all of the Players weapon skills to the maximum amount available

AreaExploredOrEventHappens

Completes the Quest if a Quest area is explored, or completes the Quest

CanBlock

Returns true if the Player can block incomming attacks, false otherwise.

CanCompleteQuest

Returns true if the Player satisfies all requirements to complete the quest entry.

CanCompleteRepeatableQuest

Returns true if the Player satisfies all requirements to complete the quest entry.

CanEquipItem

Returns true if the player can equip the given Item or item entry to the given slot, false otherwise.

CanFly

Returns true if the Player can fly, false otherwise.

CanParry

Returns true if the Player can parry incomming attacks, false otherwise.

CanRewardQuest

Returns true if the Player satisfies all requirements to reward the quest entry.

CanShareQuest

Returns true if the Player can share Quest specified by ID, false otherwise.

CanSpeak

Returns true if the Player can currently communicate through chat, false otherwise.

CanTitanGrip

Returns true if the Player can Titan Grip, false otherwise.

CanUninviteFromGroup

Returns true if the Player has permission to uninvite others from the current group, false otherwise.

CanUseItem

Returns true if the Player can use the item or item entry specified, false otherwise.

ClearComboPoints

Clears the Players combo points

ClearHonorInfo

Clears all of Players weekly honor status

CompleteQuest

Completes the given quest entry for the Player and tries to satisfy all quest requirements.

DurabilityLoss

Damages specified Item

DurabilityLossAll

Damages all Items equipped. If inventory is true, damages Items in bags

DurabilityPointLossForEquipSlot

Sets durability loss for an Item in the specified slot

DurabilityPointsLoss

Sets durability loss for the specified Item

DurabilityPointsLossAll

Sets durability loss on all Items equipped

DurabilityRepair

Repairs Item at specified position.

DurabilityRepairAll

Repairs all Items.

EquipItem

Equips the given item or item entry to the given slot. Returns the equipped item or nil.

FailQuest

Sets the given Quest entry failed for the Player.

GetAccountId

Returns the Players account ID

GetAccountName

Returns the Players account name

GetAchievementCriteriaProgress

Returns the progress of the Player for the specified achievement criteria.

GetAchievementPoints

Returns the Players current amount of Achievement Points

GetActiveSpec

Returns the Players active spec ID

GetArenaPoints

Returns the Players current amount of Arena Points

GetBaseSkillValue

Returns base skill value

GetBattlegroundId

Returns the Players current BattleGround ID

GetBattlegroundTypeId

Returns the Players current BattleGround type ID

GetChampioningFaction

Returns the faction ID the Player is currently flagged as champion for

GetChatTag

Returns active GM chat tag

GetCoinage

Returns the Players amount of money in copper

GetComboPoints

Returns Player's combo points

GetComboTarget

Returns Unit target combo points are on

GetCompletedAchievementsCount

Returns the Players current amount of Achievements Completed

GetCompletedQuestsCount

Returns the Players completed quest count

GetCorpse

Returns the Players Corpse object

GetDbLocaleIndex

Returns the Players database locale index

GetDbcLocale

Returns the Players game client locale

GetDifficulty

Returns raid or dungeon difficulty

GetDrunkValue

Returns the Players current level of intoxication

GetEquippedItemBySlot

Returns a Players Item object by gear slot specified

GetFreeTalentPoints

Returns the Players free talent point amount

GetGMRank

Returns the Players GM Rank

GetGossipTextId

Returns the database textID of the WorldObject's gossip header text for the Player

GetGroup

Returns the Players Group object

GetGroupInvite

Returns Group invitation

GetGuild

Returns the Players Guild object

GetGuildId

Returns the Players current Guild ID

GetGuildName

Returns the name of the Players current Guild

GetGuildRank

Returns the Players current guild rank

GetHealthBonusFromStamina

Returns health bonus from amount of stamina

GetHonorLastWeekStandingPos

Returns last week's standing position

GetHonorPoints

Returns the Players current amount of Honor Points

GetHonorStoredKills

Returns Player kills

GetInGameTime

Returns the amount of time the Player has spent ingame

GetItemByEntry

Returns an Item from the player by entry.

GetItemByGUID

Returns an Item from the player by guid.

GetItemByPos

Returns an item in given bag on given slot.

GetItemCount

Returns amount of the specified Item the Player has.

GetLatency

Returns the Players current latency in MS

GetLevelPlayedTime

Returns the Players time played at current level

GetLifetimeKills

Returns the Players lifetime Honorable Kills

GetMailCount

Returns the amount of mails in the player's mailbox.

GetMailItem

Returns a mailed Item by guid.

GetManaBonusFromIntellect

Returns mana bonus from amount of intellect

GetMaxSkillValue

Returns max value of specified skill

GetNextRandomRaidMember

Returns a random Raid Member Player object within radius specified of Player

GetOriginalGroup

Returns Players original Group object

GetOriginalSubGroup

Returns Players original sub group

GetPhaseMaskForSpawn

Returns the normal phase of the player instead of the actual phase possibly containing GM phase

GetPlayerIP

Returns the Players IP address

GetPlayerSettingValue

Gets a setting value for the Player

GetPureMaxSkillValue

Returns max value of specified skill without bonus'

GetPureSkillValue

Returns skill value without bonus'

GetQuestLevel

Returns the quest level of the Players Quest specified by object

GetQuestRewardStatus

Returns true if the Players Quest specified by entry ID has been rewarded, false otherwise.

GetQuestStatus

Returns the status of the Players Quest specified by entry ID

GetRankPoints

Returns rank points

GetReputation

Returns the amount of reputation the Player has with the faction specified

GetReputationRank

Returns the Players reputation rank of faction specified

GetReqKillOrCastCurrentCount

Returns Quest required Creature or GameObject count

GetRestBonus

Returns the Players current resting bonus

GetSelection

Returns the Players currently selected Unit object

GetShieldBlockValue

Returns the Players current shield block value

GetSkillPermBonusValue

Returns skill permanent bonus value

GetSkillTempBonusValue

Returns skill temporary bonus value

GetSkillValue

Returns skill value

GetSpecsCount

Returns the amount of available specs the Player currently has

GetSpellCooldownDelay

Returns the Players cooldown delay by specified Spell ID

GetSubGroup

Returns Players current sub group

GetTeam

Returns the Players [TeamId]

GetTotalPlayedTime

Returns the Players total time played

GetTrader

Returns the Player that is currently trading with this Player

GetXP

Returns the Player's experience points

GetXPRestBonus

Returns rested experience bonus

GiveXP

Gives the Player experience

GossipAddQuests

Adds the gossip items to the Player's gossip for the quests the given WorldObject can offer to the player.

GossipClearMenu

Clears the Players current gossip item list.

GossipComplete

Closes the Players currently open Gossip Menu.

GossipMenuAddItem

Adds a new item to the gossip menu shown to the Player on next call to Player:GossipSendMenu.

GossipSendMenu

Sends the current gossip items of the player to him as a gossip menu with header text from the given textId.

GossipSendPOI

Sends POI to the location on your map

GroupCreate

Creates a new Group with the creator Player as leader.

GroupEventHappens

Completes a Quest if in a Group

GroupInvite

Makes the Player invite another player to a group.

HasAchieved

Returns true if the Player has completed the specified achievement, false otherwise.

HasAtLoginFlag

Returns true if Player has specified login flag

HasCasterSpec

Returns true if the Player has a Caster Specialization, false otherwise.

HasHealSpec

Returns true if the Player has a Heal Specialization, false otherwise.

HasItem

Returns true if the Player has the given amount of item entry specified, false otherwise.

HasMeleeSpec

Returns true if the Player has a Melee Specialization, false otherwise.

HasQuest

Returns true if the Player has an active Quest by specific ID, false otherwise.

HasQuestForGO

Returns true if Player has Quest for GameObject

HasQuestForItem

Returns true if the Player has a quest for the item entry specified, false otherwise.

HasSkill

Returns true if the Player has a skill by specific ID, false otherwise.

HasSpell

Returns true if the Player has a Spell by specific ID, false otherwise.

HasSpellCooldown

Returns true if the Spell specified by ID is currently on cooldown for the Player, false otherwise.

HasTalent

Returns true if the Player has a talent by ID in specified spec, false otherwise.

HasTankSpec

Returns true if the Player has a Tank Specialization, false otherwise.

HasTitle

Returns true if the Player has a title by specific ID, false otherwise.

InArena

Returns true if the Player is currently in an arena, false otherwise.

InBattleground

Returns true if the Player is currently in a BattleGround, false otherwise.

InBattlegroundQueue

Returns true if the Player is currently in a BattleGround queue, false otherwise.

IncompleteQuest

Sets the given quest entry incomplete for the Player.

IsAFK

Returns true if the Player is 'Away From Keyboard' flagged, false otherwise.

IsAcceptingWhispers

Returns true if the Player is accepting whispers, false otherwise.

IsAlliance

Returns true if the Player is a part of the Alliance faction, false otherwise.

IsDND

Returns true if the Player is 'Do Not Disturb' flagged, false otherwise.

IsFalling

Returns true if the Player is currently falling, false otherwise.

IsFlying

Returns true if the Player is currently flying, false otherwise.

IsGM

Returns true if the Player is a Game Master, false otherwise.

IsGMChat

IsGMVisible

IsGroupVisibleFor

IsHonorOrXPTarget

Returns true if the Player is eligible for Honor or XP gain by Unit specified, false otherwise.

IsHorde

Returns true if the Player is a part of the Horde faction, false otherwise.

IsImmuneToDamage

Returns true if the Player is immune to everything.

IsInArenaTeam

Returns true if the Player is in an arena team specified by type, false otherwise.

IsInGroup

Returns true if the Player is in a Group, false otherwise.

IsInGuild

Returns true if the Player is in a Guild, false otherwise.

IsInSameGroupWith

Returns true if the Player is currently in the same Group as another Player by object, false otherwise.

IsInSameRaidWith

Returns true if the Player is currently in the same raid as another Player by object, false otherwise.

IsInWater

Returns true if the Player is currently in water, false otherwise.

IsMoving

Returns true if the Player is currently moving, false otherwise.

IsRested

Returns true if the Player is currently rested, false otherwise.

IsTaxiCheater

Returns true if the Player has taxi cheat activated, false otherwise.

IsVisibleForPlayer

Returns true if the Player can see anoter Player specified by object, false otherwise.

KickPlayer

Kicks the Player from the server

KillPlayer

Kills the Player

KilledMonsterCredit

Gives Quest monster killed credit

LearnSpell

Teaches the Player the Spell specified by entry ID

LearnTalent

Learn the Player the talent specified by talent_id and talentRank

LeaveBattleground

Forces the Player to leave a BattleGround

LogoutPlayer

Forces the Player to log out

ModifyArenaPoints

Adds or detracts from the Players current Arena Points

ModifyHonorPoints

Adds or detracts from the Players current Honor Points

ModifyMoney

Adds or subtracts from the Players money in copper

Mute

Mutes the Player for the amount of seconds specified

RemoveArenaSpellCooldowns

Remove cooldowns on spells that have less than 10 minutes of cooldown from the Player, similarly to when you enter an arena.

RemoveFromBattlegroundRaid

Forcefully removes the Player from a BattleGround raid group

RemoveFromGroup

Forces the Player to leave a Group

RemoveItem

Removes the given amount of the specified Item from the player.

RemoveLifetimeKills

Removes specified amount of lifetime kills

RemoveQuest

Removes the given quest entry from the Player.

RemoveSpell

Removes the Spell from the Player

RemovedInsignia

Loots Player's bones for insignia

ResetAchievements

Reset the Players completed achievements

ResetAllCooldowns

Resets all of the Player's cooldowns

ResetHonor

Resets the Players weekly honor status

ResetPetTalents

Resets the Players pets talent points

ResetSpellCooldown

Resets cooldown of the specified spell

ResetTalents

Resets the Players talents

ResetTalentsCost

Returns the Players accumulated talent reset cost

ResetTypeCooldowns

Resets cooldown of the specified category

ResurrectPlayer

Resurrects the Player.

RewardQuest

Rewards the given quest entry for the Player if he has completed it.

SaveToDB

Saves the Player to the database

Say

Sends say text from the Player

SendAddonMessage

Sends addon message to the Player receiver

SendAreaTriggerMessage

Sends an Area Trigger Message to the Player

SendAuctionMenu

Sends an auction house window to the Player from the Unit specified

SendBroadcastMessage

Sends a Broadcast Message to the Player

SendCinematicStart

Starts a cinematic for the Player

SendGuildInvite

Sends a guild invitation from the Players Guild to the Player object specified

SendListInventory

Sends a vendor window to the Player from the WorldObject specified.

SendMovieStart

Starts a movie for the Player

SendNotification

Sends a Notification to the Player

SendPacket

Sends a WorldPacket to the Player

SendQuestTemplate

Shows a quest accepting window to the Player for the given quest.

SendShowBank

Sends a bank window to the Player from the WorldObject specified.

SendShowMailBox

Shows the mailbox window to the player from specified guid.

SendSpiritResurrect

Sends a spirit resurrection request to the Player

SendTabardVendorActivate

Sends a tabard vendor window to the Player from the WorldObject specified

SendTaxiMenu

Sends a flightmaster window to the Player from the Creature specified

SendTrainerList

Sends a trainer window to the Player from the Creature specified

SendUpdateWorldState

Sends an update for the world state to the Player

SetAcceptWhispers

Toggles whether the Player accepts whispers or not

SetAchievement

Adds the specified achievement to the Players

SetArenaPoints

Sets the Players Arena Points to the amount specified

SetAtLoginFlag

Sets the Players login flag to the flag specified

SetBindPoint

Sets the Players home location to the location specified

SetCoinage

Sets the Players amount of money to copper specified

SetDrunkValue

Sets the Players intoxication level to the level specified

SetFFA

Toggle the Players FFA flag

SetFactionForRace

Sets the Players faction standing to that of the race specified

SetFreeTalentPoints

Sets the Players free talent points to the amount specified for the current spec

SetGMChat

Toggle Blizz (GM) tag

SetGMVisible

Toggles whether the Player has GM visibility on or off

SetGameMaster

Toggles the Players GM mode on or off

SetGender

Sets the Players gender to gender specified

SetGlyph

Adds a glyph specified by glyphId to the Player's current talent specialization into the slot with the index slotIndex

SetGuildRank

Sets the Players guild rank to the rank specified

SetHonorLastWeekStandingPos

Sets last week's honor standing position

SetHonorPoints

Sets the Players Honor Points to the amount specified

SetHonorStoredKills

Sets kills

SetKnownTitle

Adds the specified title to the Players list of known titles

SetLifetimeKills

Sets the Players amount of Lifetime Honorable Kills to the value specified

SetPlayerLock

Locks the player controls and disallows all movement and casting.

SetPvPDeath

Toggles PvP Death

SetQuestStatus

Sets Quest state

SetRankPoints

Sets rank points

SetReputation

Sets the Players reputation amount for the faction specified

SetRestBonus

Sets the Players rest bonus to the amount specified

SetSheath

Sets the Players sheathe state to the state specified

SetSkill

Sets (increases) skill of the Player

SetSpellPower

The Player sets the spell power

SetTaxiCheat

Toggles whether the Player has taxi cheat enabled or not

SpawnBones

Converts Player's corpse to bones

StartTaxi

Attempts to start the taxi/flying to the given pathID

SummonPlayer

Sends a summon request to the player from the given summoner

TalkedToCreature

Gives Quest monster talked to credit

Teleport

Teleports a Player to the location specified

TextEmote

Sends a text emote from the Player

ToggleAFK

Toggle the Players 'Away From Keyboard' flag

ToggleDND

Toggle the Players 'Do Not Disturb' flag

UnbindAllInstances

Unbinds the Player from his instances except the one he currently is in.

UnbindInstance

Unbinds the Player from his instances except the one he currently is in.

UnsetKnownTitle

Removes a title by ID from the Players list of known titles

UpdateHonor

Updates the Players weekly honor status

UpdatePlayerSetting

Sets a setting value for the Player

Whisper

Sends whisper text from the Player

Yell

Sends yell text from the Player

Generated on
©2016 - Eluna Lua Engine