mIRC Homepage
Posted By: Sarfaraz Auto Mesgz - 16/10/05 10:01 AM
hi there.. im new on this server i want to set some auto msgz like.. if any one say on channel window, Hello Auto message will response with hello (nick).
and 2nd is i want to add shortcut commands like i want to say hello anywhere channel OR private i just type h OR hl please help me.
Code:
  
Posted By: hantu Re: Auto Mesgz - 16/10/05 10:37 AM
You posted in the wrong forum, anyway..

For auto response, try reading /help ON TEXT if you needed more information. In your remote (ALT R) add in:
Code:
on *:TEXT:*hello*:#:msg $chan Hello $nick

Beware, that will reply "Hello Nick" whenever someone had "hello" in anywhere of their sentence, eg: "Woogie boo boo hello dee dee" or even "marshello"

For the shortcut commands, you can either do it via ON INPUT, or as an ALIAS (shortcut usually refers to ALIAS)

Add this to ALIAS section in your script editor, ALT R -> click ALIASES tab.
Code:
h { msg $active hello }
hl { msg $active hello }
Posted By: Riamus2 Re: Auto Mesgz - 17/10/05 12:58 PM
A couple things to help out...

First, to prevent someone flooding you from the server with "hello"...

Code:
on *:text:hello*:#yourchan: {
  if (%flood.hello == $null) {
    msg $chan Hello, $nick $+ .
    set -u5 %flood.hello 1
  }
}


Also, in case you don't know, if you use aliases as mentioned above, then to use them, you type /h or /hl instead of just typing h or hl.
© mIRC Discussion Forums