| | Emulator Server Releases This section is for all releases regarding Emu servers.
[NO QUESTIONS HERE] |  | 
07-29-2009
|  | Sergeant Major | | | Join Date: May 2009
Posts: 184
Nominated 8 Times in 2 Posts Reputation: 47 Level up: 82%, 129 Points needed |   | | | [Re-Release] JukeBox [Lua] I found in pc old script so i wanted to share with you and i edited it little...
I added lil colors on script so it looks fancy and updated it You need to make your own npc for this (im sure you can manage that)
And at the bottom of the script i have put "NPCID" and you replace it with the spawn ID of the NPC you made. Here's Script. Save it as .lua Code: function jukebox_On_Gossip(unit, event, player)
unit:GossipCreateMenu(100, player, 0)
unit:GossipMenuAddItem(1,"|cffffcc00Play Anguish Walk", 1, 0)
unit:GossipMenuAddItem(1,"|cFFDEB887Play Vigil Walk", 2, 0)
unit:GossipMenuAddItem(1,"|cffffcc00Play Dwarf Brewfest", 3, 0)
unit:GossipMenuAddItem(1,"|cFFDEB887Play Nagrand", 4, 0)
unit:GossipMenuAddItem(1,"|cFFFF6347Play Power of the Horde", 5, 0)
unit:GossipMenuAddItem(1,"|cffffcc00Play Silvermoon City", 6, 0)
unit:GossipMenuAddItem(1,"|cFFDEB887Play Drama Music", 7, 0)
unit:GossipMenuAddItem(1,"|cffffcc00Play Dwarf Music", 8, 0)
unit:GossipMenuAddItem(1,"|cff0000ffPlay Stormwind City", 9, 0)
unit:GossipMenuAddItem(1,"|cFFDEB887Play Irish Ditty", 10, 0)
unit:GossipMenuAddItem(1,"|cFFFF6347Play Horde Tavern", 11, 0)
unit:GossipMenuAddItem(1,"|cff0000ffPlay Alliance Tavern", 12, 0)
unit:GossipSendMenu(player)
end
function jukebox_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)
if(intid == 1) then
player:PlaySoundToSet(11700)
pUnit:SendChatMessage(12, 0, "|cFFFF0000Now Playing: Anguish Walk")
player:GossipComplete(player)
end
if(intid == 2) then
player:PlaySoundToSet(11702)
pUnit:SendChatMessage(12, 0, "|cFFFF0000Now Playing: Vigil Walk")
player:GossipComplete(player)
end
if(intid == 3) then
player:PlaySoundToSet(11810)
pUnit:SendChatMessage(12, 0, "|cFFFF0000Now Playing: Dwarf Brewfest ")
player:GossipComplete(player)
end
if(intid == 4) then
player:PlaySoundToSet(10849)
pUnit:SendChatMessage(12, 0, "|cFFFF0000Now Playing: Nagrand")
player:GossipComplete(player)
end
if(intid == 5) then
player:PlaySoundToSet(11803)
pUnit:SendChatMessage(12, 0, "|cFFFF0000Now Playing: Power of the Horde")
player:GossipComplete(player)
end
if(intid == 6) then
player:PlaySoundToSet(9801)
pUnit:SendChatMessage(12, 0, "|cFFFF0000Now Playing: Silvermoon City")
player:GossipComplete(player)
end
if(intid == 7) then
player:PlaySoundToSet(11706)
pUnit:SendChatMessage(12, 0, "|cFFFF0000Now Playing: Drama Music")
player:GossipComplete(player)
end
if(intid == 8) then
player:PlaySoundToSet(11810)
pUnit:SendChatMessage(12, 0, "|cFFFF0000Now Playing: Dwarf Music")
player:GossipComplete(player)
end
if(intid == 9) then
player:PlaySoundToSet(2532)
pUnit:SendChatMessage(12, 0, "|cFFFF0000Now Playing: Stormwind City")
player:GossipComplete(player)
end
if(intid == 10) then
player:PlaySoundToSet(11805)
pUnit:SendChatMessage(12, 0, "|cFFFF0000Now Playing: Irish Ditty")
player:GossipComplete(player)
end
if(intid == 11) then
player:PlaySoundToSet(5234)
pUnit:SendChatMessage(12, 0, "|cFFFF0000Now Playing: Horde Tavern")
player:GossipComplete(player)
end
if(intid == 12) then
player:PlaySoundToSet(4516)
pUnit:SendChatMessage(12, 0, "|cFFFF0000Now Playing: Alliance Tavern")
player:GossipComplete(player)
end
end
RegisterUnitGossipEvent(NPCID, 1, "jukebox_On_Gossip")
RegisterUnitGossipEvent(NPCID, 2, "jukebox_on_gossip_select")
Credits ---------- Onlykl - for update and colored.
SomeOne - for making script | Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.  |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -4. The time now is 03:41 AM. |