About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
montravadee
Newbie


Joined: 13 Mar 2007
Posts: 2

PostPosted: 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
Reply with quote
Odoth
Wanderer


Joined: 13 Nov 2004
Posts: 54
Location: Visalia, CA

PostPosted: 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*
Reply with quote
Odoth
Wanderer


Joined: 13 Nov 2004
Posts: 54
Location: Visalia, CA

PostPosted: 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*
Reply with quote
montravadee
Newbie


Joined: 13 Mar 2007
Posts: 2

PostPosted: 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* Embarassed

Thanks for the input. Laughing
Reply with quote
Odoth
Wanderer


Joined: 13 Nov 2004
Posts: 54
Location: Visalia, CA

PostPosted: Tue Mar 13, 2007 7:17 am   
 
Haha, okay. Glad it works Smile
_________________
*ribbit*
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net