mIRC Home    About    Download    Register    News    Help

Print Thread
#181482 24/07/07 01:26 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
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

Garou #181484 24/07/07 01:34 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Why don't you try it?

SladeKraven #181485 24/07/07 01:36 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
I mean is there a better way to code this for sending a notice to warn the user?

Last edited by Garou; 24/07/07 01:37 PM.
Garou #181487 24/07/07 01:50 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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.

SladeKraven #181488 24/07/07 01:56 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
I just learned something again thx.


Link Copied to Clipboard