mIRC Homepage
Posted By: Iceflow Newbier Question - 16/11/03 07:05 AM
I want to respond to certain user text, where in the script editor do i put this? :
on *:TEXT:$(* $+ $me) text to respond to:#:{ msg $chan $nick text that appears }

do I have to do anything else or will that start working immediatly?
Posted By: Assassin Re: Newbier Question - 16/11/03 07:30 AM
put it in the remotes section
Posted By: LocutusofBorg Re: Newbier Question - 16/11/03 10:16 AM
on *:TEXT:*:#: if ($1 == $me) echo -a $2-

your code (once it's fixed) will respond when the nick is anywhere. If that's not a problem,

on *:TEXT:$(* $+ $me $+ *):#: echo -a $1-
Posted By: Iceflow Re: Newbier Question - 16/11/03 11:18 AM
Okay i have put it in the remote dir but its not working.

Heres an example of what ive written:
on *:TEXT:$(* $+ $me) sex:#:{ msg $chan $nick Mammals enaging in such acts will be promptly removed

I want it to say "Mammals enaging in such acts will be promptly removed" when anyone says the word "sex"

Posted By: Assassin Re: Newbier Question - 16/11/03 11:50 AM
you do realise with the

Code:
$(* $+ $me)  


its looking for your nickname + the word sex at the moment dont you? if you dont want that take it out if you want your nick + the word sex move the word sex inside the bracket so

Code:
on *:TEXT:$(* $+ $me sex):#:{ msg $chan $nick Mammals enaging in such acts will be promptly removed   


i'm by no means an expert so if it dont work blame someone else :tongue:
Posted By: Iceflow Re: Newbier Question - 16/11/03 12:03 PM
sorry but I didnt understand any of that.

all i want is for it to say "Mammals enaging in such acts will be promptly removed" when somebody says the word "sex"?

not when I say it , when someone else does!
Posted By: Tsunami Re: Newbier Question - 16/11/03 02:14 PM
then do what he said, and remove $(* $+ $me sex). The new code will be:
Code:
on *:TEXT:sex:#:{ msg $chan Mammals enaging in such acts will be promptly removed }
Posted By: sparta Re: Newbier Question - 16/11/03 02:20 PM
Code:
on *:TEXT:[color:red]*[/color]sex[color:red]*[/color]:#:{ msg $chan Mammals enaging in such acts will be promptly removed }

i think that would do the trick? smile
© mIRC Discussion Forums