• Node Status...

    From Ktulu@ROI to All on Monday, May 23, 2005 01:59:00
    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 to Ktulu on Monday, May 23, 2005 13:31:37
    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.
  • From Ktulu@ROI to Digital Man on Tuesday, May 24, 2005 00:35:00
    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 to Ktulu on Tuesday, May 24, 2005 00:18:03
    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.
  • From Ktulu@ROI to Digital Man on Tuesday, May 24, 2005 10:12:00
    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 to Ktulu on Tuesday, May 24, 2005 12:25:43
    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.
  • From Ktulu@ROI to Digital Man on Wednesday, May 25, 2005 11:02:00
    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