[Re-Release] JukeBox [Lua] menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [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


    [Re-Release] JukeBox [Lua]

Similar Threads

  1. [Release] Custom LUA Instance
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 49
    Last Post: 05-12-2023, 02:55 AM
  2. [Just Another Small Release] Second LUA Boss I made :)
    By The_Zealot in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 03-01-2008, 09:59 PM
  3. [Release] First LUA boss
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 37
    Last Post: 02-25-2008, 08:27 PM
  4. [Release] Portal Lua Event
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 28
    Last Post: 02-04-2008, 09:46 AM
  5. [Release] Sargeras .LUA Boss
    By Ebon in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 01-27-2008, 05:04 PM
All times are GMT -5. The time now is 07:36 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search