collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: How to get character name from char-ID?  (Read 3407 times)

0 Members and 1 Guest are viewing this topic.

Offline lulifuz

  • BeBot User
  • **
  • Posts: 40
  • Karma: +0/-0
How to get character name from char-ID?
« on: August 29, 2007, 05:54:01 pm »
Hi there,

in my guestlist only the char-IDs are stored (for what reason ever).
Is there a way to retrive the char name?
I have tried the get_uname function from AOChat.php but most of the time I get a -1 returned.
Does somebody have an idea about this or is there any other way to get the name?

Thank you all.

Regards,

 Lulifuz

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: How to get character name from char-ID?
« Reply #1 on: August 29, 2007, 07:28:31 pm »
There are only two ways to get character names out of IDs:
  • Use the get_uname() - but this will only work if the ID is of a character on the buddy list. It may work for characters that were checked via get_uid() since the last time the bot was started, but not 100% sure here.
  • Use some database of IDs that got the name. A modern and updated whois cache may work, but anything else too.
If none of that is available there sadly is no way that I know of.

Offline lulifuz

  • BeBot User
  • **
  • Posts: 40
  • Karma: +0/-0
Re: How to get character name from char-ID?
« Reply #2 on: August 29, 2007, 10:24:03 pm »
Thanks Alreadythere.
If there was some online cache you would have mentioned it, I assume.
I was hoping there was a connection like with the org ID on the FC website.
Maybe I can make a list of the 'most likely' candidates and try my luck.

Regards,

 lulifuz

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: How to get character name from char-ID?
« Reply #3 on: August 30, 2007, 01:12:07 am »
get_uid() calls are fairly cheap, so if you can narrow it down a bit make a list of character names, put them into some table, and just look all the ids up.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 106
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal