NPC Problems menu

User Tag List

Thread: NPC Problems

Results 1 to 10 of 10
  1. #1
    6rimReaper's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    NPC Problems

    Hi... I want to add voices to a npc,I figured out how to add text,but now i want to add voice...Is it possible to add an audio into database? And import it to the npc I want to?
    Or can I import an already existing voice into database?And if so and I need sound id how can I know the sound id?

    NPC Problems
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Look at the SoundEntries DBC. This contains the path of each sound, the sound ID and the sound name.

    You cannot add custom ones without giving each player a custom patch so they have the sounds in there client as well.

    You can play sounds using: PlaySoundToSet(id) which will play sound X to nearby people.

    e.g:

    pUnit:PlaySoundToSet(250)
    pUnit:SendChatMessage(12,0,"Hello, how can I help you?")

  3. #3
    6rimReaper's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So if I can send other player sound file...could I put the voice of Arthas to the npc I want to?
    Cuz is just a test server...Just me and one other friend

  4. #4
    Facerolling's Avatar Contributor
    Reputation
    116
    Join Date
    Mar 2007
    Posts
    307
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, you can. Let me find the sound entry.

    What is the Id of your npc?
    hey ervyone whats up gamboys

  5. #5
    6rimReaper's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Facerolling View Post
    Yes, you can. Let me find the sound entry.

    What is the Id of your npc?
    Actually is the lich king but in my repack he doesn't speak at all 133729

  6. #6
    6rimReaper's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 6rimReaper View Post
    Actually is the lich king but in my repack he doesn't speak at all 133729
    I found the id of the sound in DB,but how can I listen it to know for sure that it is what I want?
    And then how can I put it to my npc(The lich king)?Through sql

  7. #7
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    You can't do either through the DB.

  8. #8
    Facerolling's Avatar Contributor
    Reputation
    116
    Join Date
    Mar 2007
    Posts
    307
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sort of Hacky fix:

    Code:
    local GetRandom
    
    function LK_OnGossipTalkz(Unit, Event, pPlayer)
    GetRandom = math.random(1,2)
    	if GetRandom == 1 then
    		pPlayer:PlaySoundToPlayer(17364)
    	end
    	if GetRandom == 2 then
    		pPlayer:PlaySoundToPlayer(17372)
    	end
    	Unit:GossipCreateMenu(100, pPlayer, 0)
    	Unit:GossipMenuAddItem(2, "Speak to me!", 299, 0) -- For some reason you can't have a one option gossip without ArcEmu crashing or not bringing up the gossip option at all
    	Unit:GossipMenuAddItem(0, "Do Nothing", 300, 0)
    	Unit:GossipSendMenu(pPlayer)
    end
    
    function LK_OnGossipSelect(Unit, Event, pPlayer, id, intid, code)
    	if(intid == 299) then
    		pPlayer:PlaySoundToPlayer(17230) -- This line can also be changed, but right now it will play another Lich King Sound
    		pPlayer:GossipComplete()
    	end
    	if(intid == 300) then
    		pPlayer:GossipComplete()
    	end
    
    end
    
    
    RegisterUnitGossipEvent(133729, 1, "LK_OnGossipTalkz")
    RegisterUnitGossipEvent(133729, 2, "LK_OnGossipSelect")
    Save as any name, but make sure it has the file ending ".lua". To do this, paste it into notepad, choose save as, you will see two bars below the big box, The top one names it, the bottom one specifies what type the file is. Change the file type from .txt to all types, and save it as something like "LichKingTalk.lua" YOU MUST INCLUDE THE ".lua" AT THE END! Then place this .lua file into your scripts folder in your ArcEmu Core, and restart the core.
    hey ervyone whats up gamboys

  9. #9
    6rimReaper's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I exported the sound entries dbc file into a csv file,and added a sound there with filename,filepath. And now I have to make a new patch in MWC,and I made it.
    But I have to convert the csv file in dbc file,but I dont knw how...Cuz in one tutorial they say to create a folder then add the dbc file ive created into this folder,then save patch and add that patch to data folder.

    ---------- Post added at 06:47 AM ---------- Previous post was at 06:20 AM ----------

    Originally Posted by 6rimReaper View Post
    I exported the sound entries dbc file into a csv file,and added a sound there with filename,filepath. And now I have to make a new patch in MWC,and I made it.
    But I have to convert the csv file in dbc file,but I dont knw how...Cuz in one tutorial they say to create a folder then add the dbc file ive created into this folder,then save patch and add that patch to data folder.
    Ive done this but how can I put my newly created sound with id to the npc i want to?
    Last edited by 6rimReaper; 02-12-2011 at 06:52 AM.

  10. #10
    6rimReaper's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    THe problem is that none of my icc bosses are speaking,or yelling

Similar Threads

  1. Bosses/NPCs problems
    By Qrisu88 in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 03-03-2010, 10:22 AM
  2. Npc problem
    By superdus in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 01-28-2010, 06:37 PM
  3. Quest NPC problem.
    By Timmy420 in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 04-27-2009, 11:03 PM
  4. NPC Problem
    By Madara Uchiha in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 05-21-2008, 07:04 PM
  5. BIG NPC problem
    By logicd22 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 01-26-2008, 05:46 PM
All times are GMT -5. The time now is 06:03 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search