mIRC Homepage
Posted By: Garou Send notice - 24/07/07 01:26 PM
Will this notice work?

Exemple :/ban $$1 2 | /kick # $$1 Pls. leave the (+s)secret/Spam/Bad Channel while your in Davao, Pls msg me to unban you (Script Under Construction | /msg $$1 Pls. leave Lampungan while your in Davao | /notice $$1 Pls. leave Lampungan while your in Davao | /msg $$1 next time wag magpa uto sa inviter | /notice $$1 next time wag magpa uto sa inviter
Posted By: SladeKraven Re: Send notice - 24/07/07 01:34 PM
Why don't you try it?
Posted By: Garou Re: Send notice - 24/07/07 01:36 PM
I mean is there a better way to code this for sending a notice to warn the user?
Posted By: SladeKraven Re: Send notice - 24/07/07 01:50 PM
Not really, the only thing I would say is add the -k switch in the ban command which kicks aswell.

Code:
alias warn {
  var %kmsg = Pls. leave the (+s)secret/Spam/Bad Channel while $& 
    your in Davao, Pls msg me to unban you (Script Under Construction, %n = $$1
  ban -k # %n 2 %kmsg
  .msg %n Pls. leave Lampungan while your in Davao 
  .notice %n Pls. leave Lampungan while your in Davao 
  .msg %n next time wag magpa uto sa inviter 
  .notice %n next time wag magpa uto sa inviter
}


Adding a . before the command silences the command, meaning you wont get these messages shown when sending them a message/notice:

/notice:
-
-> *SladeKraven* ...
/msg:
-
-> -sladekraven- ...
-

I used $&. From the help file:

The $& identifier

This identifier allows you to break up a single line into multiple lines which are combined when the script is performed, so you can edit long commands more easily.

/warn <nick>
/warn $$1

Good luck.
Posted By: Garou Re: Send notice - 24/07/07 01:56 PM
I just learned something again thx.
© mIRC Discussion Forums