L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 04:08:33 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Module Requests > Topic: Auto invite when logon
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Auto invite when logon  (Read 712 times)
0 Members and 1 Guest are viewing this topic.
Oplink
Freshman
*
Offline Offline

Posts: 6


Auto invite when logon
« on: February 02, 2005, 02:38:24 PM »

Would like a module that auto invite members when they log on.
Logged
iriche
Freshman
*
Offline Offline

Posts: 16


Re: Auto invite when logon
« Reply #1 on: February 02, 2005, 03: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 Smiley
For you special! Grin
Logged
Oplink
Freshman
*
Offline Offline

Posts: 6


Auto invite when logon
« Reply #2 on: February 02, 2005, 03:36:29 PM »

get to work then :p
Logged
iriche
Freshman
*
Offline Offline

Posts: 16


Auto invite when logon
« Reply #3 on: February 02, 2005, 03:37:34 PM »

Quote from: "Oplink"
get to work then :p


FU im eating fried potato thingies! Grin
Logged
Oplink
Freshman
*
Offline Offline

Posts: 6


Auto invite when logon
« Reply #4 on: February 02, 2005, 04:35:36 PM »

Quote from: "iriche"
Quote from: "Oplink"
get to work then :p


FU im eating fried potato thingies! Grin


hehe Smiley
Logged
Blondengy
BeBot Creator and Founder
Administrator
Rookie
********
Offline Offline

Posts: 50


Auto invite when logon
« Reply #5 on: February 03, 2005, 07:15:03 AM »

Thats an easy one.
This should work, just quickly whipped it together - no time to test it I'm afraid. Sad
Just save it as AutoInv.php in your "modules" directory.

Code:
<?
  /*
   * 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);
    }
  }
?>
Logged
iriche
Freshman
*
Offline Offline

Posts: 16


Auto invite when logon
« Reply #6 on: February 03, 2005, 07:26:58 AM »

Quote from: "Blondengy"
Thats an easy one.
This should work, just quickly whipped it together - no time to test it I'm afraid. Sad
Just save it as AutoInv.php in your "modules" directory.

Code:
<?
  /*
   * 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 Wink
Logged
Oplink
Freshman
*
Offline Offline

Posts: 6


Auto invite when logon
« Reply #7 on: February 03, 2005, 08:17:00 AM »

works great... thanks Smiley
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Module Requests > Topic: Auto invite when logon
« previous next »
 
Jump to:  

Recent
Log playtime from buddys ...
by Temar
[Today at 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]

Delete member from Bot al...
by Alreadythere
[November 14, 2008, 12:17:54 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11034
Total Topics: 1495
Online Today: 15
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 3
Guests: 13
Total: 16
Zeephonz
bmoscato
xlDanek

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.543 seconds with 28 queries. (Pretty URLs adds 0.026s, 4q)
Loading...