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

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

Author Topic: OnlineOrg  (Read 126611 times)

0 Members and 1 Guest are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
OnlineOrg
« on: August 18, 2007, 04:10:23 am »
OnlineOrg is a Module that Checks who is Online in any Org

Features
  • Uses Cache for Very Fast Repeats, With Limit to how many stored
  • Uses Whois database instead of XML if XML was done x amount of days ago
  • you can use orgname or a character from a org
  • you can type part of org name in and it will search and display matches
  • Stores Org names, ids , and last XML in a table for easy searching
  • you can update org name table with a command ingame and it searches Funcom site
  • Altho the process is slow(takes my bot aprox 1min on large org) it doesnt seem to stop bot doing the usualy stuff
  • Central Online Function to get the Online from the Org in question!

** This Module will Give out your Online list as Simple Nickname ONLY , does not give out your alts or guests or users in your pgroup , This is Mandatory if your wish to use the Central online List Feature (will add option to turn off in future)**

Commands
  • onlineorg <org/char> - Gets Org online from useing org name or a character in that org
  • getorgs - Get Org List from Funcoms site

Need to Do
  • Add some more Colour

Known Bugs
  • the Output of Stats of Orgs when Got useing Central is Bugged

Onlineorg Changes
  • 18/08/07 - Fixed bug with Org name and side when useing database
  • 18/08/07 - Added Check for Buddies Already on list
  • 18/08/07 - Added Limit for bots with buddie lists so member dont get missed
  • 20/08/07 - Added Central Online Functions
  • 21/08/07 - Improved getorgs(now makes sure orgname is latest entry)
  • 21/08/07 - Added Message Function for Important Personal and Mass announcments
  • 21/08/07 - Fixed bug with cron(waiting) running twice
  • 21/08/07 - Added orgname,faction,membercount for onlineorgcentral
  • 22/08/07 - Fixed bug with buddies already on que
  • 22/08/07 - Minors Bug Fixes
  • 22/08/07 - Now resets the 15sec timeout for buddys on buddyfunction
  • 22/08/07 - Fixed bug with update of org table after XML
  • 22/08/07 - Fixed problem were some characters have 0 as org id
  • 24/08/07 - Fixed Loop Problem
  • 24/08/07 - Updated XML address
  • 24/08/07 - Fixed problems with useing several cache for info
  • 24/08/07 - Added check so doesnt try to get id from blank org name
  • 24/08/07 - Fixed whois table update
  • 26/08/07 - Fixed None response after getting list from central
  • 27/08/07 - Renamed from onlineorg to orgs
  • 27/08/07 - Added blob on getorgs to show what is added/updated
  • 28/08/07 - Fixed bugs in info cache
  • 04/09/07 - Fixed error on blank return of Faction
  • 04/09/07 - Fixed Errror Caused by unexpected replies from Central bot
  • 06/09/07 - Orgs names are now Case Sensitive
  • 06/09/07 - Updated get Orgs so it gets all from funcom site
  • 06/09/07 - Fixed bug with $this -> waiting
  • 06/09/07 - Orgs names no longer have to be entered as case sensitive, but if 2 or more of same are found it will show search
  • 07/09/07 - Fixed bug with Centralbot timeout
  • 09/09/07 - Added que system
  • 13/09/07 - Improved que system(now checks if there is same ID in Que and if so output)
  • 17/09/07 - Lots of Minor Changes/Bug fixes
  • 17/09/07 - !getorgs is Now Auto (default is every 7 days)
  • 17/09/07 - Now Skipping BuddyQue altogether
  • 17/09/07 - Search System Improved, if not Exact and search returns 1 do that else show same name results.
  • 18/09/07 - getorgs cron fixed
  • 18/09/07 - Limit of 500 added to Output of Added orgs
  • 17/04/08 [5.0] - Version 5.0 Release (decided to remove the 0. ) Lots of Changes Bugs Expected.
  • 17/04/08 [5.1] - Fixed Output Bug, now goes to channel used.
  • 17/04/08 [5.1] - Fixed Extra Spam saying Getting from DB aswell as Cache
  • 17/04/08 [5.1] - Fixed Que
  • 18/04/08 [5.1] - Fixed Blank Output Msg
  • 18/04/08 [5.1] - Added some Color & a Timer for how long it takes
  • 18/04/08 [5.1] - Central Checking Can now be Disabled
  • 25/04/08 [5.2] - Fixed Problem with useing DB when XML isnt done
  • 28/04/08 [5.3] - Fixed prob with timeout when useing 0.4 bot
  • 20/05/08 [5.4] - Updated $command to new Command Reg System
  • 20/05/09 [5.5] - Fixed Cron
  • 20/05/09 [5.5] - Fixed sending of org ID to Central
  • 20/05/09 [5.5] - Fixed name of Org on Output from Central

