mIRC Home    About    Download    Register    News    Help

Print Thread
on 1:NOTICE:*:*: #70526 06/02/04 10:22 PM
Joined: Feb 2004
Posts: 54
Cyclone Offline OP
Babel fish
OP Offline
Babel fish
Joined: Feb 2004
Posts: 54
Can somebody please help me out and tell me why these line from my script only allow notices from the SexGod nick?

#sx2.sexgodnote off
on 1:NOTICE:*:*: {
if ($nick == sexgod) sx2echo 14,0 $+ $sx2.kbig( $nick ) $sx2.sgod( $1- )
}
#sx2.sexgodnote end

#sx2.nicksvnote on
on 1:NOTICE:*:*: {
if ($nick == nickserv) sx2echo 14,0 $+ $sx2.nksv( $nick ) $sx2.nksv( $1- )
}
#sx2.nicksvnote end

#sx2.memosvnote on
on *:NOTICE:*:*: {
if ($nick == memoserv) sx2echo 14,0 $+ $sx2.cham( $nick ) $sx2.cham( $1- )
}
#sx2.memosvnote end

Thanks for all you can help me with...

Re: on 1:NOTICE:*:*: #70527 06/02/04 10:35 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Are all those in the same remote file?, if so its only doing the first one, then it stops as it only well do one identical event in a remote file. (this might be wrong as the levels are 1 1 *, which might make the event unidentical? i dont know i always use *)

you could try this, if there all in one file.

on *:NOTICE:*:*: {
if ($nick == sexgod) sx2echo 14,0 $+ $sx2.kbig( $nick ) $sx2.sgod( $1- )
if ($nick == nickserv) sx2echo 14,0 $+ $sx2.nksv( $nick ) $sx2.nksv( $1- )
if ($nick == memoserv) sx2echo 14,0 $+ $sx2.cham( $nick ) $sx2.cham( $1- )
}

Re: on 1:NOTICE:*:*: #70528 07/02/04 12:33 AM
Joined: Feb 2004
Posts: 54
Cyclone Offline OP
Babel fish
OP Offline
Babel fish
Joined: Feb 2004
Posts: 54
That's exactly what i was wanting to know thank you very much smile

The reason i wanted to use them seperately in groups was because i need to be able to switch them ON|OFF at will.

Thanks once again...

Re: on 1:NOTICE:*:*: #70529 07/02/04 07:09 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
"because i need to be able to switch them ON|OFF at will."
Instead of enabling/disabling the #groups, you could set or unset %sx2.XXXXXXnote. (You only need to "/set %sx2.XXXXXXnote 1" for the condition to be true)
Code:
on *:NOTICE:*:*:{
  if ($nick == sexgod) && ([color:blue]%sx2.sexgodnote[/color]) { sx2echo 14,00 $+ $sx2.kbig($nick) $sx2.sgod($1-) }
  if ($nick == nickserv) && ([color:blue]%sx2.nicksvnote[/color]) { sx2echo 14,0 $+ $sx2.nksv($nick) $sx2.nksv($1-) }
  if ($nick == memoserv) && ([color:blue]%sx2.memosvnote[/color]) { sx2echo 14,0 $+ $sx2.cham($nick) $sx2.cham($1-) }
}

Re: on 1:NOTICE:*:*: #70530 07/02/04 09:02 AM
Joined: Feb 2004
Posts: 54
Cyclone Offline OP
Babel fish
OP Offline
Babel fish
Joined: Feb 2004
Posts: 54
Thanks for the advice... Please treat me like an idiot, because vars are my weakness LOL!

(You only need to "/set %sx2.XXXXXXnote 1" for the condition to be true)

Could you explain what you mean by setting "%sx2.XXXXXXnote 1" and how to achieve it?


Re: on 1:NOTICE:*:*: #70531 07/02/04 01:46 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Well for instance, somewhere in your original code (possibly popups) you had
.enable #sx2.sexgodnote and .disable #sx2.sexgodnote
to turn that option on|off. To use the variables, what you need do is replace those with
set %sx2.sexgodnote 1 and unset %sx2.sexgodnote

Do the same for the other two..

Re: on 1:NOTICE:*:*: #70532 09/02/04 10:36 AM
Joined: Feb 2004
Posts: 54
Cyclone Offline OP
Babel fish
OP Offline
Babel fish
Joined: Feb 2004
Posts: 54
Thanks very much for your time and advice... I now have it sorted.

Your help is much appreciated, once again.

best regards smile