collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Modifying privategroup  (Read 2461 times)

0 Members and 1 Guest are viewing this topic.

Offline Plac3bo

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Modifying privategroup
« 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.

:)

Offline Zacix

  • Contributor
  • *******
  • Posts: 73
  • Karma: +0/-0
Modifying privategroup
« Reply #1 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.
Zacix
Current projects:
RINGBot, BeBot branch
Neutnet, RK2 Neutral massmessage network

Offline Plac3bo

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Modifying privategroup
« Reply #2 on: October 17, 2005, 05:46:29 pm »
I dont have a notify in my modles dir ...

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Modifying privategroup
« Reply #3 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
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline Zarkingu

  • Contributor
  • *******
  • Posts: 34
  • Karma: +0/-0
Modifying privategroup
« Reply #4 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.
Zarkingu 210 MP RK2

Offline Plac3bo

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Modifying privategroup
« Reply #5 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.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Modifying privategroup
« Reply #6 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.
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline Plac3bo

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Modifying privategroup
« Reply #7 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?

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Modifying privategroup
« Reply #8 on: October 19, 2005, 12:36:16 pm »
That's the code bit for Logging joins/parts in the Log.txt
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Modifying privategroup
« Reply #9 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
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 747
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal