These forums have been archived and are now read-only.
The new forums are live and can be found at https://forums.eveonline.com/
[Help Request] Assets and citadels
Creator of jEveAssets - the asset manager
"Download is the meaning of life, upload is the meaning of intelligent life"
@CCP_FoxFour // Technical Designer // Team Tech Co
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
Operations Director of Hard K(n)ocks Inc.
http://evernus.com - the ultimate multiplatform EVE trade tool + nullsec Alliance Market tool
Various projects I enjoy putting my free time into:
https://zkillboard.com | https://evewho.com
Account.all.each do |account| url = "https://api.eveonline.com/char/AssetList.xml.aspx?keyID=#{account.keyID}&vCode=#{account.vCode}&characterid=#{account.characterID}&flat=1" doc = Nokogiri::XML(open(url)) doc.xpath('//row').each do |row| rawQuantity = if row.xpath('@rawQuantity').present? row.xpath('@rawQuantity').first.value else 0 end asset_list << Asset.new( characterID: account.characterID, itemID: row.xpath('@itemID').first.value, locationID: row.xpath('@locationID').first.value, typeID: row.xpath('@typeID').first.value, categoryID: Item.find(row.xpath('@typeID').first.value).category.categoryID, quantity: row.xpath('@quantity').first.value, flag: row.xpath('@flag').first.value, singleton: row.xpath('@singleton').first.value, rawQuantity: rawQuantity ) endend