mIRC Homepage
Posted By: miniki Slaps Questions - 11/05/03 11:38 AM
how can add a random colour in the slaps?
i want the nickname of the people who slap by me will random colour

and i want to ask that how can me slap all the people on the channel at once ?
Posted By: Terror_Vdb Re: Slaps Questions - 11/05/03 12:48 PM
alias massslap {
set %i 1
:next
set %nick $nick(#,%i)
if %nick == $null goto done
else { /me slaps  $+ $rand(0,15) $+ $nick(#,%i) $+  on its tight ass :P
inc %i
goto next
:done
}
Posted By: Adrenalin Re: Slaps Questions - 11/05/03 01:29 PM
;Syntax /SlapsAll [Chan] [Interval In Seconds]
Alias SlapsAll {
var %i = 1
If ($me !ison $1) { echo You must join $1 i can't get the nick list | halt }
while (%i <= $nick($1,0)) {
If ($nick($1,%i) != $me) {
.timerslap $+ $nick($1,%i) 1 $calc($2 * %i - %inter) describe $1 slaps $+(,$rand(1,15),$chr(44),$rand(1,15),$nick($1,%i),) around a bit with a large trout }
Else var %inter = $2
inc %i
}
}
Posted By: Terror_Vdb Re: Slaps Questions - 11/05/03 04:01 PM
why so god dammed complicated?
Posted By: Adrenalin Re: Slaps Questions - 11/05/03 04:37 PM
Nothing complicated .. Just i like the while operator ..
And i add the interval ..
With your alias if you whant to slap a channel with 50 peoples you get Excess Flood immediately ..
Posted By: Terror_Vdb Re: Slaps Questions - 11/05/03 05:32 PM
good one didnt thought abou that
Posted By: KingTomato Re: Slaps Questions - 11/05/03 10:55 PM
I'll do you one better, add every name from the channel to the slap list, and do it all at once. And even better yet, it excludes yourself and uses proper grammer. >:F


/Slap All {
/set -u0 %a 1
while (%a <= $nick($active, 0)) {
if ($nick($active, %a) != $me) /set -u0 %nicks $+(%nicks,$chr(32),$nick($active, %a),$iif(%a != $nick($active, 0), $chr(44)))
/inc -u0 %a
}
/set -u0 %nicks $replace(%nicks, $gettok(%nicks, $gettok(%nicks, 0, 32), 32), $+(and,$chr(32),$gettok(%nicks, $gettok(%nicks, 0, 32), 32)))
/me slaps %nicks around a bit with a large trout.
}

Ex: If you had
Adrenaline
ChanSys
KingTomato
Miniki
Terror_Vdb

In the channel, it would say:
* KingTomato slaps Adrenaline, ChanSys, Miniki and Terror_Vbd around a bit with a large trout.

grin
Posted By: Alrac Re: Slaps Questions - 12/05/03 07:27 PM
i like that smile how about listing the users that are +v, i could use that wink
Posted By: miniki Re: Slaps Questions - 13/05/03 07:08 AM
But i really want slap the people one by one and i really dun know how to use Adrenalin's script
well ,i am just a irc newbie :#)
© mIRC Discussion Forums