Sounds

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Sounds

Post by John Adams » Sun Aug 31, 2008 1:13 pm

LE, are sounds/voices supposed to be working right now with the PlayVoice(), PlaySound(), and PlayFlavor() LUA functions? If so, can you give a quick example of how one might be set up? Here's what I am trying in Zone_ID 26 on my world, with a Captain Varlos NPC.

Code: Select all

function hailed(NPC, Spawn)
	FaceTarget(NPC, Spawn)
        PlayVoice(Spawn, "voiceover/english/captain_varlos/boat_06p_tutorial02/varlos_0_027.mp3", 2285948102, 2994720481)
end
The script is working, because he will face me. There's another interesting artifact of this zone, since it's a ship on the sea and (I think) because I do not have a location_id, he is bobbing up and down in mid air heh... hopefully that is not affecting this test.
I tried taking out the path and leaving just the mp3. The data comes from the raw_dialogs table for Captain Varlos. I am not sure if the zone_name in the path is preventing it from working or not.
Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests