RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Resource icon

Play Music On Login 1.1

No permission to download
Introduction

I've made this one to break the loop from the client start music. Forcing the server to play a town theme for the players when they join the game.

Installation

Just drop this script somewhere in you Scripts folder.

Configuration
C#:
public static class Config
{
    public static bool PlayRandomMusic = true;              // Should we play a random music from the list?
    public static MusicName SingleMusic = MusicName.Stones2; // Music to be played if PlayRandomMusic = false.
}

By default, it will play a random music from the list.
C#:
public static MusicName[] MusicList = new MusicName[]
{
    MusicName.Stones2,
    MusicName.Magincia,
    MusicName.Minoc,
    MusicName.Ocllo,
    MusicName.Skarabra,
    MusicName.Trinsic,
    MusicName.Yew,
    MusicName.InTown01,
    MusicName.Moonglow,
    MusicName.MinocNegative,
    MusicName.ValoriaShips
};

But if you set PlayRandomMusic = false it will play the classic Stones song.

The complete list of musics available can be found on the Server/Region.cs core script.
  • Like
Reactions: XenoNeo
Author
Felladrin
Downloads
60
Views
414
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from Felladrin

Latest reviews

Capital Idea! excellent!
Top