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
-
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):
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:
<img src=rdb:// $profgfx >
to whois page definition but Im 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?
-
It's in core/aoc/Whois.php
The function you are looking for is whois_details().
It should be pretty self-explanatory.
-
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:
<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
-
I've been trying to get this worked out. If I figure it out I will post.
-
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.
-
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?
-
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.
-
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
-
Is this module done and were can I get it?
-
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.
-
I just started playing again. I have to rewrite the functions for this to display properly.