mIRC Home    About    Download    Register    News    Help

Print Thread
#187885 14/10/07 05:23 PM
Joined: Feb 2007
Posts: 91
S
spermis Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Feb 2007
Posts: 91
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

spermis #187887 14/10/07 05:33 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Code:
on *:TEXT:!win &:#YourChannelGoesHere:{
  if ($nick isop #) && (Spiderman ison #) {
    msg $v1 The winner is $2
  }
}

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 }


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Lpfix5 #187891 14/10/07 07:29 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
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,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
As schaefer mentioned, @ isn't a substitute for "if ($nick isop $chan)". @ is a substitute for "if ($me isop $chan)".


Invision Support
#Invision on irc.irchighway.net
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


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Lpfix5 #187959 15/10/07 07:20 PM
Joined: Feb 2007
Posts: 91
S
spermis Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Feb 2007
Posts: 91
thanks everyone.


Link Copied to Clipboard