Author Topic: Adding a sound to a script?  (Read 3079 times)

0 Members and 1 Guest are viewing this topic.

Offline UOGamer131Topic starter

  • Restricted
  • *
  • Posts: 1
  • Activity:
    0%
  • Reputation Power: 1
  • UOGamer131 has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Adding a sound to a script?
« on: March 18, 2013, 11:31:25 AM »
0
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

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +123
  • Referrals: 1
    • View Profile
Re: Adding a sound to a script?
« Reply #1 on: March 18, 2013, 12:44:15 PM »
0
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
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline Neo

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: Adding a sound to a script?
« Reply #2 on: March 18, 2013, 03:21:13 PM »
0
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! :)
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline Khameleon

  • Script Tester - Team Leader
  • Elite
  • *
  • *
  • Posts: 2574
  • Activity:
    0%
  • Reputation Power: 30
  • Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!
  • Gender: Male
  • Respect: +238
  • Referrals: 0
    • View Profile
Re: Adding a sound to a script?
« Reply #3 on: March 18, 2013, 04:20:14 PM »
0
Sound without filename will make a Beep Sound.

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Adding a sound to a script?
« Reply #4 on: March 19, 2013, 08:20:54 AM »
0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Welcome to ScriptUO ! 

Your gonna wanna check out This Thread 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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline bluepits

  • Jr. Member
  • **
  • Posts: 30
  • Activity:
    0%
  • Reputation Power: 0
  • bluepits has no influence.
  • Gender: Male
  • Respect: +5
  • Referrals: 0
    • View Profile
Re: Adding a sound to a script?
« Reply #5 on: May 06, 2013, 04:38:50 AM »
0
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

Offline bluepits

  • Jr. Member
  • **
  • Posts: 30
  • Activity:
    0%
  • Reputation Power: 0
  • bluepits has no influence.
  • Gender: Male
  • Respect: +5
  • Referrals: 0
    • View Profile
Re: Adding a sound to a script?
« Reply #6 on: May 06, 2013, 05:06:44 AM »
0
Found the issue it wont play wma but it will play wav  . so proublem fix thx

Tags: