Wowpedia

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

READ MORE

Wowpedia
Register
No edit summary
 
(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.}}</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==
;The components are:
 
  +
:;[[powerType]] : Integer - the power type.
*1x {{item|icon=|Mithril Mechanical Dragonling}}
 
*8x {{item|icon=|Delicate Arcanite Converter}}
 
*10x {{item|icon=|Enchanted Thorium Bar}}
 
*6x {{item|icon=|Thorium Widget}}
 
*4x {{item|icon=|Gold Power Core}}
 
*6x {{item|icon=|Enchanted Leather}}
 
   
  +
:;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)
   
== Notes ==
+
==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===
The summoned dragon gains one level for every 5 points the user has in Engineering. So an engineer with Engineering 375 summons a level 75 dragonling.
 
  +
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. An Arcanite Dragonling will always be a Level 60 creature. In partial compensation, the cooldown time was reduced.<ref>[http://forums.worldofwarcraft.com/thread.html?topicId=5591169685&amp;sid=1&amp;pageNo=1#5 '''5. Re: Eng Pet Levels (Intended or Not?)'''] <small>03/27/2008 11:40:23 AM PDT</small> by [[Hortus]]</ref>
 
 
As of [[Patch 2.4.3]], these pets may once again scale with user's Engineering skill.{{fact}}
 
 
===Also See===
 
* [[Mechanical Dragonling]]
 
* [[Mithril Mechanical Dragonling]]
 
 
== References ==
 
<references/>
 
 
==External links==
 
<!-- Read http://www.wowwiki.com/WoWWiki:External_links before posting your links here.
 
Links that do not conform to the rules will be DELETED.
 
Repeat violations may result in a BAN.
 
Have a nice day. :) -->
 
{{elinks-item|16022}}
 
 
[[Category:World of Warcraft engineering crafted items]]
 
 
[[Category:World of Warcraft rare trinkets]]
 
[[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.