1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Music in different regions

Discussion in 'ServUO Discussion' started by TwilightRaven, Nov 14, 2017.

  1. TwilightRaven
    Offline

    TwilightRaven Member

    Joined:
    Oct 29, 2016
    Messages:
    388
    Likes Received:
    7
    So,

    I'm wondering if it is possible to add custom (not replace) music for different areas of the map. For example, I built a city called Roma and I'd like to set a specific music to it instead of the normal music for wilderness.
     
  2. arvoreen
    Online

    arvoreen Member

    Joined:
    Aug 20, 2014
    Messages:
    61
    Likes Received:
    1
    So I looked in BaseRegion and didn't find anything, so since BaseRegion inherits from the core class (core meaning compiled into the server.exe) Region, I looked in the Region class, and it has the following:
    public MusicName Music{ get{ return m_Music; } set{ m_Music = value; } }

    So if you set Music in your custom region class, it should change the music in your region. It looks like it will only play music from the MusicName enum (also in Region.cs in the server core), not sure how you'd use custom music, since I imagine that would involve modifying/adding client files.
     
  3. Nadious
    Offline

    Nadious Member

    Joined:
    Aug 5, 2016
    Messages:
    104
    Likes Received:
    5
    If you're looking to use the in-game music, but you just want to play a specific track from what is already there, I know the Custom Regions in a Box Script had the ability for you to choose the music you wanted for the region that you made. But (and someone correct me if I'm wrong here), from what I understand, the only way to add different music to the game is to replace the existing tracks with the names that are already in use. If that's correct, wouldn't that be a limitation of the client itself?

    I've only replaced music before by swapping out different tracks, but keeping the names of those tracks the same as the ones that were already in use in game. I'm not sure about adding in a completely new track into the existing mix.
     
  4. sahisahi
    Offline

    sahisahi Member

    Joined:
    Jan 13, 2016
    Messages:
    458
    Likes Received:
    13
    Yeah, like nadious say, Custom Region in a box is the best tool out there to manage regions
     
  5. TwilightRaven
    Offline

    TwilightRaven Member

    Joined:
    Oct 29, 2016
    Messages:
    388
    Likes Received:
    7
    Anybody have a link to region in a box?
     
  6. sahisahi
    Offline

    sahisahi Member

    Joined:
    Jan 13, 2016
    Messages:
    458
    Likes Received:
    13
    https://www.servuo.com/archive/custom-regions-in-a-box-cleaned-up-and-net-4-0.624/

    Usage:
    [add RegionControl in game to add a RegionControl.

    Then doubleclick it and u have 3 options, disable skills, disable spells and make the actual region/area

    for more options do [props and target the RegionControl, there u will see tons of options, such as no pvp, no heal, no housing, change music, location on death.. no potions etc

    to see the region u are making on, do [Regionbounds and it will show you the area. :p
     
  7. TwilightRaven
    Offline

    TwilightRaven Member

    Joined:
    Oct 29, 2016
    Messages:
    388
    Likes Received:
    7
    On build...


    Errors:
    + Customs/[ServUO.com]-Custom Regions/Custom Regions/CustomRegion.cs:
    CS0115: Line 215: 'Server.Regions.CustomRegion.AllowHarmful(Server.Mobile, Server.Mobile)': no suitable method found to override
    Scripts: One or more scripts failed to compile or no script files were found.
    - Press return to exit, or R to try again.
     
  8. sahisahi
    Offline

    sahisahi Member

    Joined:
    Jan 13, 2016
    Messages:
    458
    Likes Received:
    13
    You are using Servuo or Runuo?
     
  9. TwilightRaven
    Offline

    TwilightRaven Member

    Joined:
    Oct 29, 2016
    Messages:
    388
    Likes Received:
    7
Similar Threads: Music different
Forum Title Date
Script Support Britain music Oct 7, 2017
Archived Bug Reports Snake Charmer Flute - Requires music but it should NOT Aug 15, 2017
ServUO Discussion how to edit music Jan 23, 2017
General Discussion Music Definitions Jan 18, 2017
General Discussion Ultima Online Music Dec 6, 2016
Buy and Sell 120 Music Mar 14, 2016
Custom Releases Play Music On Login Jan 18, 2016