Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 05-22-2005, 07:12 PM   #1 (permalink)
Forum Expert
 
Tintamar's Avatar
 
Join Date: Feb 2005
Location: USA
Age: 30
Posts: 335
Default Origami Paper for Fan Dancers

On OSI there is a random chance you will get origami paper from a fan dancer Im not sure on the chances so im not adding the fan dancer to this post.

When you double click the Origami paper you will get a random origami shape (Butterfly, swan, songbird, frog, fish, intricate shape)
Like on OSI the fish is more rare to get and only way to get the fish it to get drunk then double click the paper and you have a 61.5% chance you will get a fish when drunk. (Not sure if 61.5% is correct chances)

I'll leave it up to you to add to fan dancer if you wish

Just drop in your custom folder.

Updated: 5/23/2005
Added backpack check
Switch statement cleaned up
Sound added
Localized message added.
Attached Files
File Type: cs OrigamiPaper.cs (4.6 KB, 154 views)
Tintamar is offline  
Old 05-22-2005, 07:54 PM   #2 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

Looks good... anyone have info on the OSI specifics?

You can change the DoubleClick to look like this

Code:
		public override void OnDoubleClick( Mobile m )
      	{
			switch ( Utility.Random( 5 + (m.BAC > 0 ? 8 : 0) ) )
			{
				case 0: m.AddToBackpack( new OrigamiButterfly() ); break;
				case 1: m.AddToBackpack( new OrigamiSwan() ); break;
				case 2: m.AddToBackpack( new OrigamiSongbird() ); break;
				case 3: m.AddToBackpack( new OrigamiShape() ); break;
				case 4: m.AddToBackpack( new OrigamiFrog() ); break;
				default: m.AddToBackpack( new OrigamiFish() ); break;
			}
			Delete();
		}
XxSP1DERxX is offline  
Old 05-22-2005, 08:15 PM   #3 (permalink)
Forum Expert
 
Tannis's Avatar
 
Join Date: Feb 2004
Age: 27
Posts: 2,047
Default

I know this isn't the thread for it, but what does a ? mean? So I can understand what you said better. ( Me and Tint run the same shard )
Tannis is offline  
Old 05-22-2005, 08:19 PM   #4 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

?: is the conditional operator

its like an if statement

( condition ) ? true : false
XxSP1DERxX is offline  
Old 05-22-2005, 08:20 PM   #5 (permalink)
Forum Expert
 
Tintamar's Avatar
 
Join Date: Feb 2005
Location: USA
Age: 30
Posts: 335
Default

Quote:
Originally Posted by XxSP1DERxX
Looks good... anyone have info on the OSI specifics?

You can change the DoubleClick to look like this
Yeah either way it works.
Tintamar is offline  
Old 05-22-2005, 08:21 PM   #6 (permalink)
Forum Expert
 
Tintamar's Avatar
 
Join Date: Feb 2005
Location: USA
Age: 30
Posts: 335
Default

Quote:
Originally Posted by XxSP1DERxX
?: is the conditional operator

its like an if statement

( condition ) ? true : false

Doing it that way will give a drunk person 100% chance of getting a fish though wont it?
Tintamar is offline  
Old 05-22-2005, 08:22 PM   #7 (permalink)
Forum Expert
 
Tannis's Avatar
 
Join Date: Feb 2004
Age: 27
Posts: 2,047
Default

Thanks for the answer Sad as it is to say, stratics has NOTHING on Origami! The only thing I have found about it is what we all know, Fan Dancers have a random chance to drop an Origami Paper.

*edit*

The best I could find was a 1:6 chance, but that wasn't official, just from someone testing it out. There was also someone saying 1:5, but again, not official. And these are the chances to get a fish from being drunk, not to get Origami at all. On that, I could find nothing.
Tannis is offline  
Old 05-22-2005, 09:13 PM   #8 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

The way I wrote it, there is the same 61.5% chance to get a fish if they are drunk, and a 0% chance to get a fish if they are not.

Don't forget a backpack check
XxSP1DERxX is offline  
Old 05-22-2005, 10:06 PM   #9 (permalink)
 
Alfinus's Avatar
 
Join Date: Sep 2004
Location: Albany, Ga. USA
Age: 50
Posts: 27
Default

I used this script ,"nice". I had fandancers just dropping origamis, this makes it more OSi like. BTW, I added a few tweaks of my own, they maynot be "osi like", but I always like more effects.

I added

m.PlaySound (0x502);//Origami paper folding sound.0x501-502-503

and

m.SendMessage(0x33, "You masterly create a piece of origami art!!" );

and

m.SendMessage(0x33, "You masterly create a piece of orgami art, using the secret drunken style!!" );
Alfinus is offline  
Old 05-22-2005, 11:48 PM   #10 (permalink)
Account Terminated
 
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
Default

I think the chance of getting the paper is about the same as getting a picnic basket from ants but I dont know the exact rate. I just know its VERY hard to get them on OSI Ive only gotten one or 2 the entire time ive played. Its got to be like 1 in 200 or more though because ive killed hundreds of them and only gotten 1 or 2.
evil lord kirby is offline  
Old 05-23-2005, 01:09 AM   #11 (permalink)
Forum Expert
 
Tannis's Avatar
 
Join Date: Feb 2004
Age: 27
Posts: 2,047
Default

Yeah it's usually harder than Tintamar has it in his script. Sometimes I'll get 3 out of 50, sometimes I'll get 0 out of 100. And Alfinus, I like your messages lol
Tannis is offline  
Old 05-23-2005, 04:12 PM   #12 (permalink)
Forum Expert
 
Tintamar's Avatar
 
Join Date: Feb 2005
Location: USA
Age: 30
Posts: 335
Default

Added sound, backpack check, localized message, and Spiders cleaner switch statement. Updated Origami paper added to original post. Thanks guys.
Tintamar is offline  
 

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 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5