mass hugger

By Cheiron on Sep 01, 2008

a mass action in channel in a way that will not cause you to flood off the server. as the script says... I seriously do not recommend using it. but the idea is there.

use at own risk.

goes into remotes

command to use is /hugflood #channelname

channelname change to the channel it is used in

; /hugflood #channelname
;
; A flood-conscious way of hugging a channel.
; I seriously do not recommend using it, but it's still good practice.

alias hugflood {
  ; Argument check.
  if ( $1 == $null ) {
    echo -a /hugflood #channel
    echo -a Hugs a whole channel.
    return
  }
  ; Enumerate total people in the channel.
  var %hf.total $nick($$1,0)
  ; Initialize index
  var %hf.i 1
  ; Set a timer for each user present at the time of the snapshot.
  while ( %hf.i <= %hf.total ) {
    if ( $nick($$1,%hf.i) != $me ) {
      ; THIS IS THE NOTICE LINE, uncomment it if you really want to notice all those people.
      ; .timerHF [ $+ [ %hf.i ] ] 1 %hf.i hf.noticer $nick($$1,%hf.i) $$1 $me hugs $nick($$1,%hf.i) tightly!

      ; THIS IS AN HARMLESS TEST LINE THAT PRINTS IN LOCAL
      .timerHF [ $+ [ %hf.i ] ] 1 %hf.i echo -a notice $nick($$1,%hf.i) $me hugs $nick($$1,%hf.i) tightly!

    }
    inc %hf.i
  }
}

; hf.noticer nick #channel message
alias hf.noticer {
  ; This is a service alias that makes sure that no one that exited the channel gets noticed.
  if ( $$1 ison $$2 ) {
    notice $$1 $$3-
  }
}

Comments

Sign in to comment.
Blitzjager   -  Oct 15, 2008

Meh.

alias HUGZ {
  var %HUGZ 1
  var %HUGZtimer 1
  while (%HUGZ <= $nick($chan,0,a,ov)) {
    .timer 1 %HUGZtimer /describe $chan hugz $nick($chan,%HUGZ,a,ov)
    inc %HUGZ 1
    inc %HUGZtimer 2
  }
}
 Respond  
Cheiron   -  Sep 13, 2008

looks like i got the group in a mess with this one lol.. i can mass hug a channel of 50+ in room without flooding off the server as it stands with mine. now that is an acheivement lol. but like i said in the beginning... I do not recommend this script's use at all.

 Respond  
EL   -  Sep 13, 2008

huh wat problem do i wish i had?.`-.-´

 Respond  
Eugenio   -  Sep 13, 2008

ROFL

 Respond  
napa182   -  Sep 13, 2008

lmao Dan wishing he had that problem ;x

 Respond  
EL   -  Sep 13, 2008

Even stil one lineing it you have to cut it up if its to long most is liek 464 chars to a ling before it breaks off,so jsut have to cut it in half and send till ts done not a biggie but mite be 2 or 3 lines depending on the size of the channel,then again 2 or 3 long line sia far batter then 55 lines O_O.`-.-´

 Respond  
napa182   -  Sep 13, 2008

i would still go with this so it put's it all on one line

