Lua in SpringRTS/Callins/StockpileChanged()

Return values
unitID, unitDefID, unitTeam, weaponNum, oldCount, newCount