L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 12:57:41 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: modified Online.php
Pages: 1 2 [3]   Go Down
« previous next »
Print
Author Topic: modified Online.php  (Read 3885 times)
0 Members and 1 Guest are viewing this topic.
eracet1
Rookie
**
Offline Offline

Posts: 20


Re: modified Online.php
« Reply #30 on: January 20, 2007, 12: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.

Logged
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: modified Online.php
« Reply #31 on: January 20, 2007, 01:30:00 PM »

It requires the WhoisCache module from:

http://bebot.shadow-realm.org/index.php/topic,223.0.html
Logged

Eternalist
General of The Syndicate
eracet1
Rookie
**
Offline Offline

Posts: 20


Re: modified Online.php
« Reply #32 on: January 20, 2007, 06:27:59 PM »

That worked .
Thanks.
Logged
Snarfblatt
Rookie
**
Offline Offline

Posts: 53


Re: modified Online.php
« Reply #33 on: March 16, 2007, 02:57:03 PM »

Is there a way to make it so Online is called whenever someone in the org logs on?
Logged
nebhyper
Rookie
**
Offline Offline

Gender: Male
Posts: 62


Re: modified Online.php
« Reply #34 on: March 16, 2007, 03:33:56 PM »

Yes.

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

Code:
$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");
    }
Logged

Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.
vertek
Freshman
*
Offline Offline

Posts: 4


Re: modified Online.php
« Reply #35 on: April 19, 2007, 06:31:04 AM »

:::::: 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, 01:44:41 PM by vertek » Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: modified Online.php
« Reply #36 on: April 19, 2007, 04: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:
$profgfx["Unknown"] = "0";
To show them at least with a question mark. Mebbe some other icon would be better (254463 looks really neat Cheesy ), but that was my 2-minute fix after someone from org complained. Smiley
« Last Edit: April 19, 2007, 06:48:53 PM by pusikas » Logged

Luuv  Bot-Keeper of Vengeance ^^*
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: modified Online.php
« Reply #37 on: April 28, 2007, 09:33:13 PM »

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, 08:26:23 AM by tonyuh » Logged
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: modified Online.php
« Reply #38 on: May 06, 2007, 09:44:20 PM »

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:
  • Wolfbiter's SQL based level
  • Glara's new module settings plugin
  • Alreadythere's persistant whois cache
« Last Edit: May 06, 2007, 09:47:16 PM by tonyuh » Logged
Pages: 1 2 [3]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: modified Online.php
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[November 21, 2008, 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 13
Total: 14
xlDanek

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.2 seconds with 29 queries. (Pretty URLs adds 0.035s, 4q)
Loading...