VictorTyne61723@legacy41580654 (talk | contribs) No edit summary |
Drdoom5081 (talk | contribs) (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> |
||
− | == |
+ | ==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) |
||
− | == |
+ | ==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")); |
||
⚫ | |||
− | 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&sid=1&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}} |
||
− | |||
⚫ | |||
− | * [[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
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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.