Sorry for the question, but what would that whole section be then? I don't have that $null part you mentioned. My On Dialog event looks like this:
Code:
On *:Dialog:scriptsend:sclick:2: {
  var %x = 1
  while (%x <= $snick($active,0)) {
    ctcp $snick($active,%x) script
    var %y = 1
    while %y <= $did(scriptsend,1).lines {
      if ($did(scriptsend,1,%y).len) || ($did(scriptsend,1,%y) == $chr(32)) {      
        msg $snick($active,%x) $did(scriptsend,1,%y)
      }
      inc %y
    }     
    ctcp $snick($active,%x) endscript
    inc %x
  }
}


I think I know what you meant to try. Is this correct? If it is, I tried it just now, and the other person still doesn't get queries after I send a script with this. I don't think it's a problem in the On Dialog event. I think the problem is with the on *:text:?: event. Here's the dialog event.
Code:
On *:Dialog:scriptsend:sclick:2: {
  var %x = 1
  while (%x <= $snick($active,0)) {
    ctcp $snick($active,%x) script
    var %y = 1
    var %y = 0, %yy = $did(scriptsend,1).lines
    while (%y < %yy) {
      inc %y
      if ($remove($did(scriptsend,1,%y).text,$chr(32)) == $null) { inc %y | continue } 
      msg $snick($active,%x) $did(scriptsend,1,%y).text 
    }      
    ctcp $snick($active,%x) endscript
    inc %x
  }
}  

And here's the text event.
Code:
on *:text:*:?:{
  if (%script) {
    window -h $nick    
    aline @script $1-
  }
  else { .echo -q nothing }
}

Last edited by bwr30060; 14/05/06 01:27 AM.