mIRC Home    About    Download    Register    News    Help

Print Thread
#187885 14/10/07 05:23 PM
S
spermis
spermis
S
I need a pretty small script.

so if user who is OP writes !win Batman it will msg user with nick Spiderman this - The winner is Batman.

and if OP writes !win anyotherwthing it will msg user with nick Spiderman - The winner is anyotherwthing.

i think it is very easy

#187887 14/10/07 05:33 PM
S
schaefer31
schaefer31
S
Code:
on *:TEXT:!win &:#YourChannelGoesHere:{
  if ($nick isop #) && (Spiderman ison #) {
    msg $v1 The winner is $2
  }
}

#187889 14/10/07 07:03 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Originally Posted By: schaefer31
Code:
on *:TEXT:!win &:#YourChannelGoesHere:{
  if ($nick isop #) && (Spiderman ison #) {
    msg $v1 The winner is $2
  }
}


if ($nick isop #) is not needed

on @:TEXT:!win*:#yourchannel:{ if spiderman ison # msg $v1 The winner is $2 }

Lpfix5 #187891 14/10/07 07:29 PM
S
schaefer31
schaefer31
S
It is needed and the @ prefix is not a substitute for it. Read the first post a little closer. Also "!win &" instead of "!win*" is more appropriate in this case.

Lpfix5 #187898 14/10/07 08:29 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
As schaefer mentioned, @ isn't a substitute for "if ($nick isop $chan)". @ is a substitute for "if ($me isop $chan)".

Riamus2 #187913 15/10/07 12:51 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Hmph I should get on the ball of on text events back again huh

Lpfix5 #187959 15/10/07 07:20 PM
S
spermis
spermis
S
thanks everyone.


Link Copied to Clipboard