|
Joined: Mar 2003
Posts: 8
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Mar 2003
Posts: 8 |
I've searched countless sites and this message board, I just can't get it right. I'm trying to right a script that will recognize a word and then play the sound, but I'd like the word case sensative I know it has to do with If-Then-Else commands but I'm clueless.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
Use 'isincs' instead of 'isin' ON *:TEXT:*:#: {
if (WaTcHdoG isincs $1) {
splay bark.wav
}
} If someone calls me by matching the case used in the script then the sound will play. If they use all lower or all upper case then it won't.
|
|
|
|
Joined: Mar 2003
Posts: 8
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Mar 2003
Posts: 8 |
Sorry that didnt work, it just sent my mirc into a endless loop that killed it, thx tho
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
It's tested code so you must have left out a closing brace. Try it in it's own remote file.
|
|
|
|
Joined: Mar 2003
Posts: 8
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Mar 2003
Posts: 8 |
ON *:TEXT:*:#: { if (WakeUP isincs $1) { splay C:\WINDOWS\MEDIA\Robotz Default.wav }} I can't see it
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
Hmmm, you shouldn't have to for splay but try putting the filepath in inverted commas. ON *:TEXT:*:#: {
if (WakeUP isincs $1) {
splay [color:red]"[/color]C:\WINDOWS\MEDIA\Robotz Default.wav[color:red]"[/color]
}
}
|
|
|
|
Joined: Mar 2003
Posts: 8
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Mar 2003
Posts: 8 |
IM getting /if: close bracket not found in my status, to me it looks like they are all closed
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
How are you formatting the script? If you are doing it on a single line I would remove the outer set of braces but leave everything else. If it is over four lines then it should work as-is.
|
|
|
|
Joined: Mar 2003
Posts: 8
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Mar 2003
Posts: 8 |
Its all a straight line, I dropped the outta brackets no errors now, but no sound either I know the path is correct I tried with the "..." and adding the splay command of -w for wav I'm sorry to be a bother But hankyou for the help
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
It should work without the -w. There must be something else in your script that may be interfering. Make sure that there is only one ON TEXT event in each script file otherwise they will clash, usually resulting in only the first one working.
|
|
|
|
Joined: Mar 2003
Posts: 8
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Mar 2003
Posts: 8 |
All my scripts are in working order Thanks for your help, Ill search the net some more
|
|
|
|
Joined: Dec 2002
Posts: 1,321
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,321 |
on *:TEXT:*:#: if ($1 === WakeUP) splay "C:\WINDOWS\MEDIA\Robotz Default.wav"
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
|
|
|
|
Joined: Feb 2003
Posts: 282
Fjord artisan
|
Fjord artisan
Joined: Feb 2003
Posts: 282 |
He wrote:
ON *:TEXT:*:#: { if (WakeUP isincs $1) { splay C:\WINDOWS\MEDIA\Robotz Default.wav }} I can't see it
He has }}
to closing backets which doesn't have space betweek them. I think that will make his script not to work.
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
WakeUp? that remins me of the old Multiplayer server MPlayer for games. You'd type it in a channel, and a wierd voice would yell "Wake up!".. Ahh, those were the days >:S
-KingTomato
|
|
|
|
|