Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
m (minor template fix)
 
(Manually migrated from wowwiki)
 
Line 1: Line 1:
  +
{{wowapi}} __NOTOC__
<onlyinclude>{{tooltip
 
  +
Returns a number corresponding to the power type (e.g., mana, rage or energy) of the specified unit.
|mode={{{mode|}}}
 
  +
powerType, powerTypeString = UnitPowerType(UnitId);
|arg={{{arg|}}}
 
|skill=Engineering (300)
 
|sell={{cost|4||}}
 
|icon=INV_Misc_Head_Dragon_01
 
|quality=Rare
 
|bind=BoE
 
|slot=Trinket
 
|itemid=16022
 
|unique-eq=1
 
|ilvl=60
 
|name=Arcanite Dragonling
 
|level=50
 
|effect=Use: Activates your Arcanite Dragonling to fight for you for 1 min. It requires an hour to cool down before it can be used again.
 
|cooldown=20 minutes}}</onlyinclude>
 
   
==Source==
+
==Arguments==
  +
:;[[UnitId]] : String - The unit whose power type to query.
Arcanite Dragonling is created by [[Engineering|engineers]] with a skill of 300.
 
   
  +
==Returns==
{{itembox|caption=The components are:
 
  +
:;[[powerType]] : Integer - the power type.
|item1=Mithril Mechanical Dragonling|q1=1
 
|item2=Delicate Arcanite Converter|q2=8
 
|item3=Enchanted Thorium Bar|q3=10
 
|item4=Thorium Widget|q4=6
 
|item5=Gold Power Core|q5=4
 
|item6=Enchanted Leather|q6=6}}
 
   
  +
:;powerTypeString : String - also the power type:
The recipe for this item is taught by {{loot|Uncommon|Schematic: Arcanite Dragonling}}. The only known source for this schematic are the [[Cobalt Mageweaver]]s in [[Mazthoril]], in [[Winterspring]].
 
  +
::* "MANA"
  +
::* "RAGE"
  +
::* "FOCUS"
  +
::* "ENERGY"
  +
::* "HAPPINESS"
  +
::* "RUNES"
  +
::* "RUNIC_POWER"
  +
::* "SOUL_SHARDS"
  +
::* "ECLIPSE"
  +
::* "HOLY_POWER"
  +
::* "AMMOSLOT" (vehicles, 3.1)
  +
::* "FUEL" (vehicles, 3.1)
   
  +
==Example==
  +
local t = {[0] = "mana", [1] = "rage", [2] = "focus", [3] = "energy", [4] = "happiness", [5] = "runes", [6] = "runic power", [7] = "soul shards", [8] = "eclipse", [9] = "holy power"};
  +
DEFAULT_CHAT_FRAME:AddMessage(UnitName("player") .. "'s " .. t[UnitPowerType("player")] .. ": " .. UnitPower("player"));
   
== Notes ==
+
===Result===
  +
Displays the player's current mana/rage/energy/etc in the default chat frame.
As of Patch 2.4, the Engineering combat pets no longer scale with the user's Engineering skill. A Arcanite Dragonling will always be a Level 60 creature.
 
 
Also See:
 
* [[Mechanical Dragonling]]
 
* [[Mithril Mechanical Dragonling]]
 
 
==External links==
 
{{elinks-item|16022}}
 
 
[[Category:World of Warcraft engineering crafted items]]
 
[[Category:World of Warcraft trinket items]]
 
[[Category:World of Warcraft rare items]]
 
[[Category:Guardian pets]]
 
[[Category:Dragon Whelps]]
 

Revision as of 19:09, 21 October 2010

Returns a number corresponding to the power type (e.g., mana, rage or energy) of the specified unit.

powerType, powerTypeString = UnitPowerType(UnitId);

Arguments

UnitId
String - The unit whose power type to query.

Returns

powerType
Integer - the power type.
powerTypeString
String - also the power type:
  • "MANA"
  • "RAGE"
  • "FOCUS"
  • "ENERGY"
  • "HAPPINESS"
  • "RUNES"
  • "RUNIC_POWER"
  • "SOUL_SHARDS"
  • "ECLIPSE"
  • "HOLY_POWER"
  • "AMMOSLOT" (vehicles, 3.1)
  • "FUEL" (vehicles, 3.1)

Example

local t = {[0] = "mana", [1] = "rage", [2] = "focus", [3] = "energy", [4] = "happiness", [5] = "runes", [6] = "runic power", [7] = "soul shards", [8] = "eclipse", [9] = "holy power"};
DEFAULT_CHAT_FRAME:AddMessage(UnitName("player") .. "'s " .. t[UnitPowerType("player")] .. ": " .. UnitPower("player"));

Result

Displays the player's current mana/rage/energy/etc in the default chat frame.