Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main()
- {
- variable index:item TransferItem_CargoIndex
- variable iterator TransferItem_CargoIndex_Iterator
- if !${Me.InStation}
- {
- echo ${Time}: You must be docked before running this script!
- Script:End
- }
- ;//NOTE: Uncomment the source location and comment out the other location.
- ;//Transfer From Ore Hold
- ;MyShip:GetOreHoldCargo[TransferItem_CargoIndex]
- ;//Transfer From Fleet Hangar
- MyShip:GetFleetHangarCargo[TransferItem_CargoIndex]
- TransferItem_CargoIndex:GetIterator[TransferItem_CargoIndex_Iterator]
- if ${TransferItem_CargoIndex_Iterator:First(exists)}
- {
- do
- {
- ;//This will only transfer asteroids because asteroid category ID is 25.
- if ${TransferItem_CargoIndex_Iterator.Value.CategoryID} == 25
- {
- echo ${Time}: ---------- Item #${TransferItem_CargoIndex_Iterator.Key} of ${TransferItem_CargoIndex.Used} [${TransferItem_CargoIndex_Iterator.Value}] ----------
- echo ID: ${TransferItem_CargoIndex_Iterator.Value.ID}
- echo Category: ${TransferItem_CargoIndex_Iterator.Value.Category}
- echo CategoryID: ${TransferItem_CargoIndex_Iterator.Value.CategoryID}
- echo Group: ${TransferItem_CargoIndex_Iterator.Value.Group}
- echo GroupID: ${TransferItem_CargoIndex_Iterator.Value.GroupID}
- echo Location: ${TransferItem_CargoIndex_Iterator.Value.Location}
- echo LocationID: ${TransferItem_CargoIndex_Iterator.Value.LocationID}
- echo Volume/Single Item: ${TransferItem_CargoIndex_Iterator.Value.Volume}
- echo Quantity: ${TransferItem_CargoIndex_Iterator.Value.Quantity}
- echo Volume/Stack: ${Math.Calc[${TransferItem_CargoIndex_Iterator.Value.Volume}*${TransferItem_CargoIndex_Iterator.Value.Quantity}]}
- echo -------------------------------------------------
- ;//NOTE: Where do you want to move it to?
- ;//OreHold
- ;ToLocation = MyShip
- ;ToDestination = OreHold
- ;//Fleet Hangar
- ;ToLocation = MyShip
- ;ToDestination = FleetHangar
- ;//Station Hangar
- ;ToLocation = MyStationHangar
- ;ToDestination = Hangar
- ;//TransferItem_CargoIndex_Iterator.Value:MoveTo[ToLocation,ToDestination]
- TransferItem_CargoIndex_Iterator.Value:MoveTo[MyStationHangar,Hangar]
- }
- waitframe
- }
- while ${TransferItem_CargoIndex_Iterator:Next(exists)}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement