WoW:API GetTradeSkillItemStats: Difference between revisions

m
Move page script moved page API GetTradeSkillItemStats to WoW:API GetTradeSkillItemStats without leaving a redirect
No edit summary
 
m (Move page script moved page API GetTradeSkillItemStats to WoW:API GetTradeSkillItemStats without leaving a redirect)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<center>'''GetTradeSkillItemStats''' - ''Documentation by [[User:morevit|morevit]]''</center>
{{wowapi}}
 
{{removedapi|&le; 3.1.3}}
Gets the link string for a trade skill item.
Gets the link string for a trade skill item.


  itemStats = GetTradeSkillItemLink(skillId)
  itemStats = GetTradeSkillItemStats(skillId)
== Parameters ==
== Parameters ==
=== Arguments ===
=== Arguments ===
Line 12: Line 12:
Example:
Example:
Trade Blacksmithing: (window is open, all catagories shown)
Trade Blacksmithing: (window is open, all catagories shown)
<table>
 
<tr><td>Index</td><td>Name             </td></tr>
{|
<tr><td>1   </td><td>- Daggers          </td></tr>
|-----
<tr><td>2   </td><td>Deadly Bronze Poniard</td></tr>
| Index || Name            
<tr><td>3   </td><td>Pearl-handled Dagger </td></tr>
|-----
<tr><td>4   </td><td>Big Bronze Knife</td></tr>
| 1 || - Daggers           
<tr><td>5   </td><td>- One-Handed Axes</td></tr>Category head
|-----
</table>
| 2 || Deadly Bronze Poniard
|-----
| 3 || Pearl-handled Dagger  
|-----
| 4 || Big Bronze Knife
|-----
| 5 || - One-Handed AxesCategory head
|}


Trade Blacksmithing: (window is open, only trade items are shown)
Trade Blacksmithing: (window is open, only trade items are shown)
<table>
 
<tr><td>Index</td><td>Name                     </td></tr>
{|
<tr><td>1   </td><td>- Trade Items              </td></tr>
|-----
<tr><td>2   </td><td>Elemental Sharpening Stone</td></tr>
| Index || Name                    
<tr><td>3   </td><td>Thorium Shield Spike      </td></tr>
|-----
</table>
| 1 || - Trade Items               
|-----
| 2 || Elemental Sharpening Stone
|-----
| 3 || Thorium Shield Spike       
|}


=== Returns ===
=== Returns ===
Line 36: Line 48:


== Example ==
== Example ==
  itemStats = GetTradeSkillItemStats(2) -- Get item stats for Deadly Bronze Poniard (see above)
  itemStats = {GetTradeSkillItemStats(2)} -- Get item stats for Deadly Bronze Poniard (see above)


=== Result ===
=== Result ===
  itemStats = { "Uncommon", "Binds when equipped", "One-Hand", "|cffff2020Dagger|r", "16 - 30 Damage", "Speed 18", "+4 Strength", "Level 25", "Requires Level 20" }
  itemStats = { "Uncommon", "Binds when equipped", "One-Hand", "|cffff2020Dagger|r", "16 - 30 Damage", "Speed 18", "+4 Strength", "Level 25", "Requires Level 20" }
----
 
{{WoW API}}
=== Note ===
The curly braces around the functions call are critical, if you forget those your result will be:
 
itemStats = "Uncommon"
Anonymous user