Orgs Changes
  • 28/04/08 [0.3] - Updated to latest 0.5, Fixed a few Bugs
  • 14/05/08 [0.4] - Updated to latest 0.5
  • 18/05/08 [0.5] - Fixed Problem with Renamed orgs trying to insert instead of update if not beginning with same letter as before.
  • 18/05/08 [0.5] - Added a check to make sure Only 1 Getorgs function runs at a time.


This module does not use Buddy_Queue
If you Have Problems with Large Buddy Actions, this module may not Work Right


Bots
RK1 -
RK2 -
RK3 -

IF Images Wont Load it Prob Mean the Entire Server is Dead.

Current Module Version = 5.5

This module works for bebot 0.4 and 0.5, But Requires 0.5.0_Support.php to run on 0.4

Please Note due to lack of org info provided for AoC by funcom this is a AO Only module!
« Last Edit: February 03, 2009, 10:03:16 pm by Temar »

Offline Metaphblade

  • BeBot User
  • **
  • Posts: 49
  • Karma: +0/-0
Re: OnlineOrg
« Reply #1 on: August 18, 2007, 06:56:05 pm »
I get these errors when trying to use this.  the bot iteself works fine, until i try to use this command


Code: [Select]
[18-Aug-2007 11:51:17] PHP Warning:  Invalid argument supplied for foreach() in C:\php\custom\modules\OnlineOrg.php on line 280
[18-Aug-2007 11:54:35] PHP Fatal error:  Call to undefined method Bot::buddy_add() in C:\php\custom\modules\OnlineOrg.php on line 257

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: OnlineOrg
« Reply #2 on: August 18, 2007, 07:52:42 pm »
It's based on the current SVN version, not 0.4.x.

The buddy_* functions were added there.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineOrg
« Reply #3 on: August 19, 2007, 12:21:30 am »
Will Made extra 1 for 0.4.1 also when ive made some mroe improvments which ill do once server is up :D

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineOrg
« Reply #4 on: August 22, 2007, 01:34:03 am »
Lots of changed and the module for 0.4.1 added here too

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineOrg
« Reply #5 on: August 24, 2007, 01:45:15 am »
Updated XML address and a few Bug fixes

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineOrg
« Reply #6 on: August 29, 2007, 12:17:58 am »
Some Improvement/Bug fixes

Offline Pharexys

  • BeBot Apprentice
  • ***
  • Posts: 117
  • Karma: +0/-0
Re: OnlineOrg
« Reply #7 on: September 04, 2007, 03:43:21 pm »
Code: [Select]
Fatal error: Cannot use string offset as an array in C:\TEST\modules\OnlineOrg041.php on line 504
The line 504 looks like this:
Code: [Select]
$who = $this -> bot -> whois -> lookup($faction[0][0]);
I am thinking maybe the whois db is empty and thats why, but well just pointed out, maybe you know better how to fix :D

The database you added doesnt work either to get uploaded.

I used a fresh 0.4.1 bebot, nothing modified.
I use Mysql Server version: 5.0.41 and PHP 5.2.2.


Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineOrg
« Reply #8 on: September 04, 2007, 08:11:16 pm »
the Problem is when 0 results are returned this will mainly happen in RAID bots
i have added a if (!empty()) statment

