mIRC Homepage
Posted By: BassReFLeX SLAP SCRIPT - 17/01/04 08:49 PM
any1 knows any script to slap all users on channel

slap {
var %s
%s = slap *@*
}

heh :tongue:
Posted By: KingTomato Re: SLAP SCRIPT - 17/01/04 09:19 PM
Code:
aliias slapall {
  var %u  = 1, %chan = $active, %nicks
  while ($nick(%chan, %u) != %null) {
    var %nick = $ifmatch
    if (%nick != $me) %nicks = %nicks $+(%nick,$chr(44))
    /inc %u
  }
  if (%nicks) /describe %chan slaps $left(%nicks, -1) around a bit with a large trout
}


Goes in remotes, then use /slapall in the channel you wish to slap everyone in.
Posted By: Doqnach Re: SLAP SCRIPT - 18/01/04 11:47 PM
replace %null with $null ;-]

I think king was up late or something ;-P

Code:
alias slapall {
  var %i = 1
  if ($active ischan) {
    while ($nick($chan,%i)) {
      if ($nick($chan,%i) != $me) %nicks = %nicks $+($ifmatch,$chr(44))
      inc %i
    }
  }
  if (%nicks) describe $chan slaps $left(%nicks, -1) around a bit with a large trout
}


a little note: don't use this on big channels because it will overload the %var or your line buffer
Posted By: KingTomato Re: SLAP SCRIPT - 19/01/04 01:20 AM
Indeed I was. I also forgot you can't have '0' for a nickname, so the test for $null isn't even required. >:D
Posted By: Doqnach Re: SLAP SCRIPT - 19/01/04 02:05 AM
thought you were ;-]
© mIRC Discussion Forums