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: OnlineDB.php and Is.php  (Read 12916 times)

0 Members and 1 Guest are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
OnlineDB.php and Is.php
« on: August 15, 2007, 06:02:13 pm »
Modified core/OnlineDB.php and modules/Is.php

Removed Disconnect stuff from onlinedb as this conflicts with reinvite
only use for disconnect is if another bot2 uses online list from bot1 the list may not be accurate

Added Reinvite so when bot starts it checks the online list for who was in pgroup , clears online list then invites those that are online still

Added Alt checking to !is
the seen part of !is Requires this OnlineDB.php

Example output is !is
Alt1 is offline, Alt2 is online
Alt1 is offline, last seen at October 2nd, 2007 15:36 on Alt2

« Last Edit: December 06, 2007, 05:43:30 am by Temar »

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineDB.php and Is.php
« Reply #1 on: October 02, 2007, 08:13:11 pm »
Updated !is to check Alts, but the updated OnlineDB is required for last seen message

Offline Neshire

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: OnlineDB.php and Is.php
« Reply #2 on: October 03, 2007, 10:57:25 pm »
gettin this : Fatal error: Call to undefined method Bot::get_uid() in D:\<mybotname\>\modules\Is.php on line 144
:( any ideas ?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: OnlineDB.php and Is.php
« Reply #3 on: October 03, 2007, 11:03:54 pm »
Those commands are based on the trunk version.

Offline Neshire

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: OnlineDB.php and Is.php
« Reply #4 on: October 03, 2007, 11:13:12 pm »
my bad, sorry. didnt realized what category i am in.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineDB.php and Is.php
« Reply #5 on: December 05, 2007, 01:42:29 am »
Updated Files to Latest SVN

Offline Metaphblade

  • BeBot User
  • **
  • Posts: 49
  • Karma: +0/-0
Re: OnlineDB.php and Is.php
« Reply #6 on: December 05, 2007, 07:28:01 am »
i just completely updated my orgs bot (didnt re-do SQL) and when i try the !is command, it only give the character i did the !is on.  Example, i have alts

!is Metaphblade
Metaphblade is offline, last seen at December 5th, 2007 04:47

i am logged on another toon, that is in my alt list, but didnt show in the !is.  Did i do something wrong/need to edit some setting?

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineDB.php and Is.php
« Reply #7 on: December 05, 2007, 07:36:59 am »
There is a Setting but its on by Default
!set is
make sure the bot knows it ur alt too by doing !alts

i just tested to make sure too

[Leet] Chris05: !is chris96
[Leet] Leetboss: Chris96 is offline, Chris05 is online
« Last Edit: December 05, 2007, 07:39:16 am by Temar »

Offline Metaphblade

  • BeBot User
  • **
  • Posts: 49
  • Karma: +0/-0
Re: OnlineDB.php and Is.php
« Reply #8 on: December 05, 2007, 07:38:45 am »
yup, settings are on....and i have done an !alts.  still same thing  :(  Guess ill try restarting the bot next


edit....restarting didnt help either.
« Last Edit: December 05, 2007, 07:40:23 am by Metaphblade »

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineDB.php and Is.php
« Reply #9 on: December 05, 2007, 07:52:57 am »
well the code looks fine, it works fine for me

i do plan on reviewing the code and making improvement tomorrow anyway so hopefully it will work then

Offline Metaphblade

  • BeBot User
  • **
  • Posts: 49
  • Karma: +0/-0
Re: OnlineDB.php and Is.php
« Reply #10 on: December 05, 2007, 07:58:10 am »
ok, ill just wait till then  :)

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: OnlineDB.php and Is.php
« Reply #11 on: December 06, 2007, 04:52:57 am »
done, i have changed the working of it alot so hopefully ur bug is gone

EDIT:Fixed a few Bugs
including what i think ur bug was.
were if your main wasnt on buddy list and wasnt the name u used for !is
the bug would use the name u used for !is and not ur main.
« Last Edit: December 06, 2007, 05:45:14 am by Temar »

 

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