collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: modified alts  (Read 33884 times)

0 Members and 3 Guests are viewing this topic.

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: modified alts
« Reply #60 on: December 29, 2006, 06:10:42 pm »
After the holidays and stuff...it can be cleaned up. Right now, you'll just have to be patient :P
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: modified alts
« Reply #61 on: December 29, 2006, 06:19:43 pm »
We probably should split modules forum into branches anyways.
BeBot Founder and Fixer Kingpin

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: modified alts
« Reply #62 on: December 30, 2006, 10:51:29 am »
@taconis:

I wouldn't suggest to use rooster_guild in a raidbot type setup as a lot of the functionality is un-needed (ie. updating roster from guild XML on connect).  Also the wording I used in the alts for guildbots kinda doesn't make sense for a raidbot.  Basically, i just integrated the lastseen code into the raidbot roster and modified the alts code to suit.

EDIT:
I forgot I left the raidbot draft setup on my webserver, ignore the .conf settings, these are fake and were a joke directed at Tojejedno (RK1 people love Klingons!).

Try these and let me know how they work:
http://www.jjones.co.uk/files/uprraid/core/alts.php
http://www.jjones.co.uk/files/uprraid/modules/Roster_RAID.php

Notes:
- Please delete or amend line 341 to remove the debug code (ie, sending me a tell every time info is updated).
- Changes to DB structure on first run should be done automatically using the info contained in lines 34-36 (please comment these out after first running).
- !updateroster YES in tell to the bot will sychronise the member table with the entries in the whois cache.  You don't ever need to use this feature, otherwise the member table will update whenever people logon and if their data is more than 3 days old, as previously.
- caveat emptor - this code may not be the most effective technology and hasn't been tested 100% - let me know if any bugs :)
- Not running whois cache for raidbot, then this won't work!  Would also suggest to use one cache database for both raidbot and orgbot.

I'll tidy up code and post proper versions after holiday.


@khalem:

Regarding cleaning the forum up, as I don't contribute to the coding directly, I can volunteer to help here.  I was thinking the same thing regarding confusing threads etc.

-jj-
« Last Edit: December 30, 2006, 12:03:43 pm by jjones666 »

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: modified alts
« Reply #63 on: January 18, 2007, 04:08:07 pm »
How do you set up two bots so they share a table? The whois table in this case? I am not native to mysql... does it have something similar to synonyms in oracle? :)
If you use a seperate raidbot for an org, I could imagine sharing a lot more tables than only whois. The alts table and raidpoints, local items database... actually most tables would make sense to be shared, wouldn't they?
Luuv  Bot-Keeper of Vengeance ^^*

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: modified alts
« Reply #64 on: January 18, 2007, 04:14:18 pm »
Heya,

The structure is database.table in the SQL reference, for example create a seperate database called cache, change ALL the SQL references from cache to cache.whois in the whois-cache PHP and it'll work fine.

See enclosed example: http://www.jjones.co.uk/files/uprraid/modules/whoiscache.php

We have alts, whois cache, quotes, items, symbs shared between our 3 bots.

The only problem is on module upgrades, you need to remember u're not using standard database structure ;-)

-jj-

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: modified alts
« Reply #65 on: January 18, 2007, 04:39:01 pm »
Or have it check the main org bots db instead of creating a 3rd db. I have my raidbot check my orgbots whoiscache, membertable, items, symbs etc

Where it references whois, just change it to orgbotdb.whois (obviously replacing orgbotdb with the name of the database the org bot runs on).
Eternalist
General of The Syndicate

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: modified alts
« Reply #66 on: January 18, 2007, 07:25:58 pm »
You could go and backport the 0.3 MySQL.php (actually I think you could just use it without changes) and add the names for mastertable and suffix to the MySQL.php. Then you could add #___ (3 slashes) as suffix to each tablename and setup a structure in one database. Would even be compatible to 0.3.

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: modified alts
« Reply #67 on: January 18, 2007, 10:43:15 pm »
Hmmmmmmm.... I may just do that. Not today, but mebbe I find the time this weekend. :)
Luuv  Bot-Keeper of Vengeance ^^*

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: modified alts
« Reply #68 on: February 11, 2007, 11:19:00 pm »
- updates (guildbot specific):

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

- notes: !whois built on version here (http://bebot.link/index.php/topic,314.0.html) includes fixes for blacklist and Glara's !postit features.

- added !postit search to search contributors and player information for your searchterm (code based on Glara's updated Quotes module).

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

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: modified alts
« Reply #69 on: March 29, 2007, 12:36:34 am »
!alts updated:

- checks if user exists before processing main loop (no idea why this wasn't there before).
- will post to GC if entries in table are for deleted toons on any call to !alts (configurable).
- now shows level, ai level, rank, org for people outside of org and guestlist.
- online status will now show correctly for people on guestlist or in org.
- !altadmin check (tell only) will verify there are no duplicate characters/deleted characters in the alt database (we have 1255 alts logged from Vhanet plus other sources, so this is prolly something useful only to me). :-)

Because the option to warning on junk is configurable you now need Glara's Module Settings plugin!

Warning: because this is a core module and the module settings plugin is set to load AFTER the alts module, you need to rename ModuleSettings.php to 1ModuleSettings.php to ensure it loads first otherwise the module will crash...  There is a better fix but this should work for the time being ;-p

http://www.jjones.co.uk/files/alts.php - people wishing the old version can download alts_old.php

-jj-

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: modified alts
« Reply #70 on: March 31, 2007, 06:47:03 pm »
- online status will now show correctly for people on guestlist or in org.

Online status does not show for out-of-org alts on guestlist. I checked, they are on the bot's buddylist.
Luuv  Bot-Keeper of Vengeance ^^*

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: modified alts
« Reply #71 on: March 31, 2007, 09:51:09 pm »
Oops, redownload and let me know if that works for u ;-p

-jj-

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: modified alts
« Reply #72 on: April 01, 2007, 05:30:17 pm »
OK, much better, just one small thing... if the main is not in org, but on the guestlist (and so are some of his alts), and you do !alts <name of main>, then you see the onlince status of all his alts on guestlist, but not of the main. :) That was prolly the most complicated way possible to explain it, sorry. ^^
Luuv  Bot-Keeper of Vengeance ^^*

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: modified alts
« Reply #73 on: April 01, 2007, 10:15:13 pm »
Double check the person is in buddy list.  I had similar issue where people were in guestlist but not on buddy list.  The code is already there to differentiate online/offline mains.

I guess I'll just add a !sync to the guestlist so it makes sure to add all buddies.

-jj-

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: modified alts
« Reply #74 on: April 02, 2007, 07:36:08 pm »
This bot is kinda moody when it comes to guests. Example: A is in org and has his alt B (out-of-org) on !guest. I restart the bot. B is logged on, and gets listed as
Code: [Select]
[BUDDY] [LOG]   B logged [on] (guest)Still, !alts shows B as offline. I restart the bot, and B is not listed among the "logged on" anymore. So I check if that is true:
Code: [Select]
[2007-04-02 17:31:21]   [TELL]  [INC]   Luuv: !is B
[2007-04-02 17:31:22]   [BUDDY] [LOG]   B logged [on] (guest)
[2007-04-02 17:31:22]   [TELL]  [OUT]   -> Luuv: B is online
If I try Molasar's !is from http://bebot.link/index.php/topic,514.0.html on A, I get:
Code: [Select]
A and his/her alts are offline
Uhm... I guess there is a prob with my bot, not with this module. I just have no clue what it is.  :o

Edit: just saw what happens if I try !is again:
Code: [Select]
[2007-04-02 17:38:37]   [TELL]  [INC]   Luuv: !is B A
[2007-04-02 17:38:37]   [TELL]  [OUT]   -> Luuv: A and his/her alts are offline
[2007-04-02 17:38:37]   [BUDDY] [ERROR] B logged on despite of already being marked as logged on!!
« Last Edit: April 02, 2007, 07:41:32 pm by pusikas »
Luuv  Bot-Keeper of Vengeance ^^*

 

* Recent Posts
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 ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 361
  • 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