![](templates/Classic/images/spacer.gif) |
montravadee Newbie
Joined: 13 Mar 2007 Posts: 2
|
Posted: Tue Mar 13, 2007 6:45 am
Problem with Sound Script |
I found a script on here that would throw out an alarm for double xp and global quest. I took out the double xp triggers and kept just the global quest stuff. My problem is when I put the path where my wav file is located, I'm not sure if I wrote it correctly. (its in bold) If someone could take a look at it and send me some feedback, that would be great.
#CLASS {ALERTS}
#VAR onglobal {}
#TRIGGER {You have now joined the quest. See 'help gquest' for available commands.} {#var onglobal true}
#TRIGGER {^Global Quest: Global quest ~# %d has been declared for levels (%d) to (%d).} {#PLAY (C:\zMUD\Aardwolf\Sounds\zim wav\dance with me.wav)}
#TRIGGER {^Global Quest: The global quest for levels (%d) to (%d) has now started.} {gq i}
#TRIGGER {^Global Quest: The global quest has been won by *.} {#if (@onglobal="true") {/over;#var onglobal {}}}
#TRIGGER {^Global Quest: The global quest has expired. There is no winner.} {/over}
#CLASS 0 |
|
|
![](templates/Classic/images/spacer.gif) |
Odoth Wanderer
![](images/avatars/189914922845f663bdb5ac3.jpg)
Joined: 13 Nov 2004 Posts: 54 Location: Visalia, CA
|
Posted: Tue Mar 13, 2007 6:58 am |
You'll want to test the #play command outside of the trigger to rule that out as the problem.
Enter #PLAY (C:\zMUD\Aardwolf\Sounds\zim wav\dance with me.wav) into the command line and see what happens. If it doesn't work, my thoughts are that the parentheses around the file path doesn't seen normal to me, and the space in the "zim wav" and "dance with me.wav" may also present problems. I would say mess with those 2 things to see if they are causing problems.
If entering the play command works but the trigger isn't firing, then you have a problem with your trigger pattern. |
|
_________________ *ribbit* |
|
|
![](templates/Classic/images/spacer.gif) |
Odoth Wanderer
![](images/avatars/189914922845f663bdb5ac3.jpg)
Joined: 13 Nov 2004 Posts: 54 Location: Visalia, CA
|
Posted: Tue Mar 13, 2007 7:06 am |
Upon testing, the parentheses don't seem to be causing any kind of problem, and spaces in folder names and files names didn't seem to hurt anything either. Only thing I can think of is that my zMUD folder is in Program Files whereas your file path is pointing to C:\zMUD, but that very well may be where your zMUD folder is :)
Let me know if you still are having trouble. |
|
_________________ *ribbit* |
|
|
![](templates/Classic/images/spacer.gif) |
montravadee Newbie
Joined: 13 Mar 2007 Posts: 2
|
Posted: Tue Mar 13, 2007 7:14 am |
Ahhhh....it works. When I was copying and pasteing the trigger, I was leaving out the period. *DOH*
Thanks for the input. ![Laughing](images/smiles/icon_lol.gif) |
|
|
![](templates/Classic/images/spacer.gif) |
Odoth Wanderer
![](images/avatars/189914922845f663bdb5ac3.jpg)
Joined: 13 Nov 2004 Posts: 54 Location: Visalia, CA
|
Posted: Tue Mar 13, 2007 7:17 am |
Haha, okay. Glad it works ![Smile](images/smiles/icon_smile.gif)
|
|
_________________ *ribbit* |
|
|
![](templates/Classic/images/spacer.gif) |
|
|