SLASH_TESTC1 = '/asd'
function SlashCmdList.TESTC(msg, editbox)
print('*** Chat Link Test Start ***')
local itemID = tonumber(string.match(msg, 'item:(%d+):'))
if msg then
print('message =', msg)
else
print('no message')
end
if itemID then
print('itemID =', itemID)
else
print('no item')
end
print('*** Chat Link Test End ***')
end
I am running this in game using the hack addon with the following results;
-- /asd
*** Chat Link Test Start ***
message =
no item
*** Chat Link Test End ***
-- /asd<<shift clicked item link
Type'help' for a listing of a few commands.
I am not getting any errors in bugsack.
I dont understand how msg is true but there is no print, and when I do link an item why i do not get the opening and closing and the full message prints.
https://pastebin.com/P8rtkgBL
- an empty msg is true
- /asd <space> <shift clicked item> works for me, did you miss a <space> after /asd ?
In reply to Caraxe:
Thanks for your help Caraxe