function Roids.FindItem(itemName)
RoidsTooltip:SetOwner(WorldFrame, "ANCHOR_NONE");
for i = 0, 4 do
for j = 1, GetContainerNumSlots(i) do
RoidsTooltip:ClearLines();
RoidsTooltip:SetBagItem(i, j);
if RoidsTooltipTextLeft1:GetText() == itemName then
return i, j;
end
end
end
for i = 0, 19 do
RoidsTooltip:ClearLines();
hasItem = RoidsTooltip:SetInventoryItem("player", i);
if hasItem and RoidsTooltipTextLeft1:GetText() == itemName then
return -i;
end
end
end
trying to call Roids.FindItem return a nil value (for example; setting a "#showtooltip " of an item in bag return nil value in game)
It seems that putting that function at the end of Utility.lua resolve the problem (must be a global calling problem)
trying to call Roids.FindItem return a nil value (for example; setting a "#showtooltip " of an item in bag return nil value in game)
It seems that putting that function at the end of Utility.lua resolve the problem (must be a global calling problem)