View Single Post
08-06-18, 01:46 PM   #1
myName
A Deviate Faerie Dragon
 
myName's Avatar
Join Date: Jul 2018
Posts: 10
Passing itemlinks to slash commands

I am wanting to pass an itemlink to a slash command such as
Code:
/fs add <Linen Cloth>
but when I use GetItemInfo() BugSack returns "Usage: GetItemInfo(ItemID|"name"|"itemLink")

Presently I am add
Code:
SLASH_SERVANT1 = "/fs"
SlashCmdList.SERVANT = function(func, arg1)
	local infoType, itemID, itemLink = GetItemInfo(arg1)
end
What am I doing wrong here?
  Reply With Quote