• Baja to JS conversion:

    From Digital Man@VERT to Corey on Mon Oct 26 18:23:56 2009
    /* Replace this Baja code:ã:doorsãcmd_homeãcompare_user_misc UM_expertãif_falseã menu 3stooges\doorsã end_ifããasyncã... with this JS code: */ããload("sbbsdefs.js");ããwhile(bbs.online) {ã if(!(user.settings & USER_EXPERT))ã bbs.menu("3stooges/doors");ãã/* Replace this Baja code:ãã# Display main Promptãprint " Games "ãã# Get key (with / extended commands allowed)ãcompare_user_misc UM_COLDKEYSãif_falseã getkeyeãelseã getstrupr 60ã endifãã... with this JS code: */ãã console.print(" Games ");ã var key=console.getkey(K_UPPER);ãã/* Replace this Baja code:ãã# Show the key hitãprintkeyãlogkeyãã... this this JS code: */ãã console.print(key + "\r\n");ã bbs.log_key(key);ãã/* Replace this Baja code:ããcmdkey ?ã compare_user_misc UM_expertã if_trueã menu doorsã end_ifã end_cmdããcmdkey Aã exec_xtrn amb4ã end_cmdãã... with this JS code: */ãã switch(key) {ã case '?':ã if(user.settings & USER_EXPERT)ã bbs.menu("doors");ã break;ã case 'A':ã bbs.exec_xtrn("amb4");ã break;ã }ã}ããThat should be enough to get you going...ãã digital manããSnapple "Real Fact" #82:ãAugust has the highest percentage of births.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Corey@VERT/TSGC to Digital Man on Mon Oct 26 21:01:08 2009
    Re: Baja to JS conversion:ã By: Digital Man to Corey on Mon Oct 26 2009 06:23 pmãã > /* Replace this Baja code:ã > :doorsã > cmd_homeã > compare_user_misc UM_expertã > if_falseã > menu 3stooges\doorsã > end_ifã > ã > asyncã > ... with this JS code: */ã > ã > load("sbbsdefs.js");ã > ã > while(bbs.online) {ã > if(!(user.settings & USER_EXPERT))ã > bbs.menu("3stooges/doors");ã > ã > /* Replace this Baja code:ã > ã > # Display main Promptã > print " Games "ã > ã > # Get key (with / extended commands allowed)ã > compare_user_misc UM_COLDKEYSã > if_falseã > getkeyeã > elseã > getstrupr 60ã > endifã > ã > ... with this JS code: */ã > ã > console.print(" Games ");ã > var key=console.getkey(K_UPPER);ã > ã > /* Replace this Baja code:ã > ã > # Show the key hitã > printkeyã > logkeyã > ã > ... this this JS code: */ã > ã > console.print(key + "\r\n");ã > bbs.log_key(key);ã > ã > /* Replace this Baja code:ã > ã > cmdkey ?ã > compare_user_misc UM_expertã > if_trueã > menu doorsã > end_ifã > end_cmdã > ã > cmdkey Aã > exec_xtrn amb4ã > end_cmdã > ã > ... with this JS code: */ã > ã > switch(key) {ã > case '?':ã > if(user.settings & USER_EXPERT)ã > bbs.menu("doors");ã > break;ã > case 'A':ã > bbs.exec_xtrn("amb4");ã > break;ã > }ã > }ã > ã > That should be enough to get you going...ã > ã > digital manã > ã > Snapple "Real Fact" #82:ã > August has the highest percentage of births.ã > ããno I mean in the classic_shell.jsãI want to Switch to all js scripts, instead of baja.ããCaput meum major podice meo.ãThis message has ended, go in peace...ãã---ã þ Synchronet þ Three Stooges Gentlemens Club - Las Vegas, Nvã
  • From Digital Man@VERT to Corey on Mon Oct 26 22:19:15 2009
    Re: Baja to JS conversion:ã By: Corey to Digital Man on Mon Oct 26 2009 09:01 pmãã > Re: Baja to JS conversion:ã > By: Digital Man to Corey on Mon Oct 26 2009 06:23 pmã >ã > > /* Replace this Baja code:ã > > :doorsã > > cmd_homeã > > compare_user_misc UM_expertã > > if_falseã > > menu 3stooges\doorsã > > end_ifã > >ã > > asyncã > > ... with this JS code: */ã > >ã > > load("sbbsdefs.js");ã > >ã > > while(bbs.online) {ã > > if(!(user.settings & USER_EXPERT))ã > > bbs.menu("3stooges/doors");ã > >ã > > /* Replace this Baja code:ã > >ã > > # Display main Promptã > > print " Games "ã > >ã > > # Get key (with / extended commands allowed)ã > > compare_user_misc UM_COLDKEYSã > > if_falseã > > getkeyeã > > elseã > > getstrupr 60ã > > endifã > >ã > > ... with this JS code: */ã > >ã > > console.print(" Games ");ã > > var key=console.getkey(K_UPPER);ã > >ã > > /* Replace this Baja code:ã > >ã > > # Show the key hitã > > printkeyã > > logkeyã > >ã > > ... this this JS code: */ã > >ã > > console.print(key + "\r\n");ã > > bbs.log_key(key);ã > >ã > > /* Replace this Baja code:ã > >ã > > cmdkey ?ã > > compare_user_misc UM_expertã > > if_trueã > > menu doorsã > > end_ifã > > end_cmdã > >ã > > cmdkey Aã > > exec_xtrn amb4ã > > end_cmdã > >ã > > ... with this JS code: */ã > >ã > > switch(key) {ã > > case '?':ã > > if(user.settings & USER_EXPERT)ã > > bbs.menu("doors");ã > > break;ã > > case 'A':ã > > bbs.exec_xtrn("amb4");ã > > break;ã > > }ã > > }ã > >ã > > That should be enough to get you going...ãã > no I mean in the classic_shell.jsã > I want to Switch to all js scripts, instead of baja.ããAnd I provided you with the JS equivalents for your Baja code.ããThe stock xtrn_sec module is in JS (exec/xtrn_sec.js), so I'm not really sureãwhat you're asking for.ãã digital manããSnapple "Real Fact" #35:ãElephants only sleep 2 hours a day.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From MCMLXXIX@VERT/MDJ to Digital Man on Tue Oct 27 07:56:41 2009
    Re: Baja to JS conversion:ã By: Digital Man to Corey on Mon Oct 26 2009 22:19:15ãã > The stock xtrn_sec module is in JS (exec/xtrn_sec.js), so I'm not reallyã > sure what you're asking for.ããthis reminds me of my beginnings here.ãã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã