L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 10:54:54 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Coding and development discussion > Topic: How to get character name from char-ID?
Pages: [1]   Go Down
« previous next »
Print
Author Topic: How to get character name from char-ID?  (Read 279 times)
0 Members and 1 Guest are viewing this topic.
lulifuz
Rookie
**
Offline Offline

Posts: 32


How to get character name from char-ID?
« on: August 29, 2007, 10:54:01 AM »

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
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: How to get character name from char-ID?
« Reply #1 on: August 29, 2007, 12: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.
Logged
lulifuz
Rookie
**
Offline Offline

Posts: 32


Re: How to get character name from char-ID?
« Reply #2 on: August 29, 2007, 03: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
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: How to get character name from char-ID?
« Reply #3 on: August 29, 2007, 06:12:07 PM »

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.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Coding and development discussion > Topic: How to get character name from char-ID?
« previous next »
 
Jump to:  

Recent
!items database
by Zeephonz
[Today at 08:05:21 PM]

Log playtime from buddys ...
by IKShadow
[Today at 06:48:12 AM]

[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]
Stats
Members
Total Members: 1244
Latest: Armonkens
Stats
Total Posts: 11146
Total Topics: 1505
Online Today: 25
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 13
Total: 14
Vain

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.339 seconds with 28 queries. (Pretty URLs adds 0.023s, 4q)
Loading...