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: whois update in a new modul  (Read 14985 times)

0 Members and 1 Guest are viewing this topic.

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
whois update in a new modul
« on: November 17, 2009, 12:34:54 am »
hi, i need a function to update the whois table which can do:

- if the player dont exist in the whois db -> insert him
- online status from a player


i dont want to check every single player with !whois <xyz>

Code: [Select]
$this -> bot -> core("whois") -> lookup($player);
dont work  as i wish :(

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: whois update in a new modul
« Reply #1 on: November 17, 2009, 04:24:41 pm »
no ideas?
i need to update the online state of some players for an overview

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: whois update in a new modul
« Reply #2 on: November 17, 2009, 11:03:43 pm »
lookup is the only way to force a whois update.

For online stuff check the online core, there you can get the online status of members.

For the online status of random people you'll have to use something like the is module.

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: whois update in a new modul
« Reply #3 on: November 18, 2009, 12:55:18 am »
the players i want to check are not members or in a group, i need it for the kos-list

i want to check the online status from the player on the kos list

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: whois update in a new modul
« Reply #4 on: November 19, 2009, 12:24:21 pm »
the is function often get a timeput, and its to slow

i need a fast method to ceck the online status without adding the players  to the notify list

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: whois update in a new modul
« Reply #5 on: November 19, 2009, 11:04:56 pm »
There is none, only way is to add them as buddies and catch the event - which is basically what !is does (there are a couple of checks for safety there too).

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: whois update in a new modul
« Reply #6 on: November 19, 2009, 11:11:20 pm »
how many buddys are possible to add?

are buddys automaticly users with member rights?
« Last Edit: November 20, 2009, 09:15:06 am by Margon »

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: whois update in a new modul
« Reply #7 on: December 04, 2009, 10:03:42 pm »
bump

i need a way to add player on the buddy list but without giving him any rights or sending him tells (xy added you to the memberlist..blabla)

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: whois update in a new modul
« Reply #8 on: December 05, 2009, 05:08:34 pm »
!settings Autouseradd

Code: [Select]
Settings for Autouseradd
Enabled: On
 Description: Should users be added to the Bot?
 Change to: [ On | Off ]
Notify: On
 Description: Should the User be Notified that he was added to the Bot?
 Change to: [ On | Off ]

Use the command above and you can turn off the notification.  Can't find a setting for new users defaulting to guest instead of member, maybe someone else knows if such a setting exitsts.

~Kyr

Offline Margon

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: whois update in a new modul
« Reply #9 on: December 15, 2009, 12:29:57 pm »
bump

i need a way to add player on the buddy list but without giving him any rights or sending him tells (xy added you to the memberlist..blabla)

i got it! but now a have a new question^^

how can i use a function from an other module?
$this -> bot -> module("modulename") -> function($xxx); ?
« Last Edit: December 15, 2009, 01:18:02 pm by Margon »

 

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