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.
 

EVE API - Is a Character ID a player or an NPC?

Author
Lucas Kell
Solitude Trading
S.N.O.T.
#1 - 2011-12-11 14:14:06 UTC
Hi
Quick question for those of you in the know. Is there a fast way to determine if a given Character ID (say CEO of a corp) is a Player or an NPC?
If it's and NPC, it gives an error on the API when requesting character info, but I want to be able to filter out those NPCs before they cause errors, as beign blacklisted from the API isn't my idea of fun.

Thanks :)

The Indecisive Noob - EVE fan blog.

Wholesale Trading - The new bulk trading mailing list.

Shionoya Risa
The Xenodus Initiative.
#2 - 2011-12-11 14:19:45 UTC  |  Edited by: Shionoya Risa
Sure, there is a range of ID's that are NPC's starting at 3000000 and finishing somewhere before 4000000. I think that's the offical range written off for NPC's though.

I've forgotten the exact number where there are no longer any actual NPC's for the ID , but no doubt someone else knows. I've certainly never seen an ID for a player that small.
Lucas Kell
Solitude Trading
S.N.O.T.
#3 - 2011-12-11 14:26:08 UTC
Oh I see. Excellent. If anyone does know those numbers that would be awesome. So are there no characters below 3000000 do you know?
At the moment I've set it to ignore values below 4000000 as a temporary measure, as my server is spending half the time halting its updates to prevent errors leakign into the API calls.

The Indecisive Noob - EVE fan blog.

Wholesale Trading - The new bulk trading mailing list.

Max Kolonko
Caldari Provisions
Caldari State
#4 - 2011-12-11 14:30:26 UTC
Lucas Kell wrote:
Oh I see. Excellent. If anyone does know those numbers that would be awesome. So are there no characters below 3000000 do you know?
At the moment I've set it to ignore values below 4000000 as a temporary measure, as my server is spending half the time halting its updates to prevent errors leakign into the API calls.


I might be wrong, but i think static datadump have all npc ID's
Lucas Kell
Solitude Trading
S.N.O.T.
#5 - 2011-12-11 14:36:20 UTC
Yeah, I think you are right. I was hoping to avoid that though as I don't have it all set up at the moment. I can't even dup it straight to my server as that's mysql only.

The Indecisive Noob - EVE fan blog.

Wholesale Trading - The new bulk trading mailing list.

Desmont McCallock
#6 - 2011-12-11 17:42:50 UTC
Lucas Kell
Solitude Trading
S.N.O.T.
#7 - 2011-12-12 18:05:14 UTC
Thanks. Thats handy!

The Indecisive Noob - EVE fan blog.

Wholesale Trading - The new bulk trading mailing list.