collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Add or Remove an entire Org from your Raidbot's Roster  (Read 4433 times)

0 Members and 1 Guest are viewing this topic.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Add or Remove an entire Org from your Raidbot's Roster
« on: September 25, 2006, 02:33:19 am »
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 29, 2006, 01:15:00 am by Glarawyn »

Offline neongen

  • BeBot User
  • **
  • Posts: 64
  • Karma: +0/-0
Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #1 on: November 12, 2006, 11: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)
           {

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #2 on: November 13, 2006, 05:44:32 pm »
My guess is your bot couldn't retrieve the XML info.

Replace line 167:
Code: [Select]
$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: [Select]
$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.

Offline neongen

  • BeBot User
  • **
  • Posts: 64
  • Karma: +0/-0
Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #3 on: November 13, 2006, 05:51:27 pm »
yup get the "Could not download roster XML from http://www.anarchy-online.com/org/stats/d/1/name//basicstats.xml"

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #4 on: November 13, 2006, 05:59:39 pm »
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, 06:05:28 pm by Glarawyn »

Offline neongen

  • BeBot User
  • **
  • Posts: 64
  • Karma: +0/-0
Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #5 on: November 13, 2006, 06:04:42 pm »
hehe i used space in the name  :-[ and it was my own name i used... first today i got on the org info

thx for the help

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #6 on: December 29, 2006, 01:15:14 am »
Bump for a major update. :)

Offline Metaphblade

  • BeBot User
  • **
  • Posts: 49
  • Karma: +0/-0
Re: Add or Remove an entire Org from your Raidbot's Roster
« Reply #7 on: February 15, 2007, 10: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?

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 439
  • 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