@
soul4soul, what's your script look like? Try mine!
[highlight=lua]
local lootList = {"gold coin","blood herb"}
local lootIcons = {}
local lootCounts = {}
for x = 1, #lootList do
lootIcons[x] = HUD.CreateItemDisplay(10, x * 32, Item.GetID(lootList[x]), 32, math.min(Self.ItemCount(Item.GetID(lootList[x])), 100))
lootCounts[x] = HUD.CreateTextDisplay(26, x * 32 + 20, Self.ItemCount(Item.GetID(lootList[x])), 200, 200, 200)
end
local ElapsedTime = HUD.CreateTextDisplay(10, 15, "Elapsed Time: ", 200, 200, 200)
local time = os.clock()
while true do
wait(500)
ElapsedTime:SetText(string.format("Elapsed Time: %.2d:%.2d:%.2d", math.floor(os.difftime(os.clock(), time) / 3600), math.floor(os.difftime(os.clock(), time) / 60) - math.floor(os.difftime(os.clock(), time) / 3600) * 60, os.difftime(os.clock(), time) - math.floor(os.difftime(os.clock(), time) / 60) * 60 - math.floor(os.difftime(os.clock(), time) / 3600) * 3600))
for x = 1, #lootList do
lootIcons[x]:SetItemCount(math.min(Self.ItemCount(Item.GetID(l ootList[x])), 100))
lootCounts[x]:SetText(Self.ItemCount(Item.GetID(lootList[x])))
end
end
[/highlight]