About: API GetItemStats   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

The key for each entry in the hashtable is the name of a constant in Interface\FrameXML\GlobalStrings.lua, and the value of that constant is the localized name for the stat. For example, an item that has 10 Stamina and no other stats would return { "ITEM_MOD_STAMINA_SHORT" = 10 }. stats = GetItemStats(GetInventoryItemLink("player", 16)) DEFAULT_CHAT_FRAME:AddMessage("Your main hand item has " .. tostring(stats["ITEM_MOD_STAMINA_SHORT"] or 0) .. " " .. ITEM_MOD_STAMINA_SHORT .. ".") would return something like Your main hand item has 10 Stamina.

AttributesValues
rdfs:label
  • API GetItemStats
rdfs:comment
  • The key for each entry in the hashtable is the name of a constant in Interface\FrameXML\GlobalStrings.lua, and the value of that constant is the localized name for the stat. For example, an item that has 10 Stamina and no other stats would return { "ITEM_MOD_STAMINA_SHORT" = 10 }. stats = GetItemStats(GetInventoryItemLink("player", 16)) DEFAULT_CHAT_FRAME:AddMessage("Your main hand item has " .. tostring(stats["ITEM_MOD_STAMINA_SHORT"] or 0) .. " " .. ITEM_MOD_STAMINA_SHORT .. ".") would return something like Your main hand item has 10 Stamina.
dcterms:subject
dbkwik:wowwiki/pro...iPageUsesTemplate
abstract
  • The key for each entry in the hashtable is the name of a constant in Interface\FrameXML\GlobalStrings.lua, and the value of that constant is the localized name for the stat. For example, an item that has 10 Stamina and no other stats would return { "ITEM_MOD_STAMINA_SHORT" = 10 }. stats = GetItemStats(GetInventoryItemLink("player", 16)) DEFAULT_CHAT_FRAME:AddMessage("Your main hand item has " .. tostring(stats["ITEM_MOD_STAMINA_SHORT"] or 0) .. " " .. ITEM_MOD_STAMINA_SHORT .. ".") would return something like Your main hand item has 10 Stamina. The stat table contains the stats for the "base" version of an item, without any enchantments or gems. There is no way to get the stats for the gemmed and enchanted version of an item.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software