View Single Post
10-22-19, 12:08 PM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
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)
  Reply With Quote