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: Delete members from bot ( and their alts )  (Read 11081 times)

0 Members and 1 Guest are viewing this topic.

Offline snyder

  • BeBot User
  • **
  • Posts: 34
  • Karma: +0/-0
  • CRO guild
    • CRO Guild @ Crom
Delete members from bot ( and their alts )
« on: August 16, 2009, 02:52:56 pm »
i dont know if this exists or not, but since i didnt find it, i made my own member and alt delete script.

its small, simple, ugly, but works :)

http://www.cro-guild.com/razno/usermanager.zip
just run it from computer where bebot is.

you need to change 2 main things for this to work
database access
Code: [Select]
private $dbname = 'bebot'; // database name
private $dbpass = ''; // database password
private $dbuser = 'root'; // database username
private $dbserv = 'localhost';// database server

bot name in small letters
Code: [Select]
// bot name
private $botname = 'shonjo';

in include/usermanager.class.php

njoy, and feel free to make it even better and post updates!

bruno

Offline Jiheld

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Re: Delete members from bot ( and their alts )
« Reply #1 on: August 16, 2009, 06:54:46 pm »
hi m8, think it looks nice, but it doesnt work for me,

Quote
File: usermanager.class.php
Line: 57
Message: Error on query!!

SQL:
select count(u.id) as num from aocbot_users as u

MySQL error: Table 'bot.aocbot_users' doesn't exist

MySQL error number: 1146

The db name is bot.
the name of the bot is embot.

But in my DB

Quote
Server: localhost   Database: bot   Table: aocbot__users

I do something wrong?

thnx,

Jih.

Offline snyder

  • BeBot User
  • **
  • Posts: 34
  • Karma: +0/-0
  • CRO guild
    • CRO Guild @ Crom
Re: Delete members from bot ( and their alts )
« Reply #2 on: August 16, 2009, 07:35:58 pm »
wrong bot name? :)
if its embot then
Code: [Select]
Server: localhost   Database: bot   Table: [b]embot[/b]_users
post those 5 config lines

Offline Jiheld

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Re: Delete members from bot ( and their alts )
« Reply #3 on: August 16, 2009, 11:35:34 pm »
got it working, nice work m8 and thnx for the help.

Cheerz

Jih.

Offline snyder

  • BeBot User
  • **
  • Posts: 34
  • Karma: +0/-0
  • CRO guild
    • CRO Guild @ Crom
Re: Delete members from bot ( and their alts )
« Reply #4 on: September 02, 2009, 11:37:10 am »
updated with checkboxes for each alt char (when you select one from list to delete)
it should work (didnt test it yet, but it was minor change)

njoy,
bruno

Offline Jiheld

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Re: Delete members from bot ( and their alts )
« Reply #5 on: September 02, 2009, 12:28:01 pm »
Thanks for the change m8, i made it password protected, so not all people can delete people.

http://www.enragedmessiahs.nl/download/usermanager.rar

Just open password_protect.php and change the logins and passwords.

Cheerz Jih.


Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Delete members from bot ( and their alts )
« Reply #6 on: September 03, 2009, 07:54:16 am »
Haven't tested it, but sounds like a nice idea.

Just one sidenote: the changes won't be active for the bot until the next time the members and alts table are read into the caches again. Alts are done once per hours, I don't know about the members caches offhand though.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Delete members from bot ( and their alts )
« Reply #7 on: September 03, 2009, 10:16:00 am »
We should probably provide a way to force the bot to reload settings/cache in the future allowing for better integration with a web interface.
BeBot Founder and Fixer Kingpin

Offline snyder

  • BeBot User
  • **
  • Posts: 34
  • Karma: +0/-0
  • CRO guild
    • CRO Guild @ Crom
Re: Delete members from bot ( and their alts )
« Reply #8 on: September 03, 2009, 12:08:52 pm »
i updated script a little. now there is nothing to config in usermanager.class.php, all is written in config.php in root.

i added user login (sry jih :P) and users are also added in config.php

please report bugs if any :)

p.s. link is still same in first post

njoy,
bruno

 

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