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: buddies !is and rosters over 1k  (Read 4265 times)

0 Members and 2 Guests are viewing this topic.

Offline mesa

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
buddies !is and rosters over 1k
« 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 :)
« Last Edit: December 13, 2006, 08:23:33 pm by mesa »

Offline mesa

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: buddies !is and rosters over 1k
« Reply #1 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

 

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