Script should work fine now
« Last Edit: September 05, 2007, 05:22:50 am by Temar »

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineOrg
« Reply #9 on: September 06, 2007, 07:39:54 am »
the Commands !getorgs not get the Entire List from Funcom
This is a Big list and on 1st use will prob SPAM
RK1 is Aprox 5k Orgs

Also i have noticed that some orgs are the same name eg.
1 is Armada and another armada both RK1
they are dif orgs

so now org name is Case sensitive e.g.
doing !onlineorg leet will bring up none match and a list of found with Leet in

altho i havnt done this yet i will make it so if case sensitive search fails do none case sensitive instead and if only 1 result get that other wise show search
Edit: DONE
« Last Edit: September 07, 2007, 02:55:25 pm by Temar »

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineOrg
« Reply #10 on: September 09, 2007, 06:44:14 am »
Added Que System which can be turned off in setting if you want

Offline Tichy

  • BeBot User
  • **
  • Posts: 42
  • Karma: +0/-0
Re: OnlineOrg
« Reply #11 on: September 12, 2007, 07:19:37 pm »
Around line 472 (in the 0.4.1 version):

Code: [Select]
                if ($this -> regtime + (60 * 60 * 24) <= time())
                {
                        $membercount = $this -> bot -> db -> select("SELECT coun
                        $faction = $this -> bot -> db -> select("SELECT nickname
                        $who = $this -> bot -> whois -> lookup($faction[0][0]);
                        $this -> bot -> send_tell(Onlineorgbot, "reg ".$this ->
                            $this -> regtime = time();
                        }
                }
 

If $faction is empty the bot will die when it tries to evaluate $faction[0][0]. If you set up a new bot (empty db) it will always die, since the roster update will occur later and nobody is in the db yet.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineOrg
« Reply #12 on: September 12, 2007, 09:23:01 pm »
the Problem is when 0 results are returned this will mainly happen in RAID bots
i have added a if (!empty()) statment

Script should work fine now

Fixed on 4th
current version is fine
« Last Edit: September 12, 2007, 09:24:54 pm by Temar »

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineOrg
« Reply #13 on: September 17, 2007, 06:05:24 am »
0.4.2 Released
Lots of Little Changed and Bigs fixes

!getorgs is Now Auto (default is every 7 days)
   This can be turned off if you want
Now Skipping BuddyQue altogether
   No more need for seperate Versions
Search System Improved, if not Exact and search returns 1 do that else show same name results.

Offline Karsta

  • BeBot User
  • **
  • Posts: 28
  • Karma: +0/-0
Re: OnlineOrg
« Reply #14 on: January 20, 2008, 02:44:30 pm »
Hmmm, cant get this work
ingame
[Sbot] Karstasbiatc: !getorgs
[Sbot] Sbot: Getting Org names and ids from Funcom Site :: Please Wait
[Sbot] Karstasbiatc: !onlineorg Devil Inside
[Sbot] Sbot: Org Name Search Complete ::  Orgs Checked :: 0 Orgs Added :: 0 Orgs Updated. click to view
[Sbot] Sbot: Exact match not found ::: 0 Similar Orgs Found

and in bots window:
Sbot [2008-01-20 12:39:33]      [PGRP]  [MSG]   [Sbot] Karstasbiatc: !getorgs
Sbot [2008-01-20 12:39:34]      [SETTINGS]      [SAVED] LastGetOrgs for module O
nlineOrg set to 1200832773 as datatype int

Warning: Invalid argument supplied for foreach() in D:\Program files\Funcom\kbot
\SBot43\modules\OnlineOrg.php.php on line 238
Sbot [2008-01-20 12:40:24]      [PGRP]  [MSG]   [Sbot] Sbot: Getting Org names a
nd ids from Funcom Site :: Please Wait


 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 450
  • 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