BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Coding and development discussion => Topic started by: mesa on December 13, 2006, 08:20:28 pm

Title: buddies !is and rosters over 1k
Post by: mesa on December 13, 2006, 08:20:28 pm
Hi all,

Been working on a module but I'm pretty new to this.  Basically what I am creating is and admin !announce (where the announce will go to any raidleaders or admins that are online).

However I seem to have run into a snag.

to do this, I loop over admin_members and wanted to check if each admin was online then send the tell. At first, I repurposed functions from Is.php but this doesnt seem to work as it never returns them as being online even when I can see they are. Talked with some people and we think it's due to the way the 1k roster handles checking if people are online through it's buddy list.  Anyways this is where I get lost.  I'm not really sure how !is works and the buddy system works and was hoping someone could point me in the right direction.

here's an example of one of the functions I tried.  Also tried using the bot function to add the buddy right before using the buddy_online() but that didnt seem to matter either.



Code: [Select]
function is_online($who)
{
if ($this -> bot -> aoc -> buddy_online($who))
return true;
else
return false;



}

any help or advice would be greatly appreciated :)
Title: Re: buddies !is and rosters over 1k
Post by: mesa on December 20, 2006, 04:47:20 pm
Update:  I have reverted to the under 1k Roster_raid.php beccause the > 1k one contained old bugs and was misbhaving with the whois cache and new CharID fixes.


Will update more when I take another stab at these modules as I think the is_online function will work more smoothly now.

-mesa
SimplePortal 2.3.7 © 2008-2024, SimplePortal