Chapter 27
API Reference
819
Arguments:
index—Indexofanentryinthetrainerservicelisting(between1and
GetNumTrainerServices())(number)
Returns:
reqLevel—Levelrequiredtopurchasetheservice,orniliftheservicehasno
level requirement (number)
GetTrainerServiceNumAbilityReq
Returnsthe number of ability requirements for purchasing atrainer service.
numRequirements= GetTrainerServiceNumAbilityReq(index)
Ability requirements are oftenused for ranked classspellspurchased from the
trainer: e.g. learning Blood Strike (Rank 3) requires having learned Blood Strike
(Rank 2). SeeGetTrainerServiceAbilityReq() for informationabout
specific ability requirements.
Arguments:
index—Indexofanentryinthetrainerservicelisting(between1and
GetNumTrainerServices())(number)
Returns:
numRequirements—Numberofdifferentabilityrequirementsforthetrainer
service (number)
Example:
--printsa list of trainerservices withtheirabilityrequirements
forindex= 1, GetNumTrainerServices()do
local name, rank, serviceType= GetTrainerServiceInfo(index)
if serviceType~= “header“ then
localnumRequirements=GetTrainerServiceNumAbilityReq(index)
if numRequirements>0 then
print(“Abilityrequirements for “..name..i
“(“ ..rank..“):“)
for i=1,numRequirementsdo
localability,hasReq =i
GetTrainerServiceAbilityReq(index,i)
if hasReqthen
print(“+ “..ability)
else
print(“- “..ability)
end
end
end
end
end
GetTrainerServiceSkillLine
Returnsthe name of the skillline associated with atrainer service.
skillLine =GetTrainerServiceSkillLine(index)
How to rearrange pdf pages online - re-order PDF pages in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Support Customizing Page Order of PDF Document in C# Project
move pages within pdf; change pdf page order preview
How to rearrange pdf pages online - VB.NET PDF Page Move Library: re-order PDF pages in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Sort PDF Document Pages Using VB.NET Demo Code
move pdf pages online; change page order pdf preview
820
Part IV
Reference
For trade skill trainers, skillline is the name of the trade skill (e.g. Tailoring,
First Aid). For other trainers, skill line isthe name of the group header under
which the skill appears(e.g. Riding, Frost, Protection, Holy, Defense, Dual
Wield).
Arguments:
index—Indexofanentryinthetrainerservicelisting(between1and
GetNumTrainerServices())(number)
Returns:
skillLine—Nameoftheskilllineassociatedwiththeservice(string)
GetTrainerServiceSkillReq
Returns information about the skill requirement for atrainer service.
skill,rank,hasReq =GetTrainerServiceSkillReq(index)
Often used for trade skill recipes: e.g. Netherweave Bag requires
Tailoring (315).
Arguments:
index—Indexofanentryinthetrainerservicelisting(between1and
GetNumTrainerServices())(number)
Returns:
skill—Nameoftherequiredskill(string)
rank—Rankrequiredintheskill(number)
hasReq1iftheplayerhastherequiredskillandrank;otherwise nil(1nil)
GetTrainerServiceTypeFilter
Returns whether the trainer service listing is filtered by a service status.
isEnabled= GetTrainerServiceTypeFilter(“type“)
Arguments:
type—Atrainerservicestatus(string)
available—Servicestheplayercanuse
unavailable—Servicestheplayercannotcurrentlyuse
used—Servicestheplayerhasalreadyused
Returns:
isEnabled1ifservicesmatchingthefiltertypeareshowninthelisting;other-
wisenil (1nil)
GetTrainerSkillLineFilter
Returns whether the trainer service listing isfiltered by askill line.
isEnabled= GetTrainerSkillLineFilter(index)
The default UIdoesnot provide control for skill line filters, but they can
nonetheless be used to alter the contents of the trainer service listing.
Arguments:
index—Indexofaskilllinefilter(inthelistreturnedbyGetTrainer
SkillLines()) (number)
C# TIFF: How to Reorder, Rearrange & Sort TIFF Pages Using C# Code
C# TIFF - Sort TIFF File Pages Order in C#.NET. Reorder, Rearrange and Sort TIFF Document Pages in C#.NET Application. C# TIFF Page Sorting Overview.
pdf change page order acrobat; move pages in pdf file
Online Merge PDF files. Best free online merge PDF tool.
Then press the button below and download your PDF. By dragging your pages in the editor area you can rearrange them or delete single pages.
pdf reverse page order preview; change pdf page order reader
Chapter 27
API Reference
821
Returns:
isEnabled1ifthegivenfilterisenabled,otherwise nil(1nil)
GetTrainerSkillLines
Returnsthe list of service groupnames available at a trainer.
...= GetTrainerSkillLines()
Skill linesas used here correspond to the group headers inthe trainer service
listing. Not used for trade skill trainers.
Returns:
...—Alistofstrings,eachthelocalizednameofagroupinthetrainerservice
listing (string
)
Example:
--fora paladin interactingwith his or herclasstrainer
GetTrainerSkillLines()
--returns “Defense“, “Holy“, “Mounts“,“Plate Mail“, “Protection“,
--“Retribution“
--when interactingwith the Silvermoonweapons master
GetTrainerSkillLines()
--returns “Polearms“,“Swords“, “Two-HandedSwords“
GetUnitHealthModifier
Returnsthe health modifier for the player’s pet.
modifier= GetUnitHealthModifier(“unit“)
Arguments:
unit—Aunittoquery;onlyvalidforpet(string,unitID)
Returns:
modifier—Factormodifyingtheunit’shealthvalue(number)
GetUnitHealthRegenRateFromSpirit
Returnsthe increase in health regenerationrate provided by Spirit.
regen= GetUnitHealthRegenRateFromSpirit(“unit“)
Arguments:
unit—Aunittoquery;onlyvalidforplayerorpet(string,unitID)
Returns:
regen—Increaseinnon-combathealthregenerationpersecondprovidedby
Spirit (number)
GetUnitManaRegenRateFromSpirit
Returnsthe increase in mana regeneration rate provided by Spirit.
regen= GetUnitManaRegenRateFromSpirit(“unit“)
Arguments:
unit—Aunittoquery;onlyvalidforplayerorpet(string,unitID)
VB.NET TIFF: Modify TIFF File by Adding, Deleting & Sort TIFF
you want to change or rearrange current TIFF &ltsummary> ''' Sort TIFF document pages in designed powerful & profession imaging controls, PDF document, image
rearrange pdf pages in preview; change pdf page order
VB.NET PDF File & Page Process Library SDK for vb.net, ASP.NET
a PDF document which is out of order, you need to rearrange the PDF you with examples for adding an (empty) page to a PDF and adding empty pages to a
how to reorder pdf pages in reader; move pages in pdf acrobat
822
Part IV
Reference
Returns:
regen—Increaseininactive(non-casting)manaregenerationpersecondpro-
vided by Spirit (number)
GetUnitMaxHealthModifier
Returns the maximum healthmodifier for the player’spet.
modifier= GetUnitMaxHealthModifier(“unit“)
Arguments:
unit—Aunittoquery;onlyvalidforpet(string,unitID)
Returns:
modifier—Factormodifyingtheunit’smaximumhealthvalue(number)
Blizzard UI
GetUnitName
Returns a string summarizing aunit’sname and server.
nameString=GetUnitName(“unit“, showServerName)
Arguments:
unit—Unittoquery(string,unitID)
showServerNameTruetoincludetheservernameinthereturn
value if the unit is not from the same server as the player;false
to only include a short label in such circumstances (boolean)
Returns:
nameString—Theunit’sname,possiblyfollowedbythenameoftheunit’s
home server ora labelindicating the unit isnot from the player’sserver (string)
GetUnitPitch
Returns the player’scurrent pitch (slope or angle of movement).
pitch= GetUnitPitch(“unit“)
Only valid for the unitID ‘‘player’’. The slope returnedhere reflectsonly the
directionof movement for swimming or flying, not the current orientationof
the player model or camera. (Whenon solid ground, GetUnitPitchindicates
what the angle of flight wouldbe were the player to start flying.)
The returned value isinradians, withpositive valuesindicating upward slope,
negative valuesindicating downward slope, and 0 indicating perfectly level
flight (or swimming).
Arguments:
unit—Unittoquery;onlyvalidforplayer(string,unitID)
Returns:
pitch—Unit’sslopeofmovementinradians(number)
GetUnitPowerModifier
Returns the mana modifier for the player’s pet.
modifier= GetUnitPowerModifier(“unit“)
Arguments:
unit—Aunittoquery;onlyvalidforpet(string,unitID)
C# PowerPoint - How to Process PowerPoint
the simplest procedures, for instance, using online clear C# out useless PowerPoint document pages simply with solution to sort and rearrange PowerPoint slides
how to move pdf pages around; how to rearrange pdf pages online
VB.NET Word: How to Process MS Word in VB.NET Library in .NET
well programmed Word pages sorter to rearrange Word pages in extracting single or multiple Word pages at one & profession imaging controls, PDF document, image
how to rearrange pages in pdf document; reorder pdf pages online
Chapter 27
API Reference
823
Returns:
modifier—Factormodifyingtheunit’smanavalue(number)
GetUnitSpeed
Returnsa unit’scurrent speed.
speed= GetUnitSpeed(unit)
Valid for all observable units. Valuesreturned indicate the current movement
speed inyards per second. (It’snot relative to facing or ground position;
i.e. you won’t see a smaller value whenflying upat an angle or a negative
value when backing up.) Does not indicate falling speed or the speed of boats,
zeppelins, andsome forms of quest-related transportation, but does indicate
current speed ontaxi flightsand whenmoving due to combat effectssuchas
Disengage, Death Grip, or variousknockback abilities.
Examples: Normal running: 7; Walking: 2.5; Running backwards: 4.5; Epic
flying mount: 26.6
Arguments:
unit—Unittoquery(unitid)
Returns:
speed—Unit’scurrentspeedinyardspersecond(number)
GetUnspentTalentPoints
Returnsthe number of unused talent points.
points =GetUnspentTalentPoints(inspect,pet, talentGroup)
Arguments:
inspecttruetoreturninformationforthecurrentlyinspected
unit;false to return information for the player (boolean)
pettruetoreturninformationfortheplayer’spet; falsetoreturninforma-
tion for the player (boolean)
talentGroup—Whichsetoftalentstoedit,iftheplayerhasDualTalentSpecial-
ization enabled (number)
1—PrimaryTalents
2—Secondary Talents
nil—Currentlyactivetalents
Returns:
points—Numberofpointsavailableforspending(number)
GetVideoCaps
Returnsinformationabout graphicscapabilitiesof the current system.
hasAnisotropic,hasPixelShaders,hasVertexShaders,hasTrilinear,i
hasTripleBufering,maxAnisotropy, hasHardwareCursor= GetVideoCaps()
Returns:
hasAnisotropic1ifanisotropicfilteringisavailable;otherwise0(number)
hasPixelShaders1ifpixelshadersareavailable;otherwise0(number)
Process Images in Web Image Viewer | Online Tutorials
used document types are supported, including PDF, multi-page easy to process image and file pages with the deleting a thumbnail, and you can rearrange the file
how to move pages in pdf converter professional; how to rearrange pdf pages in preview
VB.NET PowerPoint: Sort and Reorder PowerPoint Slides by Using VB.
page will teach you to rearrange and readjust amount of robust PPT slides/pages editing methods and powerful & profession imaging controls, PDF document, image
change page order pdf; reorder pdf pages reader
824
Part IV
Reference
hasVertexShaders1ifvertexshadersareavailable;otherwise0(number)
hasTrilinear1iftrilinearfilteringisavailable;otherwise0(number)
hasTripleBufering1iftriplebufferingisavailable;otherwise0(number)
maxAnisotropy—Numberofavailablesettingsforanisotropicfiltering
(correspondsto the ‘‘Texture Filtering’’ slider in the default UI) (number)
hasHardwareCursor1ifhardwarecursorsupportisavailable;otherwise0
(number)
GetVoiceCurrentSessionID
Returns an identifier for the active voice session.
id =GetVoiceCurrentSessionID()
Returns:
id—Indexoftheactivevoicesession(between1and GetNumVoice
Sessions()),or nilifnosessionisactive(number)
GetVoiceSessionInfo
Returns information about avoice session.
name,active= GetVoiceSessionInfo(session)
Arguments:
session—Indexofavoicesession(between1and GetNumVoiceSessions())
(number)
Returns:
name—Nameofthevoicesession(channel)(string)
active1ifthesessionistheactivevoicechannel;otherwise nil(1nil)
GetVoiceSessionMemberInfoBySessionID
Returns information about amember of a voice channel.
name,voiceActive, sessionActive,muted,squelched=i
GetVoiceSessionMemberInfoBySessionID(session,index)
Arguments:
session—Indexofavoicesession(between1and GetNumVoiceSessions())
(number)
index—Indexofamemberinthevoicesession(between1and
GetNumVoiceSessionMembersBySessionID(session))(number)
Returns:
name—Nameofthemember(string)
voiceActive1ifthememberhasenabledvoicechat;otherwise nil(1nil)
sessionActive1ifthechannelisthemember’sactivevoicechannel;other-
wisenil (1nil)
muted1ifthememberisontheplayer’smutedlist;otherwise nil(1nil)
squelched1ifthememberwassilencedbythechannelmoderator;otherwise
nil (1nil)
Chapter 27
API Reference
825
GetVoiceStatus
Returnswhether acharacter has voice chat enabled.
status =GetVoiceStatus(unit,“channel“) ori
GetVoiceStatus(“name“, “channel“)
Arguments:
unit—Theunitidtoquery(unitid)
name—Thenameoftheplayertoquery(string)
channel—Channeltoqueryforvoicestatus.(string)
Returns:
status1ifvoiceisenabled;otherwise nil(1nil)
GetWatchedFactionInfo
Returnsinformationabout the ‘‘watched’’ faction (displayed on the XPbar in
the default UI).
name,standingID, barMin,barMax,barValue= GetWatchedFactionInfo()
Returns:
name—Nameofthefactionbeingwatched(string)
standingID—Theplayer’scurrentstandingwiththefaction(number,
standingID)
1—Hated
2—Hostile
3—Unfriendly
4—Neutral
5—Friendly
6—Honored
7—Revered
8—Exalted
barMin—Theminimumvalueforthefactionstatusbar(number)
barMax—Themaximumvalueforthefactionstatusbar(number)
barValue—Thecurrentvalueforthefactionstatusbar(number)
GetWeaponEnchantInfo
Returnsinformation about temporary enchantments on the player’sweapons.
hasMainHandEnchant,mainHandExpiration,mainHandCharges,i
hasOffHandEnchant,offHandExpiration,offHandCharges=i
GetWeaponEnchantInfo()
Doesnot returninformation about permanent enchantmentsadded via
Enchanting, Runeforging, etc; refers instead to temporary buffssuchaswizard
oils, sharpening stones, rogue poisons, and shamanweaponenhancements.
Returns:
hasMainHandEnchant1ifthemainhandweaponhasatemporaryenchant
(1nil)
mainHandExpiration—Thetimeuntiltheenchantexpires,inmilliseconds
(number)
mainHandCharges—Thenumberofchargesleftontheenchantment(number)
hasOffHandEnchant1iftheoffhandweaponhasatemporaryenchant(1nil)
826
Part IV
Reference
offHandExpiration—Thetimeuntiltheenchantexpires,inmilliseconds
(number)
offHandCharges—Thenumberofchargesleftontheenchantment(number)
GetWhoInfo
Returns information about acharacter in the Who system query results.
name,guild,level, race, class,zone,filename= GetWhoInfo(index)
Arguments:
index—IndexofanentryintheWhosystemqueryresults(between1and
GetNumWhoResults())(number)
Returns:
name—Nameofthecharacter(string)
guild—Nameofthecharacter’sguild(string)
level—Levelofthecharacter(number)
race—Localizednameofthecharacter’srace(string)
class—Localizednameofthecharacter’sclass(string)
zone—Nameofthezoneinwhichthecharacterwaslocatedwhenthequery
was performed (string)
filename—Anon-localizedtokenrepresentingthecharacter’sclass(string)
GetWintergraspWaitTime
Returns the amount of time remaining until the next PvP event inthe
Wintergrasp zone.
seconds =GetWintergraspWaitTime()
Only accurate while the player is in Northrend; returnsnil if the player has
not beeninNorthrend this session, or the last known value if the player has
beenin Northrend thissession and iscurrently elsewhere. Also returnsnil
if
the Battle for Wintergrasp isin progress.
Returns:
seconds—Numberofseconds(roundedtothenearestfive)remaininguntil
the next Battle for Wintergrasp (number)
GetWorldPVPQueueStatus
Returns information onthe players queue for aworld PvP zone.
status, mapName,queueID =GetWorldPVPQueueStatus(index)
Arguments:
index—Indexofthequeuetogetdatafor(between1and MAX_WORLD_PVP
_QUEUES) (number)
Returns:
status—Returnsthestatusoftheplayersqueue(string)
confirm—Theplayercanenterthepvpzone
none—Noworldpvpqueueatthisindex
queued—Theplayerisqueuedforthispvpzone
Chapter 27
API Reference
827
mapName—Mapnametheyarequeuedfor(e.gWintergrasp)(string)
queueID—QueueID,usedforBattlefieldMgrExitRequest()andBattlefield
MgrEntryInviteResponse() (number
)
Example:
--Printsthe playersstatus fortheirqueued non-instanced pvp zones
forindex=1, MAX_WORLD_PVP_QUEUESdo
local status,mapName= GetWorldPVPQueueStatus(index)
if( status==“queued“) then
print(“Youarequeued for“, mapName)
elseif(status == “confirm“) then
print(“Queue is ready,canjoin“, mapName)
end
end
GetWorldStateUIInfo
Returnsinformation about aworldstate UI element.
uiType,state,text,icon,dynamicIcon,tooltip,dynamicTooltip,i
extendedUI,extendedUIState1,extendedUIState2, extendedUIState3=i
GetWorldStateUIInfo(index)
World State UI elements include PvP, instance, and quest objective information
(displayed at the top center of the screeninthe default UI) aswell asmore
specific information for ‘‘controlpoint’’style PvP objectives. Examples: the
Horde/Alliance score inArathi Basin, the tower status andcapture progress
bars inHellfire Peninsula, the progresstext inthe Black Morassand Violet
Hold instances, and the event status text for questsThe Light of Dawnand The
Battle For The Undercity.
Arguments:
index—IndexofaworldstateUIelement(between1and GetNumWorld
StateUI())(number)
Returns:
uiType1iftheelementshouldbeconditionallydisplayed(basedon
the state of the ‘‘Show World PvP Objectives’’ setting and the player’s
location); any other value if the element is always displayed (number)
state—Stateoftheelement:0alwaysindicatestheelementshould
be hidden; other possible states vary by context (e.g. in Warsong
Gulch, state 2 indicates the team holds the enemy flag) (number)
text—Texttobedisplayedfortheelement(string)
icon—Pathtoatexturefortheelement’smainicon(usuallydescribingtheele-
ment itself: e.g. a Horde or Alliance iconfor elementsdisplaying a battleground
score) (string)
dynamicIcon—Pathtoatextureforasecondaryicon(usuallydescrib-
ing transient status: e.g. a flag icon in Warsong Gulch) (string)
tooltip—TexttobedisplayedwhenmousingovertheUIelement(string)
828
Part IV
Reference
dynamicTooltip—Texttobedisplayedwhenmousingovertheelement’s
dynamicIcon(string)
extendedUI—IdentifiesthetypeofadditionalUIelementstodisplayif
applicable (string)
““—NoadditionalUIshouldbedisplayed
“CAPTUREPOINT“—Acaptureprogressbarshouldbedisplayedfortheele-
ment
extendedUIState1—Indexofthecaptureprogressbarcorrespondingtothe
element (number)
extendedUIState2—Positionofthecapturebar(0=left/Hordeedge,100=
right/Alliance edge) (number)
extendedUIState3—Widthoftheneutralsectionofthecapturebar:e.g.
if 50, theextendedUIState2 values 0-25 correspond to Horde ownership
of the objective, values 76-100to Alliance ownership, and values26-75 to no
ownership (number)
GetXPExhaustion
Returns the amount of rested bonusexperience available.
exhaustionXP =GetXPExhaustion()
Thisvalue increments as the player spends time resting and depletes as the
player earns experience from kills while rested.
Returns:
exhaustionXP—Theamountofrestedbonusexperienceavailable(number)
GetZonePVPInfo
Returns PVPinformationabout the current area.
pvpType,isSubZonePVP,factionName= GetZonePVPInfo()
Informationreturned may apply to the current subzone, not the entire zone.
Returns:
pvpType—PvPstatusforthearea(string)
arena—Arenaoroutdoorfree-for-allarea(e.g.GurubashiArena)
combat—Combatzone(e.g.Wintergrasp)
contested—Horde/AlliancePvPisenabledforallplayers
friendly—Zoneiscontrolledbytheplayer’sfaction;PvPstatus
is optional for the player but mandatory for enemy players
hostile—Zoneiscontrolledbytheenemy’sfaction;PvPsta-
tus is optional for the enemy but mandatory for the player
nil—PvPstatusisnotautomaticallyenabledforeitherfaction(usedfor
‘‘contested’’ zones on Normal servers)
sanctuary—PvPactivityisnotallowed(e.g.Dalaran)
isSubZonePVP1ifthecurrentareaallowsfree-for-allPVP;otherwise nil
(1nil)
Documents you may be interested
Documents you may be interested