mIRC Home    About    Download    Register    News    Help

Print Thread
#138888 08/01/06 01:05 PM
Joined: Oct 2005
Posts: 75
C
Babel fish
OP Offline
Babel fish
C
Joined: Oct 2005
Posts: 75
i just have a one tiny bit of question on play, anyway i have this play -cq1 $nick $mircdirCmds\Controls.txt 700 as one of my On Text command line it plays what it suppose to play but instead of playing to $nick it plays to $chan where i try to trigger it from....it works without the -c switch but when i put the -c switch back on it started playing to $chan instead. how do i fix this?

#138889 08/01/06 01:55 PM
Joined: Oct 2004
Posts: 72
C
Babel fish
Offline
Babel fish
C
Joined: Oct 2004
Posts: 72
I'm puzzled why it works without -c. According to me you should use:

play -cq1 $nick $mircdirCmds $+ \Controls.txt 700

but I didn't test this!

#138890 08/01/06 04:01 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
try putting the filepath between ":

$+(",$mircdir,Cmds,filename,")


If it ain't broken, don't fix it!
#138891 08/01/06 04:17 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Quote:
try putting the filepath between ":

$+(",$mircdir,Cmds,filename,")


typo: you dropped your \

$+(",$mircdirCmds\filename,")

#138892 08/01/06 04:19 PM
Joined: Oct 2004
Posts: 72
C
Babel fish
Offline
Babel fish
C
Joined: Oct 2004
Posts: 72
hmz I just learned by testing (:S) that $+ is not needed after $mircdir. Strange problem about that -c ...

#138893 09/01/06 12:21 AM
Joined: Oct 2005
Posts: 75
C
Babel fish
OP Offline
Babel fish
C
Joined: Oct 2005
Posts: 75
heres how i had it,

Code:
On 187:TEXT:$($me $+ *):#: {
  if ($2 == Controls) { play -cq1 $nick $mircdirCmds\Controls.txt 700 | halt }
}


it works like this alone

Code:
On 187:TEXT:Control:#:/play -cq1 $nick $mircdirCmds\Controls.txt 700


but when i fixed and tried on previous one it stopped functioning right. any ideas?

#138894 11/01/06 09:30 AM
Joined: Oct 2005
Posts: 75
C
Babel fish
OP Offline
Babel fish
C
Joined: Oct 2005
Posts: 75
anyone?

#138895 11/01/06 03:40 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
in channel confuzzeledCONTROLS
yur nick with no space and the letter s on the end of controls
Code:
On 187:TEXT:$($me $+ *):#: {
  if [color:red] ($2 == Controls) [/color] { play -cq1 $nick $mircdirCmds\Controls.txt 700 | halt }
}
the halt is not needed here.





in channel CONTROL
just the word control
Code:
On 187:TEXT:Control:#:/play -cq1 $nick $mircdirCmds\Controls.txt 700



in your first case you have the match text as your nick $+ controlS
so the user posts confuzzeledcontrols and your script is looking for $2 which does not exist.
try it like this:
Code:
On 187:TEXT:$($me $+ *):#: {
  if [color:red] ($1 == $+($me,Controls)) [/color] { play -cq1 $nick $mircdirCmds\Controls.txt 700 }
}


(in all cases it is assumed that the user actually IS added at that user level)


Link Copied to Clipboard