BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.3.x Custom/Unofficial Modules => Topic started by: Alreadythere on May 15, 2007, 06:41:50 pm

Title: Org Info module
Post by: Alreadythere on May 15, 2007, 06:41:50 pm
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 (http://www.m8y.de/ao/bebot/OrgInfo.phps), rename to .php.
Title: Re: Org Info module
Post by: Malosar on May 15, 2007, 09: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.
Title: Re: Org Info module
Post by: jjones666 on May 15, 2007, 09:59:17 pm
I'll plug Vhab's bot some :-)

-jj-

Code: [Select]
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]
Title: Re: Org Info module
Post by: Alreadythere on May 15, 2007, 11:40:12 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.
Title: Re: Org Info module
Post by: Vhab on May 16, 2007, 06:51:12 am
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
Title: Re: Org Info module
Post by: Malosar on May 16, 2007, 02:05:40 pm
ah ok, I thought the buddy system was more restricted than that, thanks.
Title: Re: Org Info module
Post by: tonyuh on May 16, 2007, 04:48:48 pm
Will this work if there isn't a limit of how many buddy you can add/remove per second?

Code: [Select]
$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
Title: Re: Org Info module
Post by: jjones666 on May 16, 2007, 05:24:06 pm
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-
Title: Re: Org Info module
Post by: Khalem on May 16, 2007, 06:19:10 pm
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.
Title: Re: Org Info module
Post by: Vhab on May 16, 2007, 06:35:02 pm
thank god for slave bots :P
Title: Re: Org Info module
Post by: Naturalistic on May 17, 2007, 07:14:55 am
Slaves <3
Title: Re: Org Info module
Post by: jjones666 on May 18, 2007, 02:38:09 am
- 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 (http://www.jjones.co.uk/files/orginfo.php).

-jj-
SimplePortal 2.3.7 © 2008-2024, SimplePortal