12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

856 Part IV ■ <strong>Reference</strong>Returns:inRange—1 if the player is close enough to the target to use the item;0ifthetargetisout<strong>of</strong>range;nil if the quest item does not require a target(number)IsQuestWatchedReturns whether a quest from the quest log is listed in the objectives tracker.isWatched = IsQuestWatched(questIndex)Arguments:questIndex—Index <strong>of</strong> a quest in the quest log (between 1 <strong>and</strong>GetNumQuestLogEntries()) (number)Returns:isWatched—1 if the quest is being watched; otherwise nil (1nil)IsRaidLeaderReturns whether the player is the raid leader.isLeader = IsRaidLeader()Returns:isLeader—1 if the player is the raid leader; otherwise nil (1nil)IsRaidOfficerReturns whether the player is a raid assistant.isRaidOfficer = IsRaidOfficer()Returns:isRaidOfficer—1 if the player is a raid assistant; otherwise nil (boolean)IsRealPartyLeaderReturns whether the player is the leader <strong>of</strong> a non-battleground party.isLeader = IsRealPartyLeader()When the player is in a party/raid <strong>and</strong> joins a battleground or arena, thenormal party/raid functions refer to the battleground’s party/raid, but thegame still keeps track <strong>of</strong> the player’s place in a non-battleground party/raid.Returns:isLeader—1 if the player is the leader <strong>of</strong> a non-battleground party; otherwisenil (1nil)IsRealRaidLeaderReturns whether the player is the leader <strong>of</strong> a non-battleground raid.isLeader = IsRealRaidLeader()When the player is in a party/raid <strong>and</strong> joins a battleground or arena, thenormal party/raid functions refer to the battleground’s party/raid, but thegame still keeps track <strong>of</strong> the player’s place in a non-battleground party/raid.Returns:isLeader—1 if the player is the leader <strong>of</strong> a non-battleground raid; otherwisenil (1nil)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!