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 04, 2008, 05:00:22 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Module Requests > Topic: Org Info
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Org Info  (Read 429 times)
0 Members and 1 Guest are viewing this topic.
tonyuh
Rookie
**
Offline Offline

Posts: 48


Org Info
« on: May 15, 2007, 06:36:00 AM »

Is there a way to create a module to look up org info, similar to whois but for organization. It would be handy when you need find the org prez or something.

Cheers,
Tony
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Org Info
« Reply #1 on: May 15, 2007, 08:50:13 AM »

Technically there is.

From the character XML you can get the following:
Code:
<organization_membership>
<organization_id>567297</organization_id>
<organization_name>Ancarim Iron Legion</organization_name>
<rank>Advisor</rank>
<rank_id>1</rank_id>
</organization_membership>

That gives you the org id, from there, lookup:
Code:
http://www.anarchyonline.com/org/stats/d/<1/2/3>/name/<org id>

Parse that and you have the president.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Org Info
« Reply #2 on: May 15, 2007, 09:04:46 AM »

Code:
SELECT nickname FROM whois WHERE org_name LIKE '%nameoforg%' AND org_rank_id = 1;

 Huh
Logged

Eternalist
General of The Syndicate
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Org Info
« Reply #3 on: May 15, 2007, 09:12:44 AM »

ah of course, forgot about the persistance whois cache.. thanks!
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1089


Re: Org Info
« Reply #4 on: May 15, 2007, 11:28:22 AM »

Here is my version, have it running some time, never got around to post it. Written for SVN version of bebot.
« Last Edit: May 15, 2007, 11:42:11 AM by Alreadythere » Logged
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Org Info
« Reply #5 on: May 15, 2007, 01:05:14 PM »

awesome thanks!

Tony
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Org Info
« Reply #6 on: May 16, 2007, 11:15:11 AM »

But that only works if you happen to have the org president of the org in question in the whois cache, which will not always be the case. Unless you cache all the lookups which is very wasteful use of FC services imho.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Org Info
« Reply #7 on: May 29, 2007, 10:02:01 AM »

Here is my module, with online/offline status integrated. Yes its very slow due to buddy status queuing as JJ stated before (may be not in this thread).

Requires: Alreadythere's Persistent Whois Cache

Command: <pre>orginfo orgname

Cheers,
Tony
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Module Requests > Topic: Org Info
« previous next »
 
Jump to:  

Recent
online not working after ...
by Alreadythere
[Today at 03:53:28 PM]

Bot not working after tod...
by Alreadythere
[Today at 01:04:41 PM]

Tokens Calulator
by Temar
[December 03, 2008, 01:09:03 PM]

Bebot does not work with ...
by IKShadow
[December 03, 2008, 08:54:04 AM]

!items database
by Temar
[December 03, 2008, 07:27:59 AM]

massive_pvp_time_table 1
by Sudoka
[December 03, 2008, 06:49:07 AM]

Log playtime from buddys ...
by IKShadow
[December 02, 2008, 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]
Stats
Members
Total Members: 1246
Latest: Vingus
Stats
Total Posts: 11192
Total Topics: 1508
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 4
Guests: 12
Total: 16
upstart
daltarak
vikor
Sudoka

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.547 seconds with 28 queries. (Pretty URLs adds 0.027s, 4q)
Loading...