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?
September 08, 2008, 01:18:09 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.3.x Custom/Unofficial Modules > Topic: Org Info module
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Org Info module  (Read 740 times)
0 Members and 1 Guest are viewing this topic.
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1024


Org Info module
« on: May 15, 2007, 11:41:50 AM »

Right now all it allows you is getting the president of a player or an org.

!president player returns the president and org name of player's org, if he is in one. The org has to be in the whois cache for correct behavior.
!president orgname returns the president of the org, the org has to be inside the whois cache again.

If there is a player and an org with the same name it returns both infos.

File, rename to .php.
Logged
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Org Info module
« Reply #1 on: May 15, 2007, 02:35:48 PM »

Awhile ago I was talking to an omni guild friend whom their bot had a function to see who was online in any guild, and apparently the command was really fast. Now with the buddy limitations and some orgs having hundreds of members, I didn't quite understand how it could be that fast. It was really useful for them for PvP knowing whom was on in any org.
Logged

Eternalist
General of The Syndicate
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Org Info module
« Reply #2 on: May 15, 2007, 02:59:17 PM »

I'll plug Vhab's bot some :-)

-jj-

Code:
Population on Atlantean
Tracking: 175 - 220
Organizations: 4850
Users: 15358

Omni
220 - 220: 129
215 - 219: 37
210 - 214: 37
205 - 209: 14
175 - 204: 59
TL7: 217
Total: 276

Professions (TL7):
soldier: 37
doctor: 35
adventurer: 28
martial artist: 15
agent: 15
fixer: 13
engineer: 13
meta-physicist: 13
enforcer: 12
keeper: 12
bureaucrat: 10
nano-technician: 5
shade: 5
trader: 4

Top 25 Organizations:
Circle of Notum: 20 [View]
Molotoff C0cktail: 14 [View]
Ragnarok: 14 [View]
Riders Of The Lost Org: 11 [View]
Orbitek: 10 [View]
Brothers of Kai: 9 [View]
Sentinels: 8 [View]
Mercenaries: 8 [View]
Jenquai Extreme: 7 [View]
TETN: 7 [View]
Legion: 7 [View]
Shadow Company: 6 [View]
Shadow Army: 6 [View]
Mafia din Romania: 6 [View]
K.G.B. [RPA]: 6 [View]
OpCenter: 5 [View]
Angels of Darkness: 5 [View]
Hell on Fire: 5 [View]
First Order: 5 [View]
Punk: 5 [View]
Obsidian Order: 5 [View]
Council of Sagitas: 5 [View]
Private Playthings: 4 [View]
Reign of Absolution: 4 [View]
[Come Get Some]: 4 [View]
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1024


Re: Org Info module
« Reply #3 on: May 15, 2007, 04:40:12 PM »

Quote from: Malosar on May 15, 2007, 02:35:48 PM
Awhile ago I was talking to an omni guild friend whom their bot had a function to see who was online in any guild, and apparently the command was really fast. Now with the buddy limitations and some orgs having hundreds of members, I didn't quite understand how it could be that fast. It was really useful for them for PvP knowing whom was on in any org.
You'll most likely need a network of dedicated slave bots to track the characters due to the 1k limit, and a min level below which you don't track anything.

Supposedly buddy adding/checking isn't rate limited, but doubt anyone tried to implement something using that - and I doubt that FC would be happy over the load those commands would create.
Logged
Vhab
BeBot Contributor
Experienced
*******
Offline Offline

Posts: 155


WWW
Re: Org Info module
« Reply #4 on: May 15, 2007, 11:51:12 PM »

there is a limit on adding/removing buddies, just a smaller one.
if you spam more than a couple 100 a second it'll get whiny.
it still won't feel very smooth though, since you gotta add a couple 100 members, fetch the status, remove em again, etc
Logged
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Org Info module
« Reply #5 on: May 16, 2007, 07:05:40 AM »

ah ok, I thought the buddy system was more restricted than that, thanks.
Logged

Eternalist
General of The Syndicate
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Org Info module
« Reply #6 on: May 16, 2007, 09:48:48 AM »

Will this work if there isn't a limit of how many buddy you can add/remove per second?

Code:
$id = $this -> bot -> aoc -> get_uid($name);
if ($this -> bot -> aoc -> buddy_exists($id))
{
if ($this -> bot -> aoc -> buddy_online($name))
$result = "Online Status: <font color=#33FF33>Online</font>\n";
else
$result = "Online Status: <font color=#ff0000>Offline</font>\n";
}
else
{
$this -> bot -> aoc -> buddy_add($name);
if ($this -> bot -> aoc -> buddy_online($name))
$result = "Online Status: <font color=#33FF33>Online</font>\n";
else
$result = "Online Status: <font color=#ff0000>Offline</font>\n";
$this -> bot -> aoc -> buddy_remove($name);
}
                                return $result;

Cheers,
Tony
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Org Info module
« Reply #7 on: May 16, 2007, 10:24:06 AM »

In my experience, you NEED to queue the buddy adds.  The bot processes the online check way faster than the server has detected status.  I tried doing this with my alts module and had no success.

-jj-
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Org Info module
« Reply #8 on: May 16, 2007, 11:19:10 AM »

Back when i ran a 3k member raid bot i also suddenly started running into issues with the bot being disconnected when spamming buddy add/del's, or at least thats what i suspected was the reason.

So yes, i do believe Funcom has taken to putting a limit on how many buddy add/del's you can do per second/minute (ironically, the buddy add/del spamming only started occuring because they started limiting the buddy lists)

Would be nice to have some exact numbers to go by though.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Vhab
BeBot Contributor
Experienced
*******
Offline Offline

Posts: 155


WWW
Re: Org Info module
« Reply #9 on: May 16, 2007, 11:35:02 AM »

thank god for slave bots Tongue
Logged
Naturalistic
BeBot Contributor
Experienced
*******
Offline Offline

Posts: 221


Re: Org Info module
« Reply #10 on: May 17, 2007, 12:14:55 AM »

Slaves <3
Logged

220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Org Info module
« Reply #11 on: May 17, 2007, 07:38:09 PM »

- blobbed output.
- also shows other leaders in org with !is and !whois (to pickup alts if known) clickies.
- certified bebot 0.2.x working.
- command changed to !orginfo.

PHP.

-jj-
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.3.x Custom/Unofficial Modules > Topic: Org Info module
« previous next »
 
Jump to:  

Recent
BeBot v0.5.3 released (de...
by Temar
[Today at 12:32:25 AM]

Help with online info in ...
by Barlyman
[September 07, 2008, 07:56:24 PM]

Security
by Alreadythere
[September 06, 2008, 10:02:42 AM]

Probs with relay from gue...
by Temar
[September 06, 2008, 09:03:06 AM]

Raid spam in guild chat
by Temar
[September 06, 2008, 09:01:18 AM]

Org Relaying
by Nytridr
[September 06, 2008, 01:34:35 AM]

Link 2 Guilds via 2 Bots?
by Temar
[September 05, 2008, 04:22:40 PM]

SVN download
by clashbot
[September 05, 2008, 05:12:59 AM]

TWC
by Temar
[September 05, 2008, 12:27:23 AM]

How to find the guild ID?...
by Irinir
[September 03, 2008, 02:58:54 PM]
Stats
Members
Total Members: 965
Latest: morisey
Stats
Total Posts: 10416
Total Topics: 1413
Online Today: 10
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 3
Guests: 28
Total: 31
Temar
Wolfbiter
kaagee

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