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
- variable int64 _EntityID
- if ${Me.ActiveTarget.ID} == 0
- {
- echo ${Time}: You must have an active target before running this script!
- Script:End
- }
- _EntityID:Set[${Me.ActiveTarget.ID}]
- Entity[${_EntityID}]:GetCargo[TransferItem_CargoIndex]
- TransferItem_CargoIndex:GetIterator[TransferItem_CargoIndex_Iterator]
- if ${TransferItem_CargoIndex_Iterator:First(exists)}
- {
- do
- {
- 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 -------------------------------------------------
- TransferItem_CargoIndex_Iterator.Value:MoveTo[MyShip,OreHold]
- }
- waitframe
- }
- while ${TransferItem_CargoIndex_Iterator:Next(exists)}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement