home *** CD-ROM | disk | FTP | other *** search
- Variables (may be used globally):
-
- ## #-sign (not a variabel)
- #? Variabel ? value (1-9)
- #a Users address
- #b Users birthdate
- #c Users city
- #d Downloaded files
- #e Messages written
- #f Messages read
- #g Messages dumped
- #h Users firstname
- #i Users lastname
- #j Name of last up/downloaded file
- #k Current conferense name
- #l Time left
- #n Nodenumber
- #p Uploaded files
- #r Uploaded bytes
- #s Downloaded bytes
- #t Current time and date
- #u Users name
- #w Total time
-
-
- Commands:
-
- Text Writes "Text" to screen.
- #ansi foobar Jumps to foobar if user uses ANSI.
- #bbbs command Executes a BBBS command.
- #delay sec Dealy sec seconds.
- #dos command Execute DOS command.
- #exit Exits from script.
- #file foobar.fil Assigns the file foobar.fil for use with
- write(ln). Appendsd data to file.
- #goto foobar Jumps to foobar
- #if n "foobar" foobar2 Jumps to foobar2 if the variable #n = foobar
- #input n x foobar Writes foobar to screen and waits for
- intput for the #n variable. x determines
- the length of the variable.
- #jump foobar Changes to the script foobar and continues
- execution from it's beginng.
- #label foobar Assigns a place to where you can jump in
- the script.
- #language n foobar Jumps to foobar if user uses language n.
- #local foobar Jump to foobar if user is local.
- #lognro x1 x2 foobar Jumps to foobar if user has called at
- least x1 times but not more than x2 times.
- #logoff Logs out the user immideately
- #quick foobar Jumps to foobar if user logged in using
- quicklogin.
- #resume foobar Jumps to foobar if user has written a resumé.
- #set n text.. Sets the variable #n to "text..".
- #show foobar.fil Types the file foobar.fil to screen.
- #ssysop x Sets sysop level temporary to level x.
- #sysop foobar Jumps to foobar if user has sysop rights
- #write text... Writes to file, assigned with #file,
- without LF. Variables may be used.
- #writeln text... Same as #write but with LF.
-
-
- Scriptnames:
-
- SCRIPT Run by Main Command <A>nswer
- ASCRIPT Always run when user logs in.
- GSCRIPT Run when user logges out normally.
- RSCRIPT Is run immideately after a new user has
- given his address.
- DSCRIPT Run after a user has downloaded a file.
- USCRIPT Run after a user has uploaded a file.
- SCR_[SMURFI][123456789] Run by the menu commands Y1-Y9.
- With these you can add commands to the BBBS.
- S = SysOp Menu
- M = Main Menu
- U = Utilities Menu
- R = Read Menu
- F = File Menu
- I = SigOp Menu
-
-
- Examples:
-
- --ascript--
- #Quick SkipBirth
- #Show C:\BBS\MEN\BIRTHDAY
- #Label SkipBirth
- #Resume ResumeOK
- #Language 1 SuomiRes
- #Language 2 SwedRes
-
- >>> Not entered any information about yourself yet? Maybe it's
- >>> about time you did, use Q EDIT to tell us about yourself!
-
- #Goto ResumeOK
- #Label SuomiRes
-
- >>> Et ole kirjoittanut mitään tietoja itsestäsi vielä? Ehkä
- >>> olisi jo aika, käytä komentoa Q EDIT kertoaksesi itsestäsi!
-
- #Goto ResumeOK
- #Label SwedRes
-
- >>> Du ha inte skrivit något om dig själv ännu? Kanske det skulla vara
- >>> på sin plats att använda kommandot Q EDIT och berätta om dig själv!
-
- #Label ResumeOK
- #Set 1 #U
- #If 1 "KIM HEINO" SetMac
- #Goto MacOK
- #Label SetMac
- #BBBS U MAC 1 QW M,R,
- #BBBS Q
- #Label MacOK
- #Exit
- --cut--
-
-
-
- --script--
- This is just a test file for BBBS's scripts.
- You have nothing to do here...
-
- Press enter to the next question.
-
- #goto foo
- #label foobar
- Foobar!
- #exit
- #label foo
- ##Your name is #u.
- #input 1 5 Foo:
- #if 1 "" loppu
- #file c:\bbs\men\bull69
- #writeln #u
- #if 1 "foo" foobar
- You entered "#1" which is wrong answer!
- #label loppu
- #exit
- --cut--
-
-