Thread
:
Pattern matching
View Single Post
10-22-19, 12:08 PM
#
2
Kanegasi
A Molten Giant
Join Date: Apr 2007
Posts: 666
local _, _, itemID = strsplit(":", line)
This will split the message string by colons, making the item ID the third return in this message string. It gives you a string, so if you want a number:
itemID = tonumber(itemID)
__________________
addons
-
weakauras
-
Lua Wall of Shame
Don't like combat text on frames?
Kanegasi
View Public Profile
Send a private message to Kanegasi
Find More Posts by Kanegasi