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

[2.x] Play Music On Login 1.1

No permission to download

Felladrin

Sorceror
Felladrin submitted a new resource:

Play Music On Login (version 1.1) - Plays a specific or random music for players on login.

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...

Read more about this resource...
 

otimpyre

Sorceror
Found a small bug I think. Not really a big deal. But, logging out and the reconnecting several times crashes the client not the server. When u logout the music is still playing. Then back in tries to change the song to the new random. Think this causes a problem because, music is already playing. *shrugs* Just don't keep logging in and out. May not even be result of this script need someone else to test.
 

otimpyre

Sorceror
I've added more music and alphabetized them all.

Code:
            MusicName.Approach,
            MusicName.Britain1,
            MusicName.Britain2,
            MusicName.BTCastle,
            MusicName.Bucsden,
            MusicName.Cave01,
            MusicName.Combat1,
            MusicName.Combat2,
            MusicName.Combat3,
            MusicName.Cove,
            MusicName.Create1,
            MusicName.Death,
            MusicName.DragFlit,
            MusicName.DreadHornArea,
            MusicName.Dungeon2,
            MusicName.Dungeon9,
            MusicName.ElfCity,
            MusicName.Forest_a,
            MusicName.GoodEndGame,
            MusicName.GoodVsEvil,
            MusicName.GreatEarthSerpents,
            MusicName.GrizzleDungeon,
            MusicName.GwennoConversation,
            MusicName.Humanoids_U9,
            MusicName.InTown01,
            MusicName.Jhelom,
            MusicName.Jungle_a,
            MusicName.LBCastle,
            MusicName.Linelle,
            MusicName.Magincia,
            MusicName.MelisandesLair,
            MusicName.Minoc,
            MusicName.MinocNegative,
            MusicName.Moonglow,
            MusicName.Mountn_a,
            MusicName.Nujelm,
            MusicName.Ocllo,
            MusicName.OldUlt02,
            MusicName.OldUlt03,
            MusicName.OldUlt04,
            MusicName.OldUlt05,
            MusicName.OldUlt06,
            MusicName.ParoxysmusLair,
            MusicName.Paws,
            MusicName.Plains_a,
            MusicName.Sailing,
            MusicName.Samlethe,
            MusicName.SelimsBar,
            MusicName.SerpentIsleCombat_U7,
            MusicName.Serpents,
            MusicName.Skarabra,
            MusicName.Stones2,
            MusicName.Swamp_a,
            MusicName.Taiko,
            MusicName.Tavern01,
            MusicName.Tavern02,
            MusicName.Tavern03,
            MusicName.Tavern04,
            MusicName.TokunoDungeon,
            MusicName.Trinsic,
            MusicName.ValoriaShips,
            MusicName.Vesper,
            MusicName.Victory,
            MusicName.Wind,
            MusicName.Yew,
            MusicName.Zento
 

Felladrin

Sorceror
Found a small bug I think. Not really a big deal. But, logging out and the reconnecting several times crashes the client not the server. When u logout the music is still playing. Then back in tries to change the song to the new random. Think this causes a problem because, music is already playing. *shrugs* Just don't keep logging in and out. May not even be result of this script need someone else to test.


I don't know. Never happened to me (I use client 7.0.10.3, by the way).
 

tindo

Sorceror
Will this override the client setting when they turn the music off or is it dependent on their setting?
 
Top