L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 05:08:17 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > 0.5.x Custom/Unofficial Modules > Topic: OnlineOrg
Pages: [1] 2 3 ... 6   Go Down
« previous next »
Print
Author Topic: OnlineOrg  (Read 5581 times)
0 Members and 1 Guest are viewing this topic.
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
OnlineOrg
« on: August 17, 2007, 09:10:23 PM »

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
« Last Edit: May 20, 2008, 01:08:57 AM by Temar » Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Metaphblade
Rookie
**
Offline Offline

Posts: 49


Re: OnlineOrg
« Reply #1 on: August 18, 2007, 11:56:05 AM »

I get these errors when trying to use this.  the bot iteself works fine, until i try to use this command


Code:
[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
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: OnlineOrg
« Reply #2 on: August 18, 2007, 12:52:42 PM »

It's based on the current SVN version, not 0.4.x.

The buddy_* functions were added there.
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: OnlineOrg
« Reply #3 on: August 18, 2007, 05:21:30 PM »

Will Made extra 1 for 0.4.1 also when ive made some mroe improvments which ill do once server is up Cheesy
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: OnlineOrg
« Reply #4 on: August 21, 2007, 06:34:03 PM »

Lots of changed and the module for 0.4.1 added here too
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: OnlineOrg
« Reply #5 on: August 23, 2007, 06:45:15 PM »

Updated XML address and a few Bug fixes
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: OnlineOrg
« Reply #6 on: August 28, 2007, 05:17:58 PM »

Some Improvement/Bug fixes
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Pharexys
Apprentice
***
Offline Offline

Posts: 94


Re: OnlineOrg
« Reply #7 on: September 04, 2007, 08:43:21 AM »

Code:
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:
$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 Cheesy

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.

Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: OnlineOrg
« Reply #8 on: September 04, 2007, 01: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 04, 2007, 10:22:50 PM by Temar » Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: OnlineOrg
« Reply #9 on: September 06, 2007, 12: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, 07:55:25 AM by Temar » Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: OnlineOrg
« Reply #10 on: September 08, 2007, 11:44:14 PM »

Added Que System which can be turned off in setting if you want
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Tichy
Rookie
**
Offline Offline

Posts: 42



Re: OnlineOrg
« Reply #11 on: September 12, 2007, 12:19:37 PM »

Around line 472 (in the 0.4.1 version):

Code:
                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.
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: OnlineOrg
« Reply #12 on: September 12, 2007, 02:23:01 PM »

Quote from: Temar on September 04, 2007, 01: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

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

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: OnlineOrg
« Reply #13 on: September 16, 2007, 11:05:24 PM »

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.
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Karsta
Freshman
*
Offline Offline

Posts: 16


Re: OnlineOrg
« Reply #14 on: January 20, 2008, 08:44:30 AM »

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

Logged
Pages: [1] 2 3 ... 6   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > 0.5.x Custom/Unofficial Modules > Topic: OnlineOrg
« previous next »
 
Jump to:  

Recent
Log playtime from buddys ...
by IKShadow
[Today at 06:48:12 AM]

[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]
Stats
Members
Total Members: 1244
Latest: Armonkens
Stats
Total Posts: 11145
Total Topics: 1505
Online Today: 25
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 3
Guests: 13
Total: 16
Agnot
Glarawyn

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.421 seconds with 29 queries. (Pretty URLs adds 0.041s, 4q)
Loading...