mIRC Home    About    Download    Register    News    Help

Print Thread
#110386 06/02/05 10:01 PM
Joined: Sep 2004
Posts: 59
M
MrDoom Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Sep 2004
Posts: 59
Hey guys just wondering what the syntax would be to use !things as an activator in a remote script so that only ops can view the result....thanks

i use this as a remote script,but would only like ops to be able to view the results.....

on *:text:!*:#my channel here: {
if ($nick isop $chan) {
if ($$1 == !things) { msg $chan phone,yawn...etc }
elseif ($$1 == !yawn) { msg $chan }
elseif ($$1 == !look) { msg $chan }
.
.
}
}

#110387 06/02/05 10:12 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
That would fit your needs I suppose, except when there's a fault in it I didn't see.
What in fact is your question, in my opinion you answered yourself already smile.

#110388 06/02/05 10:14 PM
Joined: Sep 2004
Posts: 59
M
MrDoom Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Sep 2004
Posts: 59
that script when the activator is used is seen by everyone in my room,i would like to have it so that only ops see the reply,not everyone in the room.

#110389 06/02/05 10:21 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
on *:text:!*:#my channel here: {
if ($nick isop $chan) {
if ($$1 == !things) { notice $nick phone,yawn...etc }
elseif ($$1 == !yawn) { notice $nick }
elseif ($$1 == !look) { notice $nick }
.
.
}
}

/notice $nick instead of /msg $chan

#110390 06/02/05 10:28 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
not that its that important but $$1 can be replaced with $1, becuase it must exist for the event to have triggered

#110391 06/02/05 10:31 PM
Joined: Sep 2004
Posts: 59
M
MrDoom Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Sep 2004
Posts: 59
ok great,thanks man!


Link Copied to Clipboard