Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Kronus Heilgar
Dreddit Test Alliance Please Ignore
10
|
Posted - 2013.07.08 03:34:00 -
[1] - Quote
Problem: I have a character ID, and I need to determine whether it is an NPC or a player character. I cannot do this via the CharacterInfo API because it returns a "bad request", and I do not desire being blacklisted.
Someone mentioned in a different post that it may be possible using the SDE, but I have explored that and only see Agent NPCs in it.
Can anyone think of a good way to do this?
Thanks! This is not the signature you're looking for. |
ItsmeHcK1
Kicked. Shadow Cartel
74
|
Posted - 2013.07.08 18:21:00 -
[2] - Quote
Easiest way is definitely calling CharacterInfo.
CCP Prism X also recently added typeID's to a lot of API calls recently, more information here.
If you must insist on doing it the hard way, then the most helpful tip I can give you is this: All ID's used to be in certain ranges. I don't have the exact ranges ready right now, but it's something like this:
1000000 - 1100000 = NPC corps 90000000 - 9xxxxxxx = characters 98000000 - 9xxxxxxx = corps
This stopped being true a while ago though, so it will not work out most of the time. You should really be using Prism's new stuffs. |
Kronus Heilgar
Dreddit Test Alliance Please Ignore
10
|
Posted - 2013.07.09 17:26:00 -
[3] - Quote
The typeIDs are great, except they're not on every API. For example, if all I have is a characterID, and I want to find the CEO of his corporation. The normal progression for this would be: - call CharacterInfo to get CorpID - call CorporationSheet to get CeoID - call CharacterInfo to get Ceo's info
And the problem is when the original character is in an NPC corp, meaning his CEO is an NPC. I can't rely on using the SDE because only agent NPCs are in there.
For a large application, would calling CharacterInfo with NPC ids (getting a "bad request" response) regularly lead to blacklisting? This is not the signature you're looking for. |
ItsmeHcK1
Kicked. Shadow Cartel
74
|
Posted - 2013.07.10 08:58:00 -
[4] - Quote
Not unless you do it 500 times a minute... Generally, unless you literally have 10 threads going 24/7, you're good.
As for NPC corps, those are still in the ranges listed above. (Or heck, you could even compile a list quickly by simply copying them from Eve.) |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |