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: modified alts  (Read 38146 times)

0 Members and 1 Guest are viewing this topic.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: modified alts
« Reply #45 on: October 13, 2006, 01:06:27 am »
- again small cosmetic fixes to alts.php

(above link applies).

-jj-

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: modified alts
« Reply #46 on: October 15, 2006, 03:28:18 am »
- again cosmetic fixes to alts.php:

(last seen online details will not show for people not in org,
online/offline will not show for people not on buddy list, i.e. works for guests too)

- fix for whois.php:

(!postit view <player> now works as intended)

http://www.jjones.co.uk/files/alts.php
http://www.jjones.co.uk/files/whois2.php (rename to whois.php)

« Last Edit: October 15, 2006, 03:31:06 am by jjones666 »

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: modified alts
« Reply #47 on: October 17, 2006, 01:24:34 am »
Just upgraded my bot to the alts and of course had to make the Roster changes as well. All worked great, and looks fantastic, thankyou.

Also if people switch to the Roster with builtin lastseen and want to keep all their timestamps and aren't mysql savvy, here's a command to move them over:

update members,last_seen set members.lastseen = last_seen.timestamp where members.nickname = last_seen.player;
Eternalist
General of The Syndicate

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: modified alts
« Reply #48 on: October 17, 2006, 01:48:36 am »
All credit to Xenixa who did the main work :-)  Btw, if you look on the last page of the Rooster_Guild update, there are some updates (again Xenixa's work that I changed a little) for autoinvite which work very well also, it only invites guests and not members (the original distributed module was somewhat bugged - I'm not sure if it still is).  Kinda useful if guildies have alts in other orgs or farm orgs with a notification in GC (linked to the alts table) of who is auto invited.

Glad you liked the setup.

Cheers,

-jj-

Offline neongen

  • BeBot User
  • **
  • Posts: 64
  • Karma: +0/-0
Re: modified alts
« Reply #49 on: October 22, 2006, 12:03:36 am »
hmmm where is the files? can't get them :(

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: modified alts
« Reply #50 on: October 22, 2006, 02:17:22 am »
appear to have problem with the domain name.

http://jjones.kicks-ass.net/files/alts.php

should work in the meantime :)

Offline neongen

  • BeBot User
  • **
  • Posts: 64
  • Karma: +0/-0
Re: modified alts
« Reply #51 on: October 23, 2006, 07:34:13 pm »
thx alot  :)

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: modified alts
« Reply #52 on: December 17, 2006, 04:06:41 pm »
rest of links
(http://bebot.link/index.php/topic,204.msg3369.html#msg3369)

- fix for whois.php

(!postit view <player> returned a blank line, instead of remarking that no record exists.)

http://www.jjones.co.uk/files/whois2.php (rename to whois.php)

Offline taconis

  • BeBot User
  • **
  • Posts: 34
  • Karma: +0/-0
Re: modified alts
« Reply #53 on: December 28, 2006, 07:49:19 pm »
Ok.  I updated my alts.php, whois.php, and lastseen.php per this thread.  When restarting the bot I get


Fatal error: Cannot redeclare class alts in C:\BeBot\modules\Alts.php on line 32

I'm attaching a copy of the alts.php for assistance.  Please keep in mind that I'm using this on my bot which is setup as a raidbot (2.10, mysql 5, php 5.1.45? or whatever came with bebot).

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: modified alts
« Reply #54 on: December 28, 2006, 08:43:00 pm »
It means it's already loading an existing Alts module. The Alts.php usually sits in the /core folder, so check there. Most likely all you need to do is move your Alts.php from the /module to /core and overwrite the existing one in /core.
Eternalist
General of The Syndicate

Offline taconis

  • BeBot User
  • **
  • Posts: 34
  • Karma: +0/-0
Re: modified alts
« Reply #55 on: December 28, 2006, 11:10:18 pm »
Ok.  Removed all alts.php from /modules directory.  The bot starts but when I go do any alt related command or whois, the bot shuts down and starts back up.  I take this means the bot is getting a null return.  Think this is because it's a raidbot and not a guildbot, and the fact that rooster_guild.php doesn't point to the org?  And if so, how does one institute rooster_guild.php?  Cause when I do try php'ing the rooster_guild with bot shut down, it says couldn't open the input file.  Sorry if I'm asking stupid questions, but BeBot is new to me and I'm still learning the intricacies of it.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: modified alts
« Reply #56 on: December 29, 2006, 12:00:03 am »
Shouldn't you be using Rooster_RAID? Also make sure there is a Alts.php in the core folder, and it should be the new one as you mentioned you were trying to do. If you just deleted the new Alts.php from your modules, then the core/Alts.php is an old one?
Eternalist
General of The Syndicate

Offline taconis

  • BeBot User
  • **
  • Posts: 34
  • Karma: +0/-0
Re: modified alts
« Reply #57 on: December 29, 2006, 06:16:50 am »
The alts file is taken care of by simply deleting it out of /modules.  I'll have to find a rooster_raid and give that a go.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: modified alts
« Reply #58 on: December 29, 2006, 01:36:02 pm »
Hmm, I do have a modified version of the !alts for use with raidbots, I don't think I ever posted it tho.  As far as I remember, I hacked the lastseen code support into the rooster_raid (which is also hacked to pieces to use 100% the whois cache for the adding and updating of members).  Didn't post it due to the fact i'd changed the rooster file itself so much.  I have no issue to post if people need.

@taconis:
Btw, referring to one of the previous messages, you should use Xenixa's rooster_guild for the orgbot version, this has integrated last seen (hence you don't need seperate lastseen.php).  You can choose not to use Xenixa's rooster version but I suggest it as it fixes other issues.

-jj-
« Last Edit: December 29, 2006, 01:37:49 pm by jjones666 »

Offline taconis

  • BeBot User
  • **
  • Posts: 34
  • Karma: +0/-0
Re: modified alts
« Reply #59 on: December 29, 2006, 05:12:01 pm »
jj,

The funny thing is I'm using my Tacnet as a testbed before the great Mew applies it to Wolfnet.  Yes, Tacnet is a raidbot and Wolfnet is a guildbot but there are much similarities.  I don't mind borking my version because, well, I hardly use it.

So...... To bring this thread back totally on topic, and for all those individuals like myself who don't speak MySQL and PHP daily (please correct me if I'm wrong).......

To put in !altadmin into your Guild Bot, you need the following:

http://jjones.kicks-ass.net/files/alts.php (goes into botdir/core)
http://www.jjones.co.uk/files/whois2.php (renamed to whois.php and goes into botdir/modules)
http://bebot.link/index.php/topic,288.msg2041.html#msg2041 (rooster_GUILD.php by Xenia)
http://bebot.link/index.php/topic,223.0.html (WhoisCache.php)

To put in !altadmin into your Raid Bot, you need the following:

http://jjones.kicks-ass.net/files/alts.php (goes into botdir/core)
http://www.jjones.co.uk/files/whois2.php (renamed to whois.php and goes into botdir/modules)
rooster_GUILD
http://bebot.link/index.php/topic,223.0.html (WhoisCache.php)

I would like to make a few simple requests to all you developers here (and the hosters of this site)...

a) Please, in each bot forum section, have a moderated, stickied forum for everything version 2, everything version 3, etc. that everyone is using so that folks can find things;

e.g. BeBot>Forum>Version 2>2.10>Modules>Guild Bots
{thread}  Here is the latest and greatest for your guild bot.  Make sure you _ those modules you don't want loaded...  alts.php (botdir/core), whois.php (botdir/modules), blah, blah, blah

b) Continue the great work!   I don't think anyone can express what you are doing for the AO community.  Without your hard work and dedication, AO wouldn't still be around.

 

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