Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

Custom Script Releases This forum is where you can release your custom scripts for other users to use.

Please note: By releasing your scripts here you are submitting them to the public and as such agree to publish them under the GPL licensing terms. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO.

Reply
 
Thread Tools Display Modes
Old 08-25-2007, 07:34 AM   #1 (permalink)
Forum Novice
 
Varchild's Avatar
 
Join Date: Jan 2004
Location: Gorizia - Italy
Age: 29
Posts: 221
Send a message via ICQ to Varchild Send a message via MSN to Varchild
Default [RunUO 2.0 SVN][OSI]Dawn's Music Box

Hi all.

This is my first public subscription.
I've tryed to make a copy of OSI Dawn's Music Box.

All infoes are taken from UOGuide.


Story
Once a great man, Lord Blackthorn's body & soul became twisted by the power of Exodus. Seeking total control over Sosaria, he led a fearsome army, cutting down all who opposed him. Sosaria's salvation lay in a simple peasant named Dawn who valiantly opposed the corrupted Lord and led the people of Sosaria to victory. This music box was given to Dawn in gratitude of her achievements.

Features:
  • Can be turned with an Interior Decorate tool;
  • Each box comes with 4 random common tracks;
  • You must have music enabled in the Option Menu to hear the songs;
  • There are 40 common, 12 uncommon, and 3 rare tracks;
  • Tracks keep the order they are placed into the music box and can not be changed;

Other Features:
  • Songs are found via MusicBoxGears.
    They come in 3 TrackRarity types (Common, Uncommon, Rare) like OSI.
    Rarity songs are checked from UoGuide.
    Gears have right label (for each rarity type) and show song label under name.
    Each gear can be used to add its song to a Dawn's music box.
  • MusicBox comes with 4 common tracks random choosen from tracks available.
    It displays correctly how many tracks (grouped by rarity) are in the Box.
    It has to be locked down to be used.
    Double clicking it, if the clicker is Owner of the house where it is locked down, a menu appears.
    If a song is already playing it will display "stop song" entry.
    Music box retains all gears correctly in same order they are put into.
  • When a songs starts the box animate.

I've included in the pack modified Golem, Betrayer and Juggernaut that should spawn common or uncommon track if not paragon and rare tracks if paragon.

In this project I would like to make a replica of OSI Dawn's music box.
I will appreciate every suggestion to make this scripts "more" OSI like.

Some questions are:
  1. What are the percentages of gears spawn in monster?
  2. What messages appears on Music Box use? Are mine correct?
  3. What about Music Box behaviour? is it correct? It does stop nearby music boxes from playing?
  4. Is the code clear and debugged enought?

Notes for installations:
Files in Distro folder must be merged or replaced.
Files in DawnsMusicBox can be placed where you desire.

Good music for all.

^__^
Attached Files
File Type: zip Dies Irae - DawnsMusicBox [2.0].zip (195.4 KB, 523 views)
__________________
Dies Irę, dies illa
solvet sęclum in favilla

Developer only on
Midgard Shard
Varchild is offline   Reply With Quote
Old 08-25-2007, 11:42 AM   #2 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie, Wyoming
Age: 45
Posts: 1,699
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Thumbs up

Great Job this is like it should be like osi i would say its about 100% osi way plus karma keep up the good work.
__________________
Erica is offline   Reply With Quote
Old 08-25-2007, 01:33 PM   #3 (permalink)
Forum Novice
 
Varchild's Avatar
 
Join Date: Jan 2004
Location: Gorizia - Italy
Age: 29
Posts: 221
Send a message via ICQ to Varchild Send a message via MSN to Varchild
Default

Quote:
Originally Posted by Erica View Post
Great Job this is like it should be like osi i would say its about 100% osi way plus karma keep up the good work.
Thank You so much.

^^
__________________
Dies Irę, dies illa
solvet sęclum in favilla

Developer only on
Midgard Shard
Varchild is offline   Reply With Quote
Old 08-25-2007, 03:18 PM   #4 (permalink)
Forum Novice
 
Midnightdragon's Avatar
 
Join Date: Jun 2006
Age: 30
Posts: 618
Default

