Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » General Authoring Discussion » Passing itemlinks to slash commands


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off