A note before I do anything else, for some reason a closing } are missing off all my lines for some reason, i thought it was the cut and paste but now i think i might have deleted them by accident, oh well hope it didnt cuase confusion.

lines such as
on *:text:!help:*: { if (%i != on) { sendhelp $nick 1 11 | set -su20 %i on }
should have been
on *:text:!help:*: { if (%i != on) { sendhelp $nick 1 11 | set -su20 %i on } }

but anyway.... what bit didnt uou understand?
was it the alias -l sendhelp or the suff about the reformating and using /play ?


Oh PS: this was formated baddly
Code:
on *:text:!help:*:{
  if (%i = on) { halt }  
  else { msg $nick $read(help.txt,n,1) }
  { msg $nick $read(help.txt,n,2) }
  ...
  { msg $nick $read(help.txt,n,11) }
  { set -s %i on }
  { timer 1 20 unset -s %i }
}

it just happened to do what u wanted, only line 1 was part of the ELSE construct, the rest were always going to be executed by the event, its just that you had used HALT to stop the other condition from procedding to the line following the IF's construct, being this line ... { msg $nick $read(help.txt,n,2) }

[edit]

EEEEEEK omg i stuffed up the /play commands as well
they all should be like this play -thelp $nick help.txt 0 with the help.txt file specified after the $nick

Last edited by DaveC; 16/01/05 10:56 PM.