Run scripts from a different file - 09/11/12 07:47 AM
What sample of code would I use to run set commands in a different file, even though I have a 'master' file with the main commands in it.
alias command { noop $read(commands.txt,w,$1*) }
window -a "status window" | echo -st starting example echo -s ...minimizing and restoring mIRC... showmirc -n showmirc -r echo -st done!
/.play -spc "example.txt" 500
alias example { .play -spc "example.txt" 500 }
window -a "status window" | echo -st starting example echo -s ...minimizing and restoring mIRC... showmirc -n showmirc -r echo -st done!
/.play -spc "example.txt" 500
alias example { .play -spc "example.txt" 500 }
on *:text:*:#: { if ( $chan == #user1 ) { $read(user1.txt) } } on *:text:*:#: { if ( $chan == #user2 ) { $read(user2.txt) } }
on *:text:*!commandexample*:#: { msg $chan command example }
!addcommand isop !command command example
!addcommand public !command command example
if ( $nick isop $chan )
on *:text:*!command*:#:{ msg $chan command example }