It is indeed. Why though?
You need have also this
while windowcount("Depot Box I") == 0 do
opendepot()
waitping(3,4)
end
while windowcount(maindpbp) == 0 do
openitem(maindpbp, "Depot Box I")
wait(1000)
resizewindows(1000,maindpbp)
wait(300,500)
end
But maindpbp should be declared ;>
Well if you want to have depot remind then yes
for some reason when i skin a monster now the lootcount messes up, ill have looted 12 and it will tell me i have 30+
bot still opening false depot box... i was setup VII but but opening one time depot box 3, next time depot box XI.....
PHP Code:
setsetting('Cavebot/WalkThroughPlayers', 'no')
setfavoritedepot(7)
local extraitembp = getuseroption("SpearBP")
local Location = getuseroption("MainBP")
local AmmoNameS = getuseroption("AmmoName")
local AmmoID = itemid(AmmoNameS)
local AmmoToBuy = getuseroption("AmmoToBuy")
local CurrentAmmo = itemcount(AmmoNameS, Location) + $rhand.count
local AmmoAmount = AmmoToBuy - CurrentAmmo
setsetting('Looting/OpenNextBP', 'no')
waitping()
reopenbp()
while windowcount(extraitembp) == 0 do
while windowcount("depot box VII") == 0 do
opendepot()
wait(300,500)
end
while windowcount(extraitembp) == 0 do
openitem(extraitembp, "depot box VII", false)
wait(800,1000)
end
end
resizewindows(1, extraitembp)
wait(700,1000)
if itemcount(AmmoNameS, extraitembp) < 1 then
openitem(extraitembp, extraitembp, false)
if itemcount(AmmoNameS, extraitembp) < AmmoAmount and itemcount(extraitembp, extraitembp) == 0 and AmmoAmount > 0 then
printerror('BRAK AMUNICJI', $name)
wait(1000)
closeclient()
end
end
if AmmoAmount > 0 then
moveitems(AmmoNameS, 'rhand', extraitembp, AmmoAmount)
wait(500)
end
if AmmoAmount > 0 then
gotolabel("OpenBPS", $wptsection)
end
pra quem não conseguiu ainda pessoal: "pelomenos nos meus scripts está rodando"
setfavoritedepot(8)
opendepot()
wait(700,900)
openitem("depot chest", "locker")
wait(700,900)
openitem(MainDPBP)
depotdeposit_ib(StackableDPBP,"Tarantula Egg","Steel Helmet")
depotdeposit_ib(LootDPBP,"Tarantula Egg","Time Ring")
Yea I think, eventually, most scripters will do that. It's a simple way to make scripts feel easier/more well thought out. I've done it to the ones I use that are my own too, and ofcourse to most others I've hardcoded it into depot action. It feels unecessary to run it everytime though so I did like this;
local favDepot = 13
if($favoritedepot ~= favDepot) then
setfavoritdepot(favDepot)
end
Fav depo is awesome, just edited my scripts for facc pally to refil ammo from one of depot boxes
With the good quality of windbot right now, i really am excited for when 3.0 gets released , take your time and make it perfect