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

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

Author Topic: Help with prgoup !online  (Read 10782 times)

0 Members and 3 Guests are viewing this topic.

Offline Gwitz

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Help with prgoup !online
« on: March 21, 2006, 09:18:03 am »
Im currently using my bot for org and raid stuff, and iv been trying to get the !online command in privgroup to only show people in the pgroup and not people in the org. So far not much success, still newbie at php. Im using alreadytheres fancy online module. And i have another module thats only got pgroup functions. So if anyone has any idea :D

The other module is also very handy for raids because it has all the proffesion commands like !enf !doc ect. I was trying to combine the two, but i coulnt get that to work either.

posted the pgroup only module i have.

*edit attached it twice, oops ><
« Last Edit: March 21, 2006, 09:19:59 am by Gwitz »

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Help with prgoup !online
« Reply #1 on: March 21, 2006, 09:34:26 am »
It's Akarah's Online module (credit where credit is due!).

If you want to use both classes, you have to make sure that they got different object names, and the line $var = new OnlineXY($bot) has to have different variable names.
And you need to comment out the pgroup command define in the org bot online module.

For information about profs in the pgroup, you can use my count module too.
Just be warned:
Quote
Needs my color module, and uses my whois cache. And is using get_tablename too.

Offline Gwitz

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Help with prgoup !online
« Reply #2 on: March 21, 2006, 11:27:11 am »
Well, ill give that a try, oh and anyone got a !tell module i can ninja ^^? Where it spams the message a few times

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: Help with prgoup !online
« Reply #3 on: March 21, 2006, 04:09:02 pm »
You can also just remove/comment out the entire "show org online people" from online.php.

220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Help with prgoup !online
« Reply #4 on: March 21, 2006, 05:50:55 pm »
Well, ill give that a try, oh and anyone got a !tell module i can ninja ^^? Where it spams the message a few times
Here is a tell module

Offline Gwitz

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Help with prgoup !online
« Reply #5 on: March 22, 2006, 01:10:14 am »
It worked, wewt. I have both modules working together perfectly. I commented everything out in the core online to do with pgroup and changed the variables in the other one to chatlist. Thanks already for the tips. Now im wondering if i can have the core online still display people in the pgroup to the online message thats called in guildchat.
« Last Edit: March 22, 2006, 02:29:58 am by Gwitz »

Offline jokerjr

  • BeBot Rookie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Help with prgoup !online
« Reply #6 on: May 05, 2006, 02:46:22 am »
This is what I did to get an online for just people in the private group I just modified the Online.php file.

From this
Code: [Select]
/*
      This gets called on a msg in the privgroup with the command
    */
    function pgmsg($name, $msg)
    {
      if ($this -> bot -> is_member($name))
      {
        $disponline = (($this -> bot -> guildbot) ? "both": "pgroup");
        $this -> bot -> send_pgroup($this -> online_msg($msg, $disponline));
      }
    }

To this
Code: [Select]
  /*
      This gets called on a msg in the privgroup with the command
    */
    function pgmsg($name, $msg)
    {
         $disponline = "pgroup";
         $this -> bot -> send_pgroup($this -> online_msg($msg, $disponline));
    }

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


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


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

* Who's Online
  • Dot Guests: 152
  • 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