PDA

View Full Version : [Release] Music/Sounds NPC - Lua Script


fast_elf
04-10-2009, 01:02 AM
Alright,

I decided to release my music/sounds NPC.

This script allows you to play predetermined sounds/music of which you add into the script, i have added some in there already.

Example pictures of what the script looks like in action:

http://i111.photobucket.com/albums/n141/Fast_Elf/juxebox1.jpg

http://i111.photobucket.com/albums/n141/Fast_Elf/juxebox2.jpg

http://i111.photobucket.com/albums/n141/Fast_Elf/juxebox3.jpg


You may download this script:

--> Download the Script Here! -- Filebeam (http://filebeam.com/e55aa58d4509e874d3d109c4c9781cd1) <--

Note: I have not released the SQL for the NPC, you can create this, it isn't hard.


EDIT this part in the script thats in red for the NPC you want this script to work on:

RegisterUnitGossipEvent(90003, 1, "On_Gossip")
RegisterUnitGossipEvent(90003, 2, "OnGossipSelect")

Eminent
04-10-2009, 02:13 AM
Does this allow the song to be played all through, or does it change if anyone clicks on it. In other words if I had this in a location people would be changing the song over and over again without a song ever completing, or a group could use it to spam by playing the same song over and over.

warlcok
04-10-2009, 02:27 AM
This should change the sound just for the player unless it is different I'm like 90% sure and i think i have seen this exact one before... but still good release i didnt have one of these

fast_elf
04-10-2009, 02:57 AM
Well, it fully plays the song, for some reason, its tends to keep playing the song even if you choose another, no idea why, it should function like the .playall command ( i think thats the command)

E.g - Power of the horde playing, you go to choose.. illidans you are not prepared sound, it will play it over the top of power of the horde, in which, both will be playing..

So.. in a sense, it would be good for GMs, being able to play a sound, and mix it up with other sounds to make it.. unique?

benzkool
04-10-2009, 02:59 AM
Repost off of mmowned saw it like 4 days ago I'll come back if I find link

fast_elf
04-10-2009, 03:25 AM
Go right ahead benzkool, you will only make yourself look like an idoit.

I hand coded this script a long time ago, i only recently decided to fix it up so the submenu's work.

But if you really think its a repost... go right ahead... i honestly do not care if you think i reposted it.