 Emilio Salgari wrote two series of adventure novels, set in Malaysia  and India, and the screenplay mixed them. The Malaysian pirates  throw themselves at a run trough the jungle and in a few minutes  arrive to India for helping Hindi rebels fighting against British  troops.