BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => BeBot Hyborian modules => Topic started by: rmb on June 02, 2009, 11:35:00 pm

Title: Profession image in whois details
Post by: rmb on June 02, 2009, 11:35:00 pm
I have notice that there is "fancy" option for online, that suppose to show little image for each profession. Right now it does not work for AoC because there are some fake  (or simple wrong) rdb reference for images .

Using a RDBdata extractor tool and some experiments I manage to find proper way to link images from rdb files. Unfortunately in my opinion they are a bit too big for online list.


But I have a feeling that they would look good on whois page. The problem is I have no idea how the whois page content is created in whois.php file (in OnlineDisplay.php it looks much easier).

I know I should  define images for each profession (similar to OnlineDisplay.php):
Code: [Select]
if($this -> bot -> game == "aoc")
{
$profgfx["Barbarian"] = "149766 - $0A6F9324";
$profgfx["Guardian"] = "149708 - $0A6F55D4";
$profgfx["Conqueror"] = "262153 - $22BEBA6C";
$profgfx["Priest of Mitra"] = "261998 - $0AA31B30";
$profgfx["Tempest of Set"] = "3777448 - $2DC5DC6C";
$profgfx["Bear Shaman"] = "299131 - $0AC5D5AC";
$profgfx["Dark Templar"] = "262205 - $0AB19CEC";
$profgfx["Assassin"] = "318958 - $0AC612AC";
$profgfx["Ranger"] = "150173 - $0A702FE0";
$profgfx["Necromancer"] = "3913093 - $3F5A2698";
$profgfx["Herald of Xotli"] = "262032 - $0AA5813C";
$profgfx["Demonologist"] = "261899 - $0A9AE994";
(notice that here are working image id, not those form original OnlineDisplay.php )

I should then add:
Code: [Select]
<img src=rdb:// $profgfx >to whois page definition but I’m not sure where exactly the content is defined In whois.php. 


Could some one skilled in php explain me how and where I should modify bot files to show those images?
Title: Re: Profession image in whois details
Post by: Alreadythere on June 03, 2009, 11:25:18 pm
It's in core/aoc/Whois.php

The function you are looking for is whois_details().

It should be pretty self-explanatory.
Title: Re: Profession image in whois details help
Post by: alekseyvip on April 16, 2010, 07:03:22 pm

Code: [Select]
if($this -> bot -> game == "aoc")
{
$profgfx["Barbarian"] = "149766 - $0A6F9324";
$profgfx["Guardian"] = "149708 - $0A6F55D4";
$profgfx["Conqueror"] = "262153 - $22BEBA6C";
$profgfx["Priest of Mitra"] = "261998 - $0AA31B30";
$profgfx["Tempest of Set"] = "3777448 - $2DC5DC6C";
$profgfx["Bear Shaman"] = "299131 - $0AC5D5AC";
$profgfx["Dark Templar"] = "262205 - $0AB19CEC";
$profgfx["Assassin"] = "318958 - $0AC612AC";
$profgfx["Ranger"] = "150173 - $0A702FE0";
$profgfx["Necromancer"] = "3913093 - $3F5A2698";
$profgfx["Herald of Xotli"] = "262032 - $0AA5813C";
$profgfx["Demonologist"] = "261899 - $0A9AE994";
OnlineDisplay.php

I should then add:
Code: [Select]
<img src=rdb:// $profgfx >
hi.
plz help me.where add this text on whois.php and onlinedisplay.php files.
pls ask me.or send me this two works files.
THX
Title: Re: Profession image in whois details
Post by: risenlore on June 19, 2010, 02:35:17 am
I've been trying to get this worked out. If I figure it out I will post.
Title: Re: Profession image in whois details
Post by: risenlore on June 21, 2010, 08:03:01 pm
I have my !online list sorted. Looks good now.
http://i184.photobucket.com/albums/x64/mtsaint/online.png

Writing profession image details in !whois should be easy.
Title: Re: Profession image in whois details
Post by: Khalem on June 21, 2010, 11:01:49 pm
Nice work.

The images do seem a tad oversized for Online listing. I don't suppose there are any smaller ones in the database that could be used instead?
Title: Re: Profession image in whois details
Post by: risenlore on June 22, 2010, 03:48:06 am
I have been trying to get the class members to display to the right of the class icon rather than underneath it.         
                           [members online]

                       [-------]  1.xteam_member
Profession-->  [        ]  2.xteam member
       image        Barbarian

 I think that would clean up the look a bit. I dont know if there are smaller icons than those I have been looking in the rbd archive but there a ton of entries.

I will  write a plugin for whois to display profgfx as soon as I get my online list cleaned up.
Title: Re: Profession image in whois details
Post by: Drizzurdeen on June 21, 2011, 10:44:17 am
I have my !online list sorted. Looks good now.
http://i184.photobucket.com/albums/x64/mtsaint/online.png

Writing profession image details in !whois should be easy.

hey ... nice one ... do u have the rewriten mod for me psl ;)

greetz
Title: Re: Profession image in whois details
Post by: Bamsina on October 07, 2011, 07:16:38 pm
Is this module done and were can I get it?
Title: Re: Profession image in whois details
Post by: Bamsina on December 13, 2011, 08:14:46 pm
Ever get the Newo ne posted?

I have been trying to get the class members to display to the right of the class icon rather than underneath it.         
                           [members online]

                       [-------]  1.xteam_member
Profession-->  [        ]  2.xteam member
       image        Barbarian

 I think that would clean up the look a bit. I dont know if there are smaller icons than those I have been looking in the rbd archive but there a ton of entries.

I will  write a plugin for whois to display profgfx as soon as I get my online list cleaned up.
Title: Re: Profession image in whois details
Post by: risenlore on February 20, 2012, 07:14:45 am
I just started playing again. I have to rewrite the functions for this to display properly.
SimplePortal 2.3.7 © 2008-2024, SimplePortal