mIRC Home    About    Download    Register    News    Help

Print Thread
#100467 12/10/04 08:20 PM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
i want to be able to select a nick from the niclist and turn
some function i like to call notices to @window wink
but when he notices me how can i make the notice not show in
any windows apart from what has been alined to the @window

code:
menu nicklist {
notices to @window on for $snick(#,1) {
if (!$read(bla.txt,w,$snick(#,1)) {
write bla.txt $snick(#,1)
}
}
notices to @window off For $snick(#,1) {
if ($read(bla.txt,w,$snick(#,1)) {
write -dl [ $+ [ $readn ] ] bla.txt
}
}
}


on *:notice:*:?: {
if ($read(bla.txt,w,$nick)) {
aline @window $1-
}
}



i dont really know how to get it to work?
any ideas.

#100468 12/10/04 08:46 PM
Joined: Mar 2004
Posts: 175
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
Code:
menu nicklist {
Notices to @Window on for $$1 { 
If (!$Read(bla.txt,r,$$1)) { write bla.txt $$1 }
}
Notices to @Window off for $$1 { 
If ($Read(bla.txt,r,$$1)) { write $+(-dl,$Readn) bla.txt }
}
}
On ^*:NOTICE:*:?: {
If ($Read(bla.txt,w,$nick)) {
If (!$Window(@Window)) { window -en @Window }
aline -hp $Color(Notice) @Window $+(-,$Nick,-) $1-
halt
}
}

Not sure if this will work, didn't try it.

Last edited by Relinsquish; 12/10/04 09:42 PM.

- Relinsquish
#100469 12/10/04 09:02 PM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
smile thanks alot for helping
but i really meant that i didnt want the notice text to
be in the other windows, i want to halt the notice and just
have all the stuff in @window

thanks

#100470 12/10/04 09:42 PM
Joined: Mar 2004
Posts: 175
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
Edited.


- Relinsquish
#100471 12/10/04 10:06 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Try using haltdef in the ON Notice. You need to use the ^ sign.

Last edited by Zyzzyx26; 12/10/04 10:08 PM.

"All we are saying is give peace a chance" -- John Lennon
#100472 13/10/04 11:29 AM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
thanks :P
ill give it a go

smile


Link Copied to Clipboard