mIRC Homepage
Posted By: sas22 Once reply PM script - 22/06/06 01:20 PM
on *:text:*:?:{
inc %rout [ $+ [ $wildsite ] ] 1
{ msg $nick yo }
if (%rout [ $+ [ $wildsite ] ] > 1) {
halt
unset %rout [ $+ [ $wildsite ] ]
}
}
So I query with a test clone once and it replied then I tried it again for the 2nd time and it still replied
Posted By: hmtX Re: Once reply PM script - 22/06/06 02:16 PM
Code:
on *:text:*:?:{
  if (%rout [ $+ [ $wildsite ] ]) {
    unset %rout [ $+ [ $wildsite ] ]
  }
  else {
    inc %rout [ $+ [ $wildsite ] ]
    msg $nick yo
  }
}


no good though, it'll reply every 2nd time. better change to on open event to prevent this.

Code:
on 1:OPEN:?:*:{
  msg $nick yo
}
Posted By: sas22 Re: Once reply PM script - 22/06/06 02:24 PM
Quote:
Code:
on *:text:*:?:{
  if (%rout [ $+ [ $wildsite ] ]) {
    unset %rout [ $+ [ $wildsite ] ]
  }
  else {
    inc %rout [ $+ [ $wildsite ] ]
    msg $nick yo
  }
}


no good though, it'll reply every 2nd time. better change to on open event to prevent this.

Code:
on 1:OPEN:?:*:{
  msg $nick yo
}
Thanks
© mIRC Discussion Forums