• Node Status...

    From Ktulu@VERT/ROI to All on Sun May 22 21:59:00 2005
    Hello all!

    Because I am trying to be self-taught at this Synchronet Javascript thing..
    how do I go about changing the who's online listing to reflect someone
    running my mod? Are there some lines in nodedefs.js that I need to change / add?

    In other words, if someone on the BBS requests who's online how can I make it display that the user is running "mymod" or something like that?

    Also, is there a way to determine whether or not the sysop is available for chat within javascript?

    Thanks!

    Ktulu

    ---
    þ Synchronet þ Realm of Insanity - telnet://roi.forem.org - Milwaukee, WI
  • From Digital Man@VERT to Ktulu on Mon May 23 09:31:00 2005
    Re: Node Status...
    By: Ktulu to All on Mon May 23 2005 01:59 am

    Hello all!

    Because I am trying to be self-taught at this Synchronet Javascript thing.. how do I go about changing the who's online listing to reflect someone running my mod? Are there some lines in nodedefs.js that I need to change / add?

    In other words, if someone on the BBS requests who's online how can I make i display that the user is running "mymod" or something like that?

    If "mymod" is installed as an external progarm (in SCFG), then this should already be the case.

    If not, you'd have to make some custom node listing module and run that for the global Ctrl-U key handler in SCFG->External Programs->Global Hot Keys.

    Also, is there a way to determine whether or not the sysop is available for chat within javascript?

    if(bbs.startup_options&BBS_OPT_SYSOP_AVAILABLE)
    print("Sysop is available"):
    else
    print("Sysop is NOT available");

    digital man

    Snapple "Real Fact" #81:
    Alaska has more caribou then people.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Ktulu@VERT/ROI to Digital Man on Mon May 23 20:35:00 2005
    Re: Node Status...
    By: Digital Man to Ktulu on Mon May 23 2005 02:31 pm

    If "mymod" is installed as an external progarm (in SCFG), then this should already be the case.

    If not, you'd have to make some custom node listing module and run that for global Ctrl-U key handler in SCFG->External Programs->Global Hot Keys.

    Also, is there a way to determine whether or not the sysop is available f chat within javascript?

    if(bbs.startup_options&BBS_OPT_SYSOP_AVAILABLE)
    print("Sysop is available"):
    else
    print("Sysop is NOT available");


    Wow! Thanks a lot for the quick reply, DM! I didn't see that one in the JS docs! Thanks again!!


    ---
    þ Synchronet þ Realm of Insanity - telnet://roi.forem.org - Milwaukee, WI
  • From Digital Man@VERT to Ktulu on Mon May 23 20:18:00 2005
    Re: Node Status...
    By: Ktulu to Digital Man on Tue May 24 2005 12:35 am

    Re: Node Status...
    By: Digital Man to Ktulu on Mon May 23 2005 02:31 pm

    If "mymod" is installed as an external progarm (in SCFG), then this shoul already be the case.

    If not, you'd have to make some custom node listing module and run that f global Ctrl-U key handler in SCFG->External Programs->Global Hot Keys.

    Also, is there a way to determine whether or not the sysop is availabl chat within javascript?

    if(bbs.startup_options&BBS_OPT_SYSOP_AVAILABLE)
    print("Sysop is available"):
    else
    print("Sysop is NOT available");


    Wow! Thanks a lot for the quick reply, DM! I didn't see that one in the JS docs!

    See "startup_options" under http://synchro.net/docs/jsobjs.html#bbs_properties

    Thanks again!!

    No prob.

    digital man

    Snapple "Real Fact" #4:
    Slugs have 4 noses.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Ktulu@VERT/ROI to Digital Man on Tue May 24 06:12:00 2005
    Re: Node Status...
    By: Digital Man to Ktulu on Tue May 24 2005 01:18 am

    DM,

    How do I go about making a prompt that responds with hotkeys? I see there's a read() function. However it returns right away. Do I have to enclose it within a
    loop or something? And yes. I'm obviously playing with JS on the console side of things. :)

    Ktulu

    ---
    þ Synchronet þ Realm of Insanity - telnet://roi.forem.org - Milwaukee, WI
  • From Digital Man@VERT to Ktulu on Tue May 24 08:25:00 2005
    Re: HotKeys...
    By: Ktulu to Digital Man on Tue May 24 2005 10:12 am

    Re: Node Status...
    By: Digital Man to Ktulu on Tue May 24 2005 01:18 am

    DM,

    How do I go about making a prompt that responds with hotkeys?

    console.getkey()

    See http://synchro.net/docs/jsobjs.html#console_methods for details.

    digital man

    Snapple "Real Fact" #151:
    The fastest served ball in tennis was clocked at 154 miles per hour in 1963.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Ktulu@VERT/ROI to Digital Man on Wed May 25 07:02:00 2005
    Re: HotKeys...
    By: Digital Man to Ktulu on Tue May 24 2005 01:25 pm


    console.getkey()

    See http://synchro.net/docs/jsobjs.html#console_methods for details.



    Thanks again, DM! You're a big help!


    ---
    þ Synchronet þ Realm of Insanity - telnet://roi.forem.org - Milwaukee, WI