Mass Notice

By LucSatise on Feb 18, 2008

This script is similar to the /broadcast script made before but can be used if you are not IRCop.

Syntax:
/mnotice #Chan ---- Sends a mass notice to everyone in #Chan
/mnotice AChan ---- Sends a Mass notice to everyone you are in contact with in ur channels.

Enjoy

alias mnotice {
  if ($1 == $null) { echo $active 2* /mnotice: Not enough parameters. | halt }
  if ($left($1,1) == #) { channelnotice $1 $2- }
  if ($1 == AChan) { allChanNotice $2- }
}
alias channelnotice {
  set %Total $nick($1,0)
  set %Count 0
  while (%Count < %Total) {
    inc %Count
    .notice $nick($1,%Count) [Mass Notice] $2-
  }
  unset %Count
  unset %Total
}
alias allChanNotice {
  set %TotalChans $chan(0)
  set %CountChan 0
  while (%CountChan <= %TotalChans) {
    inc %CountChan
    channelnotice $chan(%CountChan) $2-
  }
  unset %TotalChans
  unset %CountChan
}

Comments

Sign in to comment.
LucSatise   -  Jun 05, 2008

that explains alot... edited

 Respond  
napa182   -  Mar 06, 2008

did you notice that on ur allChanNotice aliases you screwed up ur vars? you set %TotalChans and %CountChan but on ur while loop you are trying to count %Count and %Total =/

 Respond  
LucSatise   -  Mar 06, 2008

Then u be smart and do not notice in big channels.

 Respond  
SnoooP   -  Feb 19, 2008

that is true indeed. let me rephrase.....

if you are in a channel that is not your own and is for example the main network channel the help channel or an ircops channel in some cases. THEY WILL kill you for it!

 Respond  
LucSatise   -  Feb 19, 2008

@Snoop They cant kill u if its ur chan

 Respond  
SnoooP   -  Feb 19, 2008

i agree with what korvin and jonesy44 said... 1) /notice #chan - is easier to use and does pretty much the same thing... 2) some ircops will not like this at all and may like jonesy44 said kill you.. which would be a shame.

 Respond  
Gemster   -  Feb 19, 2008

LucSatise

And im gonna set it so that you can specify nicks

this you and use in nicklist

notice $$* $$?=\"what do u want to say\"
 Respond  
LucSatise   -  Feb 18, 2008

[quote=Korvin]
/notice #chan would be waaaaaay more sufficient. would be the same thing.
[/quote]
True but i also wanted to see if this wuld work. And im gonna set it so that you can specify nicks it wont notice using another variable.

@Jonesy44 Vars will just confuse me cos i\'ve used set for so long :D but i\'l try for next one.

 Respond  
juhapuha   -  Feb 18, 2008

while (%x) {
notice $nick($1,%x) * :)

 Respond  
juhapuha   -  Feb 18, 2008

You could just use var %x $nick($1,0)
while (%i) {
notice $nick($1,%i) Sorry for spamming, i will excess flood soon.. $2-

 Respond  
Korvin   -  Feb 18, 2008

/notice #chan would be waaaaaay more sufficient. would be the same thing.

 Respond  
Jonesy44   -  Feb 18, 2008

[b]Nice script, although be carefull of being killed/banned for mass spamming .. some power tripping ops dong like that kinda stuff =P

Also, instead of setting and unsetting vars try using:

var %Total = $nick($1,0), %Count = 0

[/b]

[size=10]~TH[/size]

 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.