Log in

View Full Version : minimize backpacks problem



popit
04-30-2013, 11:44 PM
hello i have a Lua for backpacks to be minimized i use but sometimes when i look back at tibia it says "do you want to leave tibia?"
never happened before i added this backpack minimize i have it saved as a seperate lua named *Backpack minimize* that i load with my scripts
anyone have a clue why its causing the message in tibia to come up asking if i want to leave?

dofile("Forgee.lua")
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")

function onWalkerSelectLabel(labelName)
if (labelName == "BackpackReset") then
setWalkerEnabled(false)
resetBackpacks()
setWalkerEnabled(true)
end

local indexes = Container.GetAll()
for i = 1, #indexes do
Container.New(indexes[i]):Minimize()
wait(400, 800)

end
end

Sponx
05-01-2013, 09:50 PM
minimizeAll = true --set to false if you only want to minimize specific containers
minimize = {"Camouflage Backpack", "Beach Backpack", "Brocade Backpack",} --specify the container names of the containers you want to minimize (only used if minimizeAll is set to false)
hideEquipment = true --set to false if you don't want to hide equipment
waitTime = {200,400}


--don't change this line! \/--
if(minimizeAll) then minimize = Container.GetIndexes() end --don't change this line!--
--don't change this line! /\--

while(true) do
if(hideEquipment) then Client.HideEquipment() end
wait(waitTime[1],waitTime[2])

for i=1, #minimize do
if(minimizeAll) then cont = Container.GetFromIndex(minimize[i])
else cont = Container.GetByName(minimize[i])
end
cont:Minimize()
wait(waitTime[1],waitTime[2])
end
end

I use this to minimize my backpacks. It's good because you can minimize them all, or choose specific backpacks if you only want your gold backpack, for example, minimized.

popit
05-02-2013, 11:17 AM
anyone can help me? sometimes when it reaches BackpackReset label it doesnt minimize all backpacks sometimes it minimizes no backpacks, sometimes it minimizes 1 backpack, sometimes it minimizes all backpacks and sometimes when i look back the bot is running around with "are you sure you want to leave tibia?" on the screen like its trying to exit tibia xD only happened since i added this minimize to my script and i need it cause i need more room for bps of loot hehe