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:36:36 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.2.x Custom/Unofficial Modules > Topic: Add or Remove an entire Org from your Raidbot's Roster
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Add or Remove an entire Org from your Raidbot's Roster  (Read 1474 times)
0 Members and 1 Guest are viewing this topic.
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Add or Remove an entire Org from your Raidbot's Roster
« on: September 24, 2006, 07:33:19 PM »

OrgRaidRoster 2.0.0

This is a module that will add or remove and entire organization from your Raidbot's Roster. Version 2.0.0 requires my new Settings Module to be installed. Version 2.0.0 also keeps track of which orgs you have added and will add new members of those orgs to your bot automatically. In addition, you can set minimum and maximum level requirements as well as faction selection.

Usage:
/tell botname !addorg Playername
Add (or update) all members of Playername's organization to the bot.

/tell botname !delorg Playername
Remove all members of Playername's organization from the bot.

/tell botname !showorgs
Shows the orgs in the Org Raid Roster

/tell botname !updateorgs
Forces an update of the org rosters.

Important Stuff
I've made and tested this for 0.2.10, it should work with BeBot 0.2.8 and above.

I've used SQL that is only available in MySQL 4.1.0 or higher. If you're using a previous version of MySQL, this isn't going to work.

You really should be running in raidbot mode. If you're running in guildbot mode, the members this module adds will be removed when the guild roster updates.

New in version 2.0.0
  • Uses my Settings Module
  • The module will keep your org additions up to date automatically.
  • You can view which orgs you've added to the org raid roster and remove them as well. (See showorgs)
  • Admins are able to force an update using the updateorgs command
« Last Edit: December 28, 2006, 07:15:00 PM by Glarawyn » Logged
neongen
Rookie
**
Offline Offline

Posts: 64


Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #1 on: November 12, 2006, 05:22:49 PM »

i have just put it on my raid bot.
and i get this error:

Warning: Invalid argument supplied for foreach() in OrgRaidRoster.php on line 206

and that is:

 // Update the roster.
           $numadded = 0;
   206--->        foreach ($members as $member)
           {
Logged
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #2 on: November 13, 2006, 11:44:32 AM »

My guess is your bot couldn't retrieve the XML info.

Replace line 167:
Code:
$org = $this -> bot -> get_site("http://www.anarchy-online.com/org/stats/d/".$this -> bot -> dimension."/name/".$orgid['org_id']."/basicstats.xml");

With the following lines of code:
Code:
$url = "http://www.anarchy-online.com/org/stats/d/".$this -> bot -> dimension."/name/".$orgid['org_id']."/basicstats.xml";
$org = $this -> bot -> get_site($url);
if (empty($org))
    return "Could not download roster XML from ".$url;

And I'm betting you're get the "Could not download roster XML" instead of a bot error.
Logged
neongen
Rookie
**
Offline Offline

Posts: 64


Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #3 on: November 13, 2006, 11:51:27 AM »

yup get the "Could not download roster XML from http://www.anarchy-online.com/org/stats/d/1/name//basicstats.xml"
Logged
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #4 on: November 13, 2006, 11:59:39 AM »

Quote from: neongen on November 13, 2006, 11:51:27 AM
yup get the "Could not download roster XML from http://www.anarchy-online.com/org/stats/d/1/name//basicstats.xml"

OK, you're not getting the Org ID. Go to http://www.anarchy-online.com/content/community/people/ and try looking up the character you're using in the !addorg command. If the character is not in an org, you'll have to find a character that is in that org.

The command is !addorg playername not !addorg guildname.


Update: Added the extra error check to the 1.0.1 module release. Download link updated.
« Last Edit: November 13, 2006, 12:05:28 PM by Glarawyn » Logged
neongen
Rookie
**
Offline Offline

Posts: 64


Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #5 on: November 13, 2006, 12:04:42 PM »

hehe i used space in the name  Embarrassed and it was my own name i used... first today i got on the org info

thx for the help
Logged
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #6 on: December 28, 2006, 07:15:14 PM »

Bump for a major update. Smiley
Logged
Metaphblade
Rookie
**
Offline Offline

Posts: 49


Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #7 on: February 15, 2007, 04:25:29 AM »

i am running a raidbot for my org.  (bot not in org)  i installed this module, and added all of my org to the bot, but i am the only one that gets autoinvites.  i have !autoinv on  Am i doing something wrong?
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Add or Remove an entire Org from your Raidbot's Roster
« previous next »
 
Jump to:  

Recent
[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]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 9
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 14
Total: 15

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.197 seconds with 29 queries. (Pretty URLs adds 0.037s, 4q)
Loading...