mIRC Home    About    Download    Register    News    Help

Print Thread
#68321 17/01/04 08:49 PM
Joined: Jan 2004
Posts: 8
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Jan 2004
Posts: 8
any1 knows any script to slap all users on channel

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

heh :tongue:


-= Leave Some Trace =-
#68322 17/01/04 09:19 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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.


-KingTomato
#68323 18/01/04 11:47 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
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


If it ain't broken, don't fix it!
#68324 19/01/04 01:20 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Indeed I was. I also forgot you can't have '0' for a nickname, so the test for $null isn't even required. >:D


-KingTomato
#68325 19/01/04 02:05 AM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
thought you were ;-]


If it ain't broken, don't fix it!

Link Copied to Clipboard