BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Plac3bo on October 17, 2005, 10:13:06 am
-
I have a raid bot, and I want to modify the line when someone joins the private group.
Instead of like:
Drdyrego joined the group.
I would like it to state prof, level, guild.
It would also be great to change the color of the chat in the privategroup.
:)
-
You should have a notify.php or something among your modules. have a look in the join method there.
As for color of the private group, not possible to change.
-
I dont have a notify in my modles dir ...
-
Actually the color in the Privategroup/Guest chat is possible to change if your running it as a Guild Bot.
Look in Relay_GUILD.php for the following: /*
This gets called on a msg in the group
*/
function gmsg($name, $group, $msg)
{
if (strtolower($name) != strtolower($this -> bot -> botname))
$this -> bot -> send_pgroup("[Guild] $name:</font><font color=#cccccc> $msg");
}
/*
This gets called on a msg in the privgroup without a command
*/
function privgroup($name, $msg)
{
if (strtolower($name) != strtolower($this -> bot -> botname))
$this -> bot -> send_gc("[Guest] $name:</font><font color=#cccccc> $msg<font color=#ffff00>");
}
The Font tag just before $msg is what you'd want to change.
As for being strictly a Raid bot I think your stuck with the White color of Private channels unless you edit your local copy of \Anarchy Online\cd_image\gui\Default\TextColors.xml
-
Open your \Anarchy Online\cd_image\gui\Default\TextColors.xml as Xenixa said.
Find the line with
<HTMLColor name="ctch_pgroup" color="" />
and set the color you want.
Expample from my TextColors.xlm file:
<HTMLColor name="ctch_pgroup" color="0x00a651" />
That makes the Private Group color dark green.
-
Cool :)
Ill change the color in my config then, cause all the white text tends to dissapear :)
Anyone have an idea how to change the text with nickname has joined the group?
Most raidbots would benefit from listing Nick, profession, level and guild.
-
I believe the Join/Part messages in Private Groups are produced by the chat servers.
One way to test would be while logged in is to invite someone you know to your own private chat channel.
-
I was reading in Bot.php, and found something that could be it on line 426.
But im not able to modify it myself, my head just starts blocking out code :)
any ideas?
-
That's the code bit for Logging joins/parts in the Log.txt
-
Disreguard all that.. I totally forgot Crazied already did this.
http://www.craized.net/junk/bebot/highlight.php?Notify
Download the .zip from there