Project

General

Profile

Bug #1221

GetCargoScannerResults

Added by rogeruk about 10 years ago. Updated about 9 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
broken feature(s)
vbulletin_issue_id:

Description

Using GetCargoScannerResults on a target gives the wrong information about the cargo.

               if ${Target.Value.HasCargoScannerResults}
                {
                    Target.Value:GetCargoScannerResults[CargoResult]
                    echo "${CargoResult.Used} Items"
                     CargoResult:GetIterator[Cargo]    
                     if ${Cargo:First(exists)}
                     {
                         do                     
                        {    
                            echo ${Cargo.Value.Type}
                        }  
                        while ${Cargo:Next(exists)}      
                    }
                }

The target had this in their cargo:

1 Expanded Cargohold II
1 Reinforced Bulkheads II
1 Reinforced Bulkheads II
1 Expanded Cargohold II
1 Expanded Cargohold II
1 Amarr Shuttle
1 Reinforced Bulkheads II

but the script reported

7 Items
Expanded Cargohold II
Expanded Cargohold II
Expanded Cargohold II
Expanded Cargohold II
Expanded Cargohold II
Expanded Cargohold II
Expanded Cargohold II

Also available in: Atom PDF