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: Org Info module  (Read 6666 times)

0 Members and 1 Guest are viewing this topic.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Org Info module
« 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, rename to .php.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Org Info module
« Reply #1 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.
Eternalist
General of The Syndicate

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Org Info module
« Reply #2 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]

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Org Info module
« Reply #3 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.

Offline Vhab

  • Contributor
  • *******
  • Posts: 180
  • Karma: +0/-0
    • VhaBot Forum
Re: Org Info module
« Reply #4 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

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Org Info module
« Reply #5 on: May 16, 2007, 02:05:40 pm »
ah ok, I thought the buddy system was more restricted than that, thanks.
Eternalist
General of The Syndicate

Offline tonyuh

  • BeBot User
  • **
  • Posts: 48
  • Karma: +0/-0
Re: Org Info module
« Reply #6 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

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Org Info module
« Reply #7 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-

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Org Info module
« Reply #8 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.
BeBot Founder and Fixer Kingpin

Offline Vhab

  • Contributor
  • *******
  • Posts: 180
  • Karma: +0/-0
    • VhaBot Forum
Re: Org Info module
« Reply #9 on: May 16, 2007, 06:35:02 pm »
thank god for slave bots :P

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: Org Info module
« Reply #10 on: May 17, 2007, 07:14:55 am »
Slaves <3
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Org Info module
« Reply #11 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.

-jj-

 

* 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: 478
  • 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