mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2003
Posts: 68
Y
yamaz Offline OP
Babel fish
OP Offline
Babel fish
Y
Joined: Oct 2003
Posts: 68
Hi there, I need a little help:

I've got a script that play silly sounds on request (to joke with friends) that overrides the mirc ctcp sound request options.

I need a script that recognize when a file requested to play doesn't exist and asks it to who have requested it. I can't use a thing like " on 1:NOSOUND:/msg $nick ! $+ $nick $filename " because, as said before, my script doesn't use the mirc's Ctcp request options.

I tried with " if $exists($2) = $true { <blablablabla> }
else
<blablablabla> "

but it doesn't work. How can I do?

Here's the whole script (if it can help).

ctcp *:SOUNDZ:*:{
if %requestsuoni == 1 {
if # { echo # $timestamp $nick $+ 11@ $+ # $+ : «11 $deltok($2,-1,46) » }
else { echo $iif($query($nick),$nick,-a) $timestamp $nick $+ : «11 $deltok($2,-1,46) » }
splay $2 | halt }
else { echo $iif(#,$v1,$iif($query($nick),$v1,-a)) $timestamp $nick buffoneggia (11 $+ $deltok($2,-1,46) $+ ) /son o no? | halt }
}
}

thank you very much

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Why cant you do $exists? Are the sounds in the mirc folder? if so that should work if not try something like $exists(soundz/ $+ $2 $+ )

Joined: Oct 2003
Posts: 68
Y
yamaz Offline OP
Babel fish
OP Offline
Babel fish
Y
Joined: Oct 2003
Posts: 68
Quote:
Why cant you do $exists? Are the sounds in the mirc folder? if so that should work if not try something like $exists(soundz/ $+ $2 $+ )


if I use $exists the result is ALWAYS $false frown I really can't understand why.

it doens work neither with $exists(sound/ $+ $2 $+ )

Joined: Oct 2003
Posts: 68
Y
yamaz Offline OP
Babel fish
OP Offline
Babel fish
Y
Joined: Oct 2003
Posts: 68
problem solved, now it works smile thanks


Link Copied to Clipboard