mIRC Home    About    Download    Register    News    Help

Print Thread
J
JesusPaid4U
JesusPaid4U
J
I am looking to add a script to my bot that will repeat into the room anything that I PM to it...I want it to only do this when I pm it and not when everyone else does. Can anyone help?

L
LittleJohn
LittleJohn
L
on *:Open:?: {
if $nick == yournick notice #channame $1-
}

Try something like that you can find more help in the mIRC help files. On Open, Levels give it a go and post here for more help.

Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
you don't want on open, you want on text. on open triggers only on the first message of a new window.

J
JesusPaid4U
JesusPaid4U
J
Yep i figured out that on text is best, but now that I got it working I would like to add a bit that if anyone but me messages the bot it will reply to them telling them not to PM the bot.

Here is what I have so far, I tried adding elseif but I must have gotten the brackets wrong or something because it flooded the pm with replies.

Quote:
on *:TEXT:*:?: {
if $nick == Eric-4-Yah msg #YHWH $1-
elseif $nick != Eric-4-Yah msg $nick I am not a human...Please do not PM me
}


B
BanJirian
BanJirian
B
Code:
 
on *:TEXT:*:?: {
if ($nick == Eric-4-Yah) .msg #YHWH $1-
else { .msg $nick I am not a human...Please do not PM me }
}


Link Copied to Clipboard