I think the name of the gear is different I can take a pic later on and post it. This is pretty close to what it is like. Music box gears only drop on golems on EA shards and the chance is fairly low even for common gears to drop. Paragon golems have a much higher chance of dropping a gear though much higher.
__________________
Retired from UO/RunUO.
Midnightdragon is offline   Reply With Quote
Old 08-25-2007, 04:04 PM   #5 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

This is exactly what I was hoping someone would create when I first posted my version of it. Nice job, and keep up the good work!
Lokai is offline   Reply With Quote
Old 08-25-2007, 09:10 PM   #6 (permalink)
Forum Novice
 
shaggster's Avatar
 
Join Date: Dec 2005
Age: 34
Posts: 115
Default

Hmm /im having problems addint this to a token. Im trying to make them a option of 1 of 5 items as a gift on a token from completing a set task. Any idea on what i would add as a item name ?? i tryed dawnsmusicbox in this form but i get this error..

new TypeTileButtonInfo( typeof( DawnsMusicBox ), 0x2AF9, "Dawns Music Box" ),

this is the error .. "The type or namespace name 'DawnsMusicBox' could not be found (are you missing a using directive or an assembly reference?)"

Normaly just the name would work but this one is confusing me.
shaggster is offline   Reply With Quote
Old 08-26-2007, 07:19 AM   #7 (permalink)
Forum Novice
 
Varchild's Avatar
 
Join Date: Jan 2004
Location: Gorizia - Italy
Age: 29
Posts: 221
Send a message via ICQ to Varchild Send a message via MSN to Varchild
Default

Quote:
Originally Posted by shaggster View Post
Hmm /im having problems addint this to a token. Im trying to make them a option of 1 of 5 items as a gift on a token from completing a set task. Any idea on what i would add as a item name ?? i tryed dawnsmusicbox in this form but i get this error..

new TypeTileButtonInfo( typeof( DawnsMusicBox ), 0x2AF9, "Dawns Music Box" ),

this is the error .. "The type or namespace name 'DawnsMusicBox' could not be found (are you missing a using directive or an assembly reference?)"

Normaly just the name would work but this one is confusing me.
Have you added "using Server.Items.MusicBox" at the top of your script?
__________________
Dies Irę, dies illa
solvet sęclum in favilla

Developer only on
Midgard Shard
Varchild is offline   Reply With Quote
Old 08-26-2007, 11:01 AM   #8 (permalink)
Forum Novice
 
shaggster's Avatar
 
Join Date: Dec 2005
Age: 34
Posts: 115
Default

no dang how did i mis that ty . great script

