mIRC Homepage

on 1:NOTICE:*:*:

Posted By: Cyclone

on 1:NOTICE:*:*: - 06/02/04 10:22 PM

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...
Posted By: DaveC

Re: on 1:NOTICE:*:*: - 06/02/04 10:35 PM

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- )
}
Posted By: Cyclone

Re: on 1:NOTICE:*:*: - 07/02/04 12:33 AM

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...
Posted By: Iori

Re: on 1:NOTICE:*:*: - 07/02/04 07:09 AM

"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-) }
}
Posted By: Cyclone

Re: on 1:NOTICE:*:*: - 07/02/04 09:02 AM

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?

Posted By: Iori

Re: on 1:NOTICE:*:*: - 07/02/04 01:46 PM

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..
Posted By: Cyclone

Re: on 1:NOTICE:*:*: - 09/02/04 10:36 AM

Thanks very much for your time and advice... I now have it sorted.

Your help is much appreciated, once again.

best regards smile
© 2020 mIRC Discussion Forums