mIRC Home    About    Download    Register    News    Help

Print Thread
/anotice #2629 19/12/02 09:49 PM
Joined: Dec 2002
Posts: 7
P
Proxy Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Dec 2002
Posts: 7
If some1 would be very very nice and script something for me?

I need so if i type /anotice text the channels will get the notice "text" but not ops! Please help me //Proxy

Last edited by Proxy; 19/12/02 09:52 PM.
Re: /anotice #2630 19/12/02 10:01 PM
Joined: Dec 2002
Posts: 40
L
Lucifer Offline
Ameglian cow
Offline
Ameglian cow
L
Joined: Dec 2002
Posts: 40
This should work:
anotice {
var %i = 1
while ($nick($chan,0,r) >= %i) { msg $nick($chan,%i,r) $$1 | inc %i }
var %a = 1
while ($nick($chan,0,v) >= %a) { msg $nick($chan.%a,v) $$1 | inc %a }
}
hope it helps

Re: /anotice #2631 19/12/02 10:16 PM
Joined: Dec 2002
Posts: 7
P
Proxy Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Dec 2002
Posts: 7
anotice {
var %i = 1
while ($nick($chan,0,r) >= %i) { msg $nick($chan,%i,r) $$1 | inc %i }
var %a = 1
while ($nick($chan,0,v) >= %a) { msg $nick($chan.%a,v) $$1 | inc %a }
}
_______________________
That wont work frown Typed /anotice Hello
All the chans i where in didnt get an notice saying "hello"
Msg: ANOTICE Unknown command

Re: /anotice #2632 19/12/02 10:17 PM
Joined: Dec 2002
Posts: 18
W
watcher Offline
Pikka bird
Offline
Pikka bird
W
Joined: Dec 2002
Posts: 18
Code:
alias anotice {
  if $window($active).type == channel && $1 {
    var %i 1
    while %i <= $nick(#,0) { if $nick(#,%i) !isop # { .notice $nick(#,%i) $1- } | inc %i }
  }
}


-watcher
Re: /anotice #2633 19/12/02 10:25 PM
Joined: Dec 2002
Posts: 7
P
Proxy Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Dec 2002
Posts: 7
but that code will notice all nicks!
I need so it notices chan, but not ops! In every chan i'm in! Like /amsg !

Please help me!

Re: /anotice #2634 19/12/02 10:34 PM
Joined: Dec 2002
Posts: 40
L
Lucifer Offline
Ameglian cow
Offline
Ameglian cow
L
Joined: Dec 2002
Posts: 40
watchers script won't notice ops thats what the second if is about...

Re: /anotice #2635 19/12/02 10:41 PM
Joined: Dec 2002
Posts: 7
P
Proxy Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Dec 2002
Posts: 7
Wanna give me the complete script for /anotice all chans exept ops in chans please?

Re: /anotice #2636 19/12/02 10:44 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Why can't I think of other use for such script than spamming users?

Re: /anotice #2637 19/12/02 10:48 PM
Joined: Dec 2002
Posts: 18
W
watcher Offline
Pikka bird
Offline
Pikka bird
W
Joined: Dec 2002
Posts: 18
Code:
alias anotice {
  if $chan(0) != 0 && $1 {
    var %i 1,%x 1
    while %x <= $chan(0) {
      while %i <= $nick($chan(%x),0) { if $nick($chan(%x),%i) !isop # && $nick($chan(%x),%i) != $me { .notice $nick($chan(%x),%i) $1- } | inc %i }
      %i = 1
      inc %x
    }
  }
}

:|


-watcher
Re: /anotice #2638 19/12/02 11:01 PM
Joined: Dec 2002
Posts: 843
P
Poppy Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 843
Good point, Online. I can't think of another reason for anyone wanting to /notice users but not ops either shocked


Never compare yourself to others - they're more screwed up than you think.
Re: /anotice #2639 19/12/02 11:04 PM
Joined: Dec 2002
Posts: 7
P
Proxy Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Dec 2002
Posts: 7
alias anotice {
if $chan(0) != 0 && $1 {
var %i 1,%x 1
while %x <= $chan(0) {
while %i <= $nick($chan(%x),0) { if $nick($chan(%x),%i) !isop # && $nick($chan(%x),%i) != $me { .notice $nick($chan(%x),%i) $1- } | inc %i }
%i = 1
inc %x }
}
}


Thats only to current chan i'm in! I need it to be ALL chans i have! And timers so i dont get exess flood, please help!

Re: /anotice #2640 19/12/02 11:08 PM
Joined: Dec 2002
Posts: 5
E
EClaw Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
E
Joined: Dec 2002
Posts: 5
why dont u post a reason for that script `?

Re: /anotice #2641 19/12/02 11:11 PM
Joined: Dec 2002
Posts: 7
P
Proxy Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Dec 2002
Posts: 7
To notice all exept ops, so if i say: /anotice hey all wont get kicked.. (as u do if u notice most chans) Thats my reason!

Re: /anotice #2642 19/12/02 11:23 PM
Joined: Dec 2002
Posts: 843
P
Poppy Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 843
Lame. If you don't abide by a particular channel's rules, you will get kicked. Furthermore, if the ops get wind of the fact that you're messaging everyone but them (and they will) with your lame 'I'm too clever to be kicked' messages, you will get a well earned ban. And if any of said ops happen to be an IRCop, you could even earn yourself a bonus k-line, thrown in at no added cost.


Never compare yourself to others - they're more screwed up than you think.
Re: /anotice #2643 19/12/02 11:55 PM
Joined: Dec 2002
Posts: 2
D
Durg Offline
Bowl of petunias
Offline
Bowl of petunias
D
Joined: Dec 2002
Posts: 2
I highly don't suggest this, due to the fact if there's more than 5 people, you'll start to lag; more than 10, you'll get kicked off the server instantly. Those numbers are variables; the longer the string, the faster you'll be disconnected. Note you can also get akilled on several servers for this. cool

Re: /anotice #2644 19/12/02 11:56 PM
Joined: Dec 2002
Posts: 2
D
Durg Offline
Bowl of petunias
Offline
Bowl of petunias
D
Joined: Dec 2002
Posts: 2
For these who want anotice to be like amsg:
anotice { var %i 0 | while (%i != $chan(0)) { inc %i | notice $chan(%i) $$1- } }

Re: /anotice #2645 20/12/02 11:23 AM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Actually this would behave more like /amsg:
Code:
anotice {
  var %i = 1,%t = $chan(0)
  if (!%t) return
  while (%i &lt;= %t) {
    var %chans = $addtok(%chans,$chan(%i),44)
    inc %i
  }
  notice %chans $$1-
}


It simply sends one multiple target notice instead of a whole bunch of individual ones. Many networks would not take kindly to what could be dozens of notices being sent within a second. At the very least each notice would have a slight delay, at the worst you could be booted off the server.

I'm not entirely certain that all networks will accept multiple targets for notices, but I don't know of any raw 005 token which signifies if they do (or if there's a limit to how many targets they accept).


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: /anotice #2646 20/12/02 07:28 PM
Joined: Dec 2002
Posts: 20
O
OzzY Offline
Ameglian cow
Offline
Ameglian cow
O
Joined: Dec 2002
Posts: 20
I want to say that new release ircu (ircu2.10.11.03) has that feature but you need to be voiced.
/wallvoices command will allow voiced users to send messages just to other voiced users.



Ozan Güven aka OzzY @ UnderNet
Who is a lamer? lamers.org.uk