function scanItem(cid, uid) --By Darkhaos.
if isContainer(uid) then
for k = (getContainerSize(uid) - 1), 0, -1 do
local tmp = getContainerItem(uid, k)
if not isContainer(tmp.uid) then
if getItemAttribute(tmp.uid, "boughtdate") and os.time() >= getItemAttribute(tmp.uid, "boughtdate")...