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: Auto invite when logon  (Read 3188 times)

0 Members and 1 Guest are viewing this topic.

Offline Oplink

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Auto invite when logon
« on: February 02, 2005, 08:38:24 pm »
Would like a module that auto invite members when they log on.

Offline iriche

  • BeBot Rookie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: Auto invite when logon
« Reply #1 on: February 02, 2005, 09:21:29 pm »
Quote from: "Oplink"
Would like a module that auto invite members when they log on.


Noobie I can write that to you :)
For you special! ;D

Offline Oplink

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Auto invite when logon
« Reply #2 on: February 02, 2005, 09:36:29 pm »
get to work then :p

Offline iriche

  • BeBot Rookie
  • *
  • Posts: 16
  • Karma: +0/-0
Auto invite when logon
« Reply #3 on: February 02, 2005, 09:37:34 pm »
Quote from: "Oplink"
get to work then :p


FU im eating fried potato thingies! ;D

Offline Oplink

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Auto invite when logon
« Reply #4 on: February 02, 2005, 10:35:36 pm »
Quote from: "iriche"
Quote from: "Oplink"
get to work then :p


FU im eating fried potato thingies! ;D


hehe :)

Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
Auto invite when logon
« Reply #5 on: February 03, 2005, 01:15:03 pm »
Thats an easy one.
This should work, just quickly whipped it together - no time to test it I'm afraid. :(
Just save it as AutoInv.php in your "modules" directory.

Code: [Select]
<?
  /*
   * AutoInv.php - Module to auto invite members.
   *
   * BeBot - An Anarchy Online Chat Automaton
   * Copyright (C) 2004-2005 Jonas Jax
   *
   * Developed by Blondengy (RK1)
   * Special thanks goes out to Khalem (RK1) for his support.
   */
   
  /*
    Add a "_" at the beginning of the file (_ClassName.php) if you do not want it to be loaded.
  */
 
  $AutoInv = new AutoInv($bot);

  $commands["buddy"][] = &$AutoInv;




  /*
    The Class itself...
  */
  class AutoInv
  {
    var $bot;
   
   

    /*
      Constructor:
        Hands over a referance to the "Bot" class.
    */
    function AutoInv (&$bot)
    {
      $this -> bot = &$bot;
    }



    /*
      This gets called if a buddy logs on/off
    */
    function buddy($name, $msg)
    {
      if ($this -> bot -> is_member($name) && ($msg == 1))
$this -> bot -> aoc -> privategroup_invite($name);
    }
  }
?>

Offline iriche

  • BeBot Rookie
  • *
  • Posts: 16
  • Karma: +0/-0
Auto invite when logon
« Reply #6 on: February 03, 2005, 01:26:58 pm »
Quote from: "Blondengy"
Thats an easy one.
This should work, just quickly whipped it together - no time to test it I'm afraid. :(
Just save it as AutoInv.php in your "modules" directory.

Code: [Select]
<?
  /*
   * AutoInv.php - Module to auto invite members.
   *
   * BeBot - An Anarchy Online Chat Automaton
   * Copyright (C) 2004-2005 Jonas Jax
   *
   * Developed by Blondengy (RK1)
   * Special thanks goes out to Khalem (RK1) for his support.
   */
   
  /*
    Add a "_" at the beginning of the file (_ClassName.php) if you do not want it to be loaded.
  */
 
  $AutoInv = new AutoInv($bot);

  $commands["buddy"][] = &$AutoInv;




  /*
    The Class itself...
  */
  class AutoInv
  {
    var $bot;
   
   

    /*
      Constructor:
        Hands over a referance to the "Bot" class.
    */
    function AutoInv (&$bot)
    {
      $this -> bot = &$bot;
    }



    /*
      This gets called if a buddy logs on/off
    */
    function buddy($name, $msg)
    {
      if ($this -> bot -> is_member($name) && ($msg == 1))
$this -> bot -> aoc -> privategroup_invite($name);
    }
  }
?>


Yeah, That will invite ALL memhers (it wilo not work so good in a guildbot) I was going to check if is_guest ($name) not sure if that command exists ;)

Offline Oplink

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Auto invite when logon
« Reply #7 on: February 03, 2005, 02:17:00 pm »
works great... thanks :)

 

* 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: 643
  • 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