mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2008
Posts: 4
L
lolwutz Offline OP
Self-satisified door
OP Offline
Self-satisified door
L
Joined: Sep 2008
Posts: 4
on 1:TEXT:!msg*:#:/msg $1 $nick has dropped this message: $2-100

Apparently, I was trying to make a message script that would let a person say !msg nick message.
That way, I wanted it to give me a result of $sender has dropped this message: "Message".

Any help?

Joined: Oct 2007
Posts: 214
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
In order to help you better,

Id like to understand a little bit more what the goal/purpose of this is. Is it more like a pager system for your script or more like a bot system that forwards the message onto another user?

Please let me know what the intent of this is.

Cheers,

Jay

Last edited by Buggs2008; 18/09/08 01:14 AM.
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Technically, there is nothing wrong with that code. Did you put it in the Remotes tab of your mIRC script editor? Note that you cannot trigger the script (by typing !msg nick message) from the same mIRC that the script is running on.

-genius_at_work

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Just wanted to add this to genius_at_work's post.

You cant have two of the same type in the same remote file:

on 1:TEXT:!msg*:#:/msg $1 $nick has dropped this message: $2-100

the on 1:TEXT:!msg*:#: need to be alone in the remote section. so make shure you don't have one more on text above your code.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jul 2006
Posts: 4,193
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,193
Code:
on 1:TEXT:!msg*:#:/msg $1 $nick has dropped this message: $2-100
Even if I don't know what you want, there is an error, you can't expect the trigger to be !msg* ($1 is !msg) and try to send a message to $1 (!msg).In your case, $nick is the nick that said "!msg nick text", $2 is the *nick* in "!msg *nick* text" and the message is $3-.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Sep 2008
Posts: 4
L
lolwutz Offline OP
Self-satisified door
OP Offline
Self-satisified door
L
Joined: Sep 2008
Posts: 4
What I was trying to do, was to make my speech from another person, or perhaps a pager system.
When I want the bot to say something to #channel, I would like to do !msg #channel Message I want.

Somehow that didn't work.
o_O

Joined: Dec 2002
Posts: 2,033
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,033

You were given three possible reasons why it didn't work. Try this.
Code:

on *:TEXT:!msg *:#: {
  if ($2 ischan) msg $2 $nick has dropped this message: $3-
}




Link Copied to Clipboard