View Single Post
11-28-05, 04:20 AM   #2
Phoenix
A Murloc Raider
 
Phoenix's Avatar
Join Date: Nov 2005
Posts: 4
function UpdateTest()
local TestR = 0;
local TestRI = 0;
local tooltip = getglobal("TestTooltip");
for bag=4, 0, -1 do
local size = GetContainerNumSlots(bag);
if (size > 0) then
for slot=1, size, 1 do
local texture, itemCount = GetContainerItemInfo(bag, slot);
if (itemCount) then
local itemName = nil;
tooltip:SetBagItem(bag, slot);
local ttext = getglobal("TestTextLeft1");
if (ttext and ttext:IsVisible() and ttext:GetText() ~= nil)
then
itemName = ttext:GetText();
if (itemName ~= nil and itemName == ( R1 ) and
UnitLevel("Player")>50 and UnitLevel("Player")<60) then
TestR = Test+ itemCount;
TestText:SetText(TestR);



That is a basic view of how my code looks like right now. Anyone have a idea why that won't work on the test realm?
  Reply With Quote