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

Title: Modifying privategroup
Post 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.

:)
Title: Modifying privategroup
Post by: Zacix on October 17, 2005, 04:10:37 pm
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.
Title: Modifying privategroup
Post by: Plac3bo on October 17, 2005, 05:46:29 pm
I dont have a notify in my modles dir ...
Title: Modifying privategroup
Post by: Xenixa on October 17, 2005, 07:42:05 pm
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:
Code: [Select]
   /*
      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
Title: Modifying privategroup
Post by: Zarkingu on October 17, 2005, 07:51:08 pm
Open your \Anarchy Online\cd_image\gui\Default\TextColors.xml as Xenixa said.
Find the line with
Code: [Select]

<HTMLColor name="ctch_pgroup" color="" />

and set the color you want.

Expample from my TextColors.xlm file:
Code: [Select]

<HTMLColor name="ctch_pgroup" color="0x00a651" />

That makes the Private Group color dark green.
Title: Modifying privategroup
Post by: Plac3bo on October 18, 2005, 11:07:57 am
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.
Title: Modifying privategroup
Post by: Xenixa on October 19, 2005, 05:01:50 am
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.
Title: Modifying privategroup
Post by: Plac3bo on October 19, 2005, 11:22:03 am
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?
Title: Modifying privategroup
Post by: Xenixa on October 19, 2005, 12:36:16 pm
That's the code bit for Logging joins/parts in the Log.txt
Title: Modifying privategroup
Post by: Xenixa on October 19, 2005, 01:16:17 pm
Disreguard all that.. I totally forgot Crazied already did this.

http://www.craized.net/junk/bebot/highlight.php?Notify

Download the .zip from there
SimplePortal 2.3.7 © 2008-2025, SimplePortal