Bug #1215
Item:GetInsuranceQuotes not working
Status:
Feedback Required
Priority:
Normal
Assignee:
Administrators
Category:
broken feature(s)
vbulletin_issue_id:
Description
SXEVE: Warning - Unknown container type (collection) specified
nsurance Quotes for  xxxxxx's Tornado 4310
 Platinum Cost: NULL
lose and re-open the insurance window, and the ship should now
esting of method Item:Insure completed in 1.500000 seconds
Using the below script:
function main()
{
	variable int StartTime = ${Script.RunningTime}
	variable int EndTime
	declarevariable HangarShips index:item script
	variable collection:float Quotes
	EVE:Execute[OpenShipHangar]
	wait 15
	Me.Station:GetHangarShips[HangarShips]
	echo "Me.Station:GetHangarShips returned ${HangarShips.Used} ships"
	variable int i
	for (i:Set[1]; ${i} <= ${HangarShips.Used}; i:Inc)
	{
		if ${HangarShips.Get[${i}].TypeID} == 4310
		{
			HangarShips.Get[${i}]:GetInsuranceQuotes[Quotes]
			echo "Insurance Quotes for ${HangarShips.Get[${i}].Name} ${HangarShips.Get[${i}].TypeID}"
			echo " " Platinum Cost: ${Quotes.Element["Platinum"]}
			HangarShips.Get[${i}]:Insure[${Quotes.Element["Platinum"]}]
		}
	}
	echo "Close and re-open the insurance window, and the ship should now be insured"
	EndTime:Set[${Script.RunningTime}]
	echo "Testing of method Item:Insure completed in ${Math.Calc[(${EndTime}-${StartTime}) / 1000]} seconds"
}