Archive > BeBot Hyborian modules

Profession image in whois details

(1/3) > >>

rmb:
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: ---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";

--- End code ---
(notice that here are working image id, not those form original OnlineDisplay.php )

I should then add:

--- Code: --- <img src=rdb:// $profgfx >
--- End code ---
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?

Alreadythere:
It's in core/aoc/Whois.php

The function you are looking for is whois_details().

It should be pretty self-explanatory.

alekseyvip:

--- Quote from: rmb on June 02, 2009, 11:35:00 pm ---

--- Code: ---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";

--- End code ---
OnlineDisplay.php

I should then add:

--- Code: --- <img src=rdb:// $profgfx >
--- End code ---


--- End quote ---
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

risenlore:
I've been trying to get this worked out. If I figure it out I will post.

risenlore:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version