ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: UOGamer131 on March 18, 2013, 11:31:25 AM

Title: Adding a sound to a script?
Post by: UOGamer131 on March 18, 2013, 11:31:25 AM
Just a quick question... so im trying to add a ringer to a script i found for alerting when an idoc falls because all it does is bring up a black box saying IDOC DOWN but i would like it to make noise also anyone alittle help please? im super new to scripting and dont understand it at all so... i may ask quite a few questions..


 i uploaded the script... if anyone could give me some guidance i would be much obliged
Title: Re: Adding a sound to a script?
Post by: manwinc on March 18, 2013, 12:44:15 PM
Put the Sound in the same folder as Your EUO program, Then do

Sound (Filename.Format)

That will make it play

So if your sound is alarm.wav it would be

Sound Alarm.Wav
Title: Re: Adding a sound to a script?
Post by: Neo on March 18, 2013, 03:21:13 PM
Be sure to add a new member introduction in the proper section. You'll find the rewards for doing such greater than you now imagine! :)
Title: Re: Adding a sound to a script?
Post by: Khameleon on March 18, 2013, 04:20:14 PM
Sound without filename will make a Beep Sound.
Title: Re: Adding a sound to a script?
Post by: Endless Night on March 19, 2013, 08:20:54 AM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Welcome to ScriptUO ! 

Your gonna wanna check out This Thread (http://www.scriptuo.com/index.php?topic=1683.0) and then post an introduction post.

How did you find out about ScriptUO?  What chars do you play ?? Tell us a funny Uo related story... etc

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Title: Re: Adding a sound to a script?
Post by: bluepits on May 06, 2013, 04:38:50 AM
Hate to jack a thread but there is one alrdy started  so i didnt want to make a new one.   im still having issues with getting it to play a sound or beep  I dont want it to steal the item i just want to be warn when it shows. at the top of the script i had put in a Set Lamp.wma  but still dosnt play sound :( any help to get this going would be much help thanks.


Sub Steal
FindItem %Lamp
if #Findkind <> -1 && #FindCOL = 0
  {
  Sound Lamp.wma

  Return #True
  }
Return #False
Title: Re: Adding a sound to a script?
Post by: bluepits on May 06, 2013, 05:06:44 AM
Found the issue it wont play wma but it will play wav  . so proublem fix thx