These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Api call to list a corp office location

Author
Dino Boff
The Scope
Gallente Federation
#1 - 2013-02-03 04:09:55 UTC
Hi,

Which API call can I use to list all the offices a corporation rents?

Also, is it possible in an AssetList result to know in which office hangar an item is located at?

Thanks for your help,

Dino.
Desmont McCallock
#2 - 2013-02-03 07:15:06 UTC
Dino Boff
The Scope
Gallente Federation
#3 - 2013-02-03 16:03:56 UTC  |  Edited by: Dino Boff
Even if an office is empty, it will be listed as a row with typeID 27. You can convert the locationID to a stationID:

http://wiki.eve-id.net/APIv2_Corp_AssetList_XML

So I can find all the office a corp rent...

However, I am not sure about the item location inside an office. The flag attribute should help there, but I find some offices have a flag for an office slot (flag 70 to 85) and some have a flag for hangar (4).

Also, why is there 16 office slot... there's only 7 corp hangar.

edit: to find where an item is in the office look at the item flag item self. Flag 4 if it's in the 1st division hangar, flag 116 to 121 for the next division.