Small spelling error you have a x and should be a c
Code:
 public void TogglePlaying( bool hasToStart )
        {
        	ToggleTimer( hasToStart );
        	
        	string message = hasToStart ? "* The musix box starts playing a song *" : "* The musix box stops *";

Code:
 public void TogglePlaying( bool hasToStart )
        {
        	ToggleTimer( hasToStart );
        	
        	string message = hasToStart ? "* The music box starts playing a song *" : "* The music box stops *";
shaggster is offline   Reply With Quote
Old 10-01-2007, 02:06 PM   #9 (permalink)
Forum Novice
 
XenoNeo's Avatar
 
Join Date: Jan 2006
Age: 25
Posts: 328
Send a message via AIM to XenoNeo Send a message via MSN to XenoNeo
Default

I had an issue with this script... Here is what I got and what I did to attempt to fix this.

Problem:

This list of songs don't contain a definition for "Server.MusicName"

GwennoConversation
DreadHornArea
ElfCity
GoodEndGame
GoodVsEvil
GreatEarthSerpents
GrizzledDungeon
Humanoids_U9
MelisandesLair
MinocNegative
ParoxysmusLair
Paws
SelimsBar
SerpentIsleCombat_U7
ValoriaShips

Attempt to fix:

I updated the Client in which the server is defined to load the files from.
I updated the Client that I use to play UO(Not sure what that has anything to do with which it doesn't).

This failed.

So my question is there an issue with the RunUO version I am using? I am using RunUO 2.0 RC1 and it is the version you download from this site so I am not sure about what SVN it is.

Thanks for any help you can give!!
__________________
:mad: Red makes me angry!:mad::rolleyes: Blue makes me happy!:rolleyes:

.:Xeno-Corporation:.
Devised from our signature art to our Ultima Online shard; Thanks to all those that contributed to it all!
XenoNeo is offline   Reply With Quote
Old 10-02-2007, 02:36 AM   #10 (permalink)
Forum Novice
 
Varchild's Avatar
 
Join Date: Jan 2004
Location: Gorizia - Italy
Age: 29
Posts: 221
Send a message via ICQ to Varchild Send a message via MSN to Varchild
Default

@XenoNeo

You have to Download the current SVN to use this script.

Read about this:
HowTo: Use Tortoise SVN

^_^
__________________
Dies Irę, dies illa
solvet sęclum in favilla

Developer only on
Midgard Shard
Varchild is offline   Reply With Quote
Old 12-27-2007, 10:56 AM   #11 (permalink)
Newbie
 
Join Date: Aug 2006
Posts: 40
Default

Love this script; fantastic work!

If anyone else is having issues with gears not loading their labels and track info after a restart, I noticed line 143 in musicboxgears.cs is:

Code:
MusicName m_Music = (MusicName)reader.ReadInt();
Changing it to:

Code:
m_Music = (MusicName)reader.ReadInt();
...fixed this for us. All gears were reverting to turfin after restart. A player noticed this after having stored the gears for awhile before placing them in the box.

Thank you again for the excellent script. We've had a lot of fun with it!
__________________
Ednyved: Developer, The BES Oasis
http://oasis.netconsvc.com/
Ednyved is offline   Reply With Quote
Old 12-27-2007, 02:24 PM   #12 (permalink)
Forum Novice
 
aj9251's Avatar
 
Join Date: Nov 2006
Location: Lethbridge Alberta Canada
Age: 22
Posts: 437
Default

Very very nice
__________________
aj9251 is offline   Reply With Quote
Old 03-16-2008, 10:06 PM   #13 (permalink)
Newbie
 
Join Date: Dec 2005
Location: new york
Posts: 27
Default

Hehe fixed my own problem, rechecked, had a typo :P

Last edited by C h a o s; 03-16-2008 at 11:08 PM.
C h a o s is offline   Reply With Quote
Old 04-03-2008, 03:32 AM   #14 (permalink)
Lurker
 
Join Date: Jun 2006
Posts: 16
Default

I'm so sorry to res an old thread but I wanted to know why it won't play "The Wanderer" song I've edited the TrackList.cs to read as so
Code:
			// There are currently 4 Rare Music Box Gears.
			// "The Wanderer" was only available during the "Book of Truth" quest in early spring 2007.
			// So there are only 3 TrackInfo
			new TrackInfo(	219, 	1075138,	MusicName.SelimsBar,		TrackRarity.Rare ),
			new TrackInfo(	285, 	1075139,	MusicName.SerpentIsleCombat_U7,	TrackRarity.Rare ),
			new TrackInfo(	118,	1075140,	MusicName.ValoriaShips,		TrackRarity.Rare ),
			new TrackInfo(	125,	1075141, MusicName.TheWanderer,		TrackRarity.Rare)
Im not sure about the cliloc but I dont think CliLoc has anything to do with the track not playing or even whether or not the MusicBoxGear shows up. Any help fixing this would be greatly appreciated.

oh and in game I try using [add MusicBoxGears and it does random gears as it should but still no Wanderer ones.
Using [add MusicBoxGears "the Wanderer" thewanderer and it keeps giving me usage message:
Usage:
MusicBoxGears
MusicBoxGears MusicName music

Last edited by LordDarkScythe; 04-03-2008 at 03:42 AM. Reason: further clarification
LordDarkScythe is offline   Reply With Quote
Old 03-06-2009, 01:51 PM   #15 (permalink)
Lurker
 
Earedel's Avatar
 
Join Date: Oct 2008
Posts: 6
Default

I have a question too. I get some problems with the 10 step range. Sometimes works, sometimes it does not.

And related to the context menu to set the security level, I wonder how it works, because even whet set in "anyone", no one but the owner can play the box. I wonder if this is just to add gears?
Earedel is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5