Zone Music menu

User Tag List

Thread: Zone Music

Results 1 to 6 of 6
  1. #1
    jaffabomb's Avatar Active Member
    Reputation
    18
    Join Date
    Dec 2006
    Posts
    40
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Zone Music

    Is there any way to add my own music onto my server for different zones for anyone to hear when they enter it? I know there is some way of changing the music that you yourself hears but i want to change it for everyone on the server :P

    (I'm not sure wether this is the right section to post this in, please tell me if it isn't )

    Zone Music
  2. #2
    Sonic Waffle's Avatar Contributor
    Reputation
    170
    Join Date
    Dec 2007
    Posts
    990
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This requires Model Editing, I managed to do it before, but that was Client Side and not server side.
    Server side would require DBC editing.
    Last edited by Sonic Waffle; 04-19-2009 at 02:42 PM.


  3. #3
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's possible, yeah.

    Here's a script if u want. What it does is when a player enters a zone, it plays music to them.

    You can add any music to any zone (a zone can't have more than one music id)

    Code:
    //Zone Music Player.
    //By Jotox/Classic
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    using namespace std;
    
    static std::map< uint32, uint32 >	ZoneMusicMap;
    
    //Follow this to add music to a zone:
    //FORMAT: ZoneMusicMap[ZONE ID] = SOUND ID;
    //Ex. :   ZoneMusicMap[ 1 ] = 1337;
    //This example would play sound 1337 whenever a player entered zone 1.
    
    void PlayMusic( Player * pPlayer, uint32 Music )
    {
    	WorldPacket data(SMSG_PLAY_SOUND, 4);
    	data << Music;
    	pPlayer->GetSession()->SendPacket( &data );
    }
    
    void OnPlayerZone(Player * pPlayer, uint32 zone)
    {
    	if( !pPlayer->IsInWorld() || !pPlayer->GetSession() )
    		return;
    	std::map< uint32, uint32>::iterator itr = ZoneMusicMap.find( zone );
    	if( itr != ZoneMusicMap.end() )
    		PlayMusic( pPlayer, itr.second );
    }
    
    
    void SetupZoneMusic(ScriptMgr * mgr)
    {
       mgr->register_hook(SERVER_HOOK_EVENT_ON_ZONE, &OnPlayerZone);
    }

  4. #4
    jaffabomb's Avatar Active Member
    Reputation
    18
    Join Date
    Dec 2006
    Posts
    40
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry im a noob to all this stuff, would you be able to tell me what to do with this and how to add my own songs please? it would be really really helpful

  5. #5
    jackthripper's Avatar Member
    Reputation
    10
    Join Date
    Mar 2009
    Posts
    195
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    first off, did you compile or are you running a repack? cause if its a repack ur s.o.l.
    I HAVE THE BALLS TO ASK STUPID QUESTIONS

  6. #6
    jaffabomb's Avatar Active Member
    Reputation
    18
    Join Date
    Dec 2006
    Posts
    40
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i used AC-web's 8.0 repack :/

Similar Threads

  1. changing the zone music
    By resinate in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 08-30-2008, 08:54 PM
  2. WOTLK Zone Music
    By SimonTalor in forum World of Warcraft General
    Replies: 1
    Last Post: 05-28-2008, 03:22 AM
  3. Replies: 18
    Last Post: 11-08-2007, 09:46 PM
  4. [Guide] Changing City / login / Zone music to what ever u want (Pictures)
    By Illidan1 in forum World of Warcraft Model Editing
    Replies: 7
    Last Post: 10-21-2007, 07:47 AM
  5. Editing zone music?
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 10-16-2007, 08:56 PM
All times are GMT -5. The time now is 02:58 AM. 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