mIRC Homepage
Posted By: Sephiroth_ Notifylist - 10/10/04 10:00 PM
I want to customize a notify sound for every single nick... if he signon/signoff

Also it should have multiserver support since the most features in mIRC have multiserver support but not the notify list... frown

I know both is scriptable but i don't want to write it.
Posted By: sparta Re: Notifylist - 11/10/04 11:43 AM
Code:
on *:NOTIFY:{
 if ($nick == nick1) { splay $mircdirwav\nick1.wav | goto end }
 if ($nick == nick2) { splay $mircdirwav\nick2.wav | goto end }

 if ($nick == nick3) { splay $mircdirwav\nick3.wav | goto end }
:end
}

and that goes to your remote.. ALT + R in mirc.. just remember to place the wav files you want to use in your mirc dir/wav/ ..
Posted By: tidy_trax Re: Notifylist - 11/10/04 03:51 PM
That's not multiserver, he also doesn't want a script.
Posted By: Seifer Re: Notifylist - 11/10/04 07:54 PM
There's no need for goto end, use if, elseif and else.

Code:
on *:NOTIFY: {
  if ($nick == Nick1) { }
  elseif ($nick == Nick2) { }
  else { }
}
Posted By: dr_Eamer Re: Notifylist - 16/10/04 12:35 PM
As a matter of fact, it is proven that you can avoid ALL goto usage with if's and while's. Noone should ever use a goto command! It is a basic principle of structured programming. Makes scripts easier to read, understand, update etc etc...
Posted By: FiberOPtics Re: Notifylist - 16/10/04 03:51 PM
Hi,

I agree with you.

There are some exceptions though.

For example, I like using this in my RPG:
Code:
 
alias tmsg {
  var %a = $$1
  goto %a
  :A | return msgchan 
  :B | return msgteams
  :C | return msgchallenge
  :D | return msgdcctriv
  :E | return msgchat $$2
  :F | return msgnotice $$2
  %a | return Incorrect flag.
}

I prefer using goto, because that way the parser doesn't need to evaluate each if, it just goes straight to the right label, and returns the result.

Though, I do think using goto to do iterations is horrible, hehe.

Greets
© mIRC Discussion Forums