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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

966 Part IV ■ <strong>Reference</strong>Arguments:unit—A unit to query (string, unitID)Returns:name—Name <strong>of</strong> the spell being cast (string)subText—Secondary text associated with the spell (e.g.‘‘Rank 5’’, ‘‘Racial’’, etc.)(string)text—Text to be displayed on a casting bar (string)texture—Pathtoanicontexture<strong>for</strong>thespell(string)startTime—Time at which the cast was started (in milliseconds; can be comparedto GetTime() * 1000) (number)endTime—Time at which the cast will finish (in milliseconds; can be comparedto GetTime() * 1000) (number)isTradeSkill—1 if the spell being cast is a trade skill recipe; otherwise nil(1nil)castID—<strong>Reference</strong> number <strong>for</strong> this spell; matches the 4th argument<strong>of</strong> UNIT_SPELLCAST_* events <strong>for</strong> the same spellcast (number)notInterruptible—1 if the spell can be interrupted; otherwise nil.See the UNIT_SPELLCAST_NOT_INTERRUPTIBLE <strong>and</strong> UNIT_SPELLCAST_INTERRUPTIBLE events <strong>for</strong> changes to this status. (1nil)UnitChannelInfoReturns in<strong>for</strong>mation about the spell a unit is currently channeling.name, subText, text, texture, startTime, endTime, isTradeSkill, inotInterruptible = UnitChannelInfo(“unit“)Arguments:unit—A unit to query (string, unitID)Returns:name—Name <strong>of</strong> the spell being cast (string)subText—Secondary text associated with the spell (e.g.‘‘Rank 5’’, ‘‘Racial’’, etc.)(string)text—Text to be displayed on a casting bar (string)texture—Pathtoanicontexture<strong>for</strong>thespell(string)startTime—Time at which the cast was started (in milliseconds; can be comparedto GetTime() * 1000) (number)endTime—Time at which the cast will finish (in milliseconds; can be comparedto GetTime() * 1000) (number)isTradeSkill—1 if the spell being cast is a trade skill recipe; otherwise nil(1nil)notInterruptible—Indicates that the spell cannot be interrupted,UNIT_SPELLCAST_NOT_INTERRUPTIBLE <strong>and</strong> UNIT_SPELLCAST_INTERRUPTIBLE are fired to indicate changes in the interruptible status.(boolean)

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

Saved successfully!

Ooh no, something went wrong!