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

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

Author Topic: modified Online.php  (Read 23350 times)

0 Members and 1 Guest are viewing this topic.

Offline eracet1

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: modified Online.php
« Reply #30 on: January 20, 2007, 06:48:00 pm »
getting fatal error: Call to a member function lookup<> on a non-object in C/bebot/core/online.php on line 216

also using the new module settings as well.


Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: modified Online.php
« Reply #31 on: January 20, 2007, 07:30:00 pm »
It requires the WhoisCache module from:

http://bebot.link/index.php/topic,223.0.html
Eternalist
General of The Syndicate

Offline eracet1

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: modified Online.php
« Reply #32 on: January 21, 2007, 12:27:59 am »
That worked .
Thanks.

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
Re: modified Online.php
« Reply #33 on: March 16, 2007, 08:57:03 pm »
Is there a way to make it so Online is called whenever someone in the org logs on?

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: modified Online.php
« Reply #34 on: March 16, 2007, 09:33:56 pm »
Yes.

Add the following inside any module you what.  I added mine to the NewNews.php

Code: [Select]
$commands["buddy"][] = &$CommandName;
$commands["connect"][] = &$CommandName;

    function connect()
    {
        $this -> start = time() + $this -> bot -> crondelay;
    }

    function buddy($name, $msg)
    {
if ($this -> bot -> is_member($name) == 1)
$member = TRUE;
else
$member = FALSE;
        if ($this -> start < time()) // We have to be past the start time (prevents spam)
            $time = TRUE;
        else
            $time = FALSE;
        if ($msg == 1) // Has to be a sign on event, not a sign off event.
            $signon = TRUE;
        else
            $signon = FALSE;
           
        // If all the conditions above are true, send Online         
if ($time AND $signon and $member)
$this -> bot -> commands["tell"]["online"] -> tell($name, $this -> bot -> commpre . "online");
    }
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline vertek

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: modified Online.php
« Reply #35 on: April 19, 2007, 01:31:04 pm »
:::::: nevermind I figured it out after a little investigation ::::::


My guild and I really like this mod.
But I was wondering where can i find the profgfx?
I'd like to make some changes to what gfx is shown in the gump.

Vert~
« Last Edit: April 19, 2007, 08:44:41 pm by vertek »

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: modified Online.php
« Reply #36 on: April 19, 2007, 11:26:16 pm »
I was kinda annoyed that new toons usually show up with an error message in the !online-window, because their profession is unknown. I added a line like
Code: [Select]
$profgfx["Unknown"] = "0"; To show them at least with a question mark. Mebbe some other icon would be better (254463 looks really neat :D ), but that was my 2-minute fix after someone from org complained. :)
« Last Edit: April 20, 2007, 01:48:53 am by pusikas »
Luuv  Bot-Keeper of Vengeance ^^*

Offline tonyuh

  • BeBot User
  • **
  • Posts: 48
  • Karma: +0/-0
Re: modified Online.php
« Reply #37 on: April 29, 2007, 04:33:13 am »
has anyone made a modified version of this to work with level? ie. !online 220 shows people that are online that can team with level 220. this would be very helpful when looking for team.
« Last Edit: May 03, 2007, 03:26:23 pm by tonyuh »

Offline tonyuh

  • BeBot User
  • **
  • Posts: 48
  • Karma: +0/-0
Re: modified Online.php
« Reply #38 on: May 07, 2007, 04:44:20 am »
Since no one has what i need... i decided to make one. And once you look at the code you'll prolly know that i'm quite new to php, but it does what i want it to do.

This module requires:
« Last Edit: May 07, 2007, 04:47:16 am by tonyuh »

 

* Recent Posts
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 ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

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