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: Question about raidbot  (Read 5223 times)

0 Members and 1 Guest are viewing this topic.

Offline Sputnik

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Question about raidbot
« on: January 20, 2005, 12:12:23 am »
Well i understand the reason for having it to members only. but what if i wanted the bot to be an open raidbot that you dont have to be a member to join.  Is there any way to disable this need to be a member of the bot function?

Offline Nesi

  • BeBot User
  • **
  • Posts: 55
  • Karma: +0/-0
Question about raidbot
« Reply #1 on: January 20, 2005, 12:29:04 am »
In Bot.php under :

/*
      Check if person is a member of the bot
    */
    function is_member($uname)
    {
      $result = $this -> db -> select("SELECT nickname FROM members WHERE id = " . $this -> aoc -> get_uid($uname));
      if (!empty($result))
        return 1;
         
         $result = $this -> db -> select("SELECT id FROM guests WHERE id = " . $this -> aoc -> get_uid($uname));
      if (!empty($result))
        return 2;

      return false;
    }


edit the Return false to Return true, that should do it.

Offline Sputnik

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Question about raidbot
« Reply #2 on: January 20, 2005, 03:47:58 am »
Worked great thanks for the quick reply.

Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Question about raidbot
« Reply #3 on: March 12, 2005, 01:23:24 am »
When having a guild this will bug the rooster update and IS command... so I just edited the prvgroup so anyone could join and they have no access to anything else anymore
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

 

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