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 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.

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.

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.

CreateCorpse

Creates the Player's corpse

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. Returns total repair cost

DurabilityRepairAll

Repairs all Items. Returns total repair cost

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

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

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

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

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

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

HasItem

Returns 'true' if the Player has the given amount of item entry specified, '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 talent tree, '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.

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

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

SendClearCooldowns

Clears a cooldown of the specified spell

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 WorldObject specified

SetAcceptWhispers

Toggles whether the Player accepts whispers or not

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

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

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

Whisper

Sends whisper text from the Player

Yell

Sends yell text from the Player

Generated on 14/02/2017
©2016 - Eluna Lua Engine