View Single Post
04-27-17, 08:48 AM   #12
loff93
A Fallenroot Satyr
Join Date: Apr 2017
Posts: 25
Originally Posted by Banknorris View Post
In Jeruku code lines 16-21 are just that. You could also call a funcion there like

Lua Code:
  1. elseif event == 'GET_ITEM_INFO_RECIEVED' then
  2.     local itemID = ...
  3.     --call your function here
  4. end
ah fair enough , had not looked too well into the scrip yet. Was going to study it when I had time to sit down with it.

I tried to make the script work but I get error from this line:
Code:
local name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(itemID)
Code:
Message: Interface\AddOns\Tore\main.lua:187: Usage: GetItemInfo(itemID|"name"|"itemlink")
Time: 04/27/17 16:56:26
Count: 1
Stack: [C]: in function `GetItemInfo'
Interface\AddOns\Tore\main.lua:187: in function <Interface\AddOns\Tore\main.lua:184>

Locals: (*temporary) = nil
Tried to pass a value/input like "felwort" or the ID but I guess I'm not doing it right as it says it's nil.

Extra: What script software do you guys use?

Last edited by loff93 : 04-27-17 at 09:06 AM.
  Reply With Quote