alias hug {
  var %a = $nick(#,0)
  while (%a) {
    if ($nick(#,%a) != $me) var %m = $addtok(%m,$v1,32)
    dec %a
  }
  describe $chan Hug's %m
}
 Respond  
Zmodem   -  Sep 13, 2008

That's because you cannot echo $chr(32) because it is basically treated as a $null value. See for yourself: //echo -a $chr(32) -> * /echo: insufficient parameters.

Let's also not forget that sometimes there are large amounts of people in a channel, so this script may come dangerously close to flooding heh.

 Respond  
napa182   -  Sep 13, 2008

hmm well ur version of it gives and error * /echo: insufficient parameters (line 4

ez fix for ur version

alias hug {
  var %a = $nick(#,0)
  while (%a) {
    if ($nick(#,%a) != $me) describe # hug's $v1
    dec %a
  }
}
 Respond  
Eugenio   -  Sep 13, 2008

rofl FAIL

 Respond  
DiGiTaL   -  Sep 13, 2008

The echo works fine, I just tested it on my mirc and it didnt cause any problems. Could be difference in mirc versions.

 Respond  
napa182   -  Sep 13, 2008

yes i knot echo is a test but if you are going to comment a rewrite of a snippet why not make sure it works before you comment it.

 Respond  
DiGiTaL   -  Sep 13, 2008

Napa, the //echo is a test clause, ofcourse you'd change that to line use /notice instead of /echo.

 Respond  
EL   -  Sep 13, 2008

rofl //me hugs $chan .`-.-´

 Respond  
Zmodem   -  Sep 13, 2008

alias hugeveryone if (#) { me HUGS everyone }

 Respond  
napa182   -  Sep 13, 2008

DiGiTaL
the way you did it is a mess you have it echo when the maker wants it to action in the room and you have it flood as well as an error * /echo: insufficient parameters (line 4, at lest put the output on one line to cut down flooding.

 Respond  
Eugenio   -  Sep 13, 2008

rofl @ hes var
/me eyes goggle

 Respond  
EL   -  Sep 13, 2008

even tho its been Napatized and Dig just posted one i ll post mine that i jsut threw togetherones does th list top to bottom one does it bottom to top;p

alias _Hugs1 { var %_Nicks = $nick($chan,0) | while (%_Nicks) { | if ($nick($chan,%_Nicks) != $me) { var %_Hug $addtok(%_Hug,$nick($chan,%_Nicks),32)) } | if (%_Nicks == 1) { describe $chan Hugs %_Hug $+ ! } | dec %_Nicks } }
alias _Hugs2 { var %_Nicks = $nick($chan,0) , %_Nicks_X 1 | while (%_Nicks_X <= %_Nicks) { | if ($nick($chan,%_Nicks_X) != $me) { var %_Hug $addtok(%_Hug,$nick($chan,%_Nicks_X),32)) } | if (%_Nicks_X == %_Nicks) { describe $chan Hugs %_Hug $+ ! } | inc %_Nicks_X  } }
 Respond  
DiGiTaL   -  Sep 13, 2008

alias hug {
var %nicks = $nick($chan,0)
while (%nicks) {
/echo -a $iif($nick($chan,%nicks) == $me,$chr(32),hugs $nick($chan,%nicks))
dec -z %nicks
}
}

:/ You always want to make the code smaller and efficient. No one likes a big mess.

 Respond  
napalm`   -  Sep 01, 2008

LoL

 Respond  
ChunkieMonkey   -  Sep 01, 2008

srry cheiron

 Respond  
Eugenio   -  Sep 01, 2008

rofl

 Respond  
Cheiron   -  Sep 01, 2008

can we keep comments on the scripts guys. this is where the site is also going down the toilet. i dont mind a bit here and there but it overwhelms the script reviews that have been posted :)

 Respond  
^Neptune   -  Sep 01, 2008

better script?

on *:TEXT:*:#: { msg $chan Shut up }

ShutupScript v0.1

 Respond  
ChunkieMonkey   -  Sep 01, 2008

lmao lie, im workin on a better script, testing on localhost

 Respond  
EL   -  Sep 01, 2008

Rofldotn try to take all the credit monkey boi and a lil work on yur part those lame codes u say cane be ace;p

 Respond  
ChunkieMonkey   -  Sep 01, 2008

no, i made iq -100 with lame dialog.

 Respond  
EL   -  Sep 01, 2008

Rofl

Great, now the overall IQ of hawkee JUST reached -100

smh long way to go...

 Respond  
Cheiron   -  Sep 01, 2008

it can be edited for a slap if you so desired lol.... thanks for the clean up napa also. will change it in a bit.

 Respond  
^Neptune   -  Sep 01, 2008

Great, now the overall IQ of hawkee JUST reached -100

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.