mIRC Home    About    Download    Register    News    Help

Print Thread
#233809 14/09/11 01:00 AM
Joined: Sep 2011
Posts: 4
D
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Sep 2011
Posts: 4
I'm trying to make a script. I've got the rest of it written in my head and it's so simple I'm sure it'll work, but there's one thing I'd like for it to have. To save space on any channel it's used on, I was wondering if it was possible to have it respond to a message or a query. Thanks in advance.

Joined: Mar 2004
Posts: 526
Fjord artisan
Offline
Fjord artisan
Joined: Mar 2004
Posts: 526
look in mirc help at on text (/help on text).
Pay attention to the parm that indicates if the text is from channel or private message.. you can handle text events this way.
However, remember it will NOT respond to a message from itself.


Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
What is this supposed to mean
Quote:
To save space on any channel it's used on
?

Tomao #233813 14/09/11 10:57 PM
Joined: Sep 2011
Posts: 4
D
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Sep 2011
Posts: 4
Script makes the text used into colorful text. So, it'd be stupid if someone wanted to say something in color, so they say the command with the text afterwards, and it just gets repeated. Taking up 2 lines instead of 1.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
If you're trying to change incoming or outgoing text without displaying the original text, then you need to halt/haltdef the text.

Code:
on ^*:text:*:#: {
  echo -a Incoming: $1-
  haltdef
}


Code:
on *:input:#: {
  .msg $chan $1-
  echo -a Outgoing: $1-
  halt
}


You can change how those display. Just use haltdef and the ^ for incoming text and halt and .msg for the outgoing text. The echo lines are what you'll see on your end.

Note that if you want everyone else to also see your text formatted, then include the formatting in the .msg line, but remove the . and remove the echo line. That will let you and everyone else see your text formatted in whatever way you want.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard