Well, Im doing the scripts fit me so I dont want to have an action that pushes the manas all the rather a action on the cavebot that makes it once since is not needed more times, at least on my case. So the action its closing bp's, opening main&supplies and then moving the manas from the main bp to the supplies, this action more or less should work as a continious action but if I make it as a waypoint how to make it loop as many times as necesary to move all the manas from the main to the supplies bp?
Edit: should something like this work?
if itemcount(ManaName, MainBP) > 0 and maround(7, false) == 0 and ((getcontainer(AmmoBP).maxslots - getcontainer(AmmoBP).usedslots) > 0) then
moveitems(ManaName, MainBP, AmmoBP, 100)
Thanks in advance!
if itemcount(ManaName, MainBP) > 0 then; moveitems(ManaName, MainBP, AmmoBP, 100)