Quote Originally Posted by spook View Post
hey man i notice your Carlin Coryms script bugs at mana shop if you have empty vials in your backpack. It doesnt sell and it doesnt buy, just stands there until you sell the empty vials. Please help me fix this some how, your scripts are awesome keep up the good work!
create a new lua script with this code and just run it with carlin coryms script.

---

function dropItem(id)
local cont = Container.GetFirst()

while (cont:isOpen()) do
for spot = 0, cont:ItemCount() do
local item = cont:GetItemData(spot)
if (item.id == id) then
cont:MoveItemToGround(spot, Self.Position().x, Self.Position().y, Self.Position().z)
return true
end
end

cont = cont:GetNext()
end

return false
end


while(true) do
local c = Container.GetByName("purple Backpack")
local vials = 1

if(c:CountItemsOfID(285) >= vials) then
dropItem(285)
elseif(c:CountItemsOfID(283) >= vials) then
dropItem(283)
elseif(c:CountItemsOfID(284) >= vials) then
dropItem(284)
end
wait(700,1200)
end

---
edit the backpack name to your potion/supplies backpack.