Guys, I know I have many doubts, but I am new in iBot, I apologize for the inconvenience, but I'm using this action of a fellow forum, in which case shouldst transfer potions MainBP for PotionBp, but he did not transfer anything, anyone know where this Action is wrong?

hugs

closewindows()
wait(500, 1000)
openitem(MainBP, 'back')
wait(500, 1000)
resizewindows()
while itemcount(MPname) > 0 do
closewindows()
wait(500, 1000)
openitem(MainBP, 'back')
wait(500, 1000)
resizewindows()
wait(500, 1000)
openitem(PotionsBP, MainBP, true)
wait(500, 1000)
resizewindows()
wait(500,900)
moveitems(MPname, MainBP, PotionsBP, 100)
wait(500,900)
closewindow(PotionsBP)
end
wait(500,900)
while itemcount(HPname) > 0 do
closewindows()
wait(500, 1000)
openitem(MainBP, 'back')
wait(500, 1000)
resizewindows()
wait(500, 1000)
openitem(PotionsBP, MainBP, true)