mIRC Homepage
Posted By: spermis the winner is - 14/10/07 05:23 PM
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
Posted By: schaefer31 Re: the winner is - 14/10/07 05:33 PM
Code:
on *:TEXT:!win &:#YourChannelGoesHere:{
  if ($nick isop #) && (Spiderman ison #) {
    msg $v1 The winner is $2
  }
}
Posted By: Lpfix5 Re: the winner is - 14/10/07 07:03 PM
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 }
Posted By: schaefer31 Re: the winner is - 14/10/07 07:29 PM
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.
Posted By: Riamus2 Re: the winner is - 14/10/07 08:29 PM
As schaefer mentioned, @ isn't a substitute for "if ($nick isop $chan)". @ is a substitute for "if ($me isop $chan)".
Posted By: Lpfix5 Re: the winner is - 15/10/07 12:51 AM
Hmph I should get on the ball of on text events back again huh
Posted By: spermis Re: the winner is - 15/10/07 07:20 PM
thanks everyone.
© mIRC Discussion Forums