He wants to move an ammount of spears so he has exactly 200 on what you named 'to' bp, wouldnt your script move 100, even if for example its 112 bps so it'd be 212 on the 'to' bp?
Originally Posted by soder
this is pretty much a mix between soder and mine idea, try it out
local fromBP = 'Purple Backpack'
local toBP = 'Pirate Backpack'
local currentspears = itemcount(spear,toBP)
local spearstomove = (200-currentspears)
if (itemcount('spear', fromBP) > 0
then moveitems(spear, fromBP, toBP, spearstomove)