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.
 

Determing Item ID and SystemID in C#.NET with the EVE API

Author
Bastaardicious
Deep Core Mining Inc.
Caldari State
#1 - 2012-07-03 14:55:52 UTC
Hi Guys,

I'm trying to make my first C# application that does the following:

- Determine the quantity of product X that I have in System X;
- Compare the quantity in stock to the amount I need to build various ships.

Now, I'm trying to fill a listbox item with the quantity of Antimatter Reactor Unit's for a station in Mikhir. Can anyone help?

The code I have:

Quote:
public List amrListbox()
{

var antimattermikhir =
from a in api.GetCharacterAssets()
where a.TypeID == 39 && a.LocationID == 60005671
select a;

return antimattermikhir.ToList();

It has been a while since I have last messed around with this and I thought that I had determined that the corresponding ID for the system Mikhir was 60005671 but I cannot find it again anymore. As far as I know I found it somewhere while debugging my code and drilled down objects in the 'Locals' thing in Visual Studio.

Can anyone help or just tell me how to determine system and item ID's? I think i'll be able to figure out the calculating myself :)

Thanks!
Bas
TheSkeptic
Federal Navy Academy
Gallente Federation
#2 - 2012-07-04 08:45:20 UTC  |  Edited by: TheSkeptic
When I look in the db typeID 39 shows as Zydrine?

Try using typeID 11549

...