1.9.0_9.0.1
This commit is contained in:
18
Function/Item.lua
Normal file
18
Function/Item.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
-- MxW (MxW Addon)
|
||||
-- By mikx
|
||||
-- https://git.mikx.xyz/mikx/MxW_Addon
|
||||
-- Licensed under the GNU General Public License 3.0
|
||||
-- See included License file for more informations.
|
||||
|
||||
local MX = LibStub("AceAddon-3.0"):GetAddon("MxW");
|
||||
local L = LibStub("AceLocale-3.0"):GetLocale("MxW");
|
||||
|
||||
function MX:ToItemID(itemString)
|
||||
if not itemString then
|
||||
return
|
||||
end
|
||||
|
||||
local _, _, Color, Ltype, Id, Enchant, Gem1, Gem2, Gem3, Gem4, Suffix, Unique, LinkLvl, reforging, Name = string.find(itemString, "|?c?f?f?(%x*)|?H?([^:]*):?(%d+):?(%d*):?(%d*):?(%d*):?(%d*):?(%d*):?(%-?%d*):?(%-?%d*):?(%d*):?(%d*)|?h?%[?([^%[%]]*)%]?|?h?|?r?")
|
||||
|
||||
return tonumber(Id)
|
||||
end
|
||||
Reference in New Issue
Block a user