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 11-11-2005, 02:52 PM   #1 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Thumbs up Bandage Systems

Bloody Bandage System V2.0
Made by Joeku AKA Demortris

Description
Updated bloody bandage script that enables new features. One distro file included.

Features
-25% chance that a person will receive a bloody bandage when he/she uses a bandage (while healing self, healing someone else, or resurrecting)
-Enables ALL water targets for cleaning bloody bandages, including:
~All water land tiles
~All water static tiles (including animated static tiles)
~Water Trough (East and West)
~Fountain (Stone and Sandstone)
~Water Tub
~Pitcher of Water
~Wash Basin
~Water Barrel
~Water Vat
~Pond

-Washes all bloody bandages at once, not one at a time
-Range of three tiles
-When washed using beverages, bandages deplete some of the quantity of the beverage (must be water)

Installation
Drop all of the files inside the "Distros" folder into your Scripts folder. The distro files consist of: Bandage.cs. Place the Bloody Bandage System into your custom scripts directory.

Bloody+Enhanced Bandage System
Made by Joeku AKA Demortris

Description
Updated bloody bandage script that enables new features. Enhanced bandage script, also. One distro file included. Note: THIS IS NOT OSI ACCURATE! It is just the way that I think it should have been made .

Features
-All of the Bloody Bandage System V2.0 features
-50% chance that a person will receive a bloody bandage when he/she uses an enhanced bandage
-Nice little "Enhanced" label for enhanced bandages, as well as a golden color so players can visually tell the difference between enhanced and normal
-Magical fountain enhances bandages OnTarget, OnDragDrop, and OnDoubleClick

Installation
Drop all of the files inside the "Distros" folder into your Scripts folder. The distro files consist of: Bandage.cs. Place the Bloody+Enhanced Bandage System into your custom scripts directory.

Thank you for using this script! You can find some tutorials for modifying it on my blog at http://demortris.tripod.com. I hope you enjoy this script! You can e-mail suggestions/requests to demortris@adelphia.net or you can post them here.

***EDIT***
Updated to V2.0, added Bloody+Enhanced Bandage System.
Attached Files
File Type: zip Bloody+EnhancedBandageSystem.zip (12.4 KB, 383 views)
File Type: zip BloodyBandageSystemV2.0.zip (7.3 KB, 374 views)
Joeku is offline  
Old 11-11-2005, 02:58 PM   #2 (permalink)
Slacker
 
Join Date: Apr 2004
Age: 40
Posts: 58
Send a message via AIM to phoo
Default Attach it ?

__________________
I PAID did you ?
phoo is offline  
Old 11-11-2005, 03:15 PM   #3 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

Done
Joeku is offline  
Old 11-11-2005, 05:07 PM   #4 (permalink)
 
hudel's Avatar
 
Join Date: Oct 2003
Location: Germany
Age: 38
Posts: 508
Send a message via ICQ to hudel
Default

Thanks for the job. Fine idea.
hudel is offline  
Old 11-12-2005, 12:03 PM   #5 (permalink)
Forum Novice
 
Turmoil's Avatar
 
Join Date: May 2005
Location: Montreal
Age: 29
Posts: 136
Send a message via MSN to Turmoil
Default Awesome...

Everything works great when using your 2 files. I even tested cleaning the bloody bandages on static water and it converted my bloody bandages back to clean ones. Thanks for posting these files.
Turmoil is offline  
Old 11-12-2005, 12:20 PM   #6 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

No problem, I had the old script from the RunUO forum and got sick and tired of it only cleaning on about .25% of the stuff it should have

You will be seeing many more updated scripts coming soon
Joeku is offline  
Old 11-12-2005, 04:13 PM   #7 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

Great idea. I haven't taken a look at this yet, although one thing you should do is. For the pitchers of water (and anything else that may have it), you should check to make sure its in their backpack, and then reduce the quantity by 1. Also if you didn't already (it sounds stupid to mention it) but also make sure that the quantity is at least at 1. Because when its empty, I am not sure if the pitcher resets itself to beverage type none.
XxSP1DERxX is offline  
Old 11-12-2005, 05:11 PM   #8 (permalink)
Account Terminated
 
Join Date: Nov 2005
Location: Effingham, Il
Age: 16
Posts: 50
Send a message via ICQ to Teh Gamer Send a message via AIM to Teh Gamer Send a message via MSN to Teh Gamer
Default

Finally, those aiding noobs won;t always get what they wabt!
Teh Gamer is offline  
Old 11-12-2005, 07:34 PM   #9 (permalink)
Forum Novice
 
Join Date: Jul 2005
Posts: 138
Default

I will test this later tonight, but I want to say thanks for saving me the work of it. These will be very helpful.
Yiffi is offline  
Old 11-13-2005, 12:10 PM   #10 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

Thanks for the kind words, everyone.

Quote:
Originally Posted by XxSP1DERxX
Great idea. I haven't taken a look at this yet, although one thing you should do is. For the pitchers of water (and anything else that may have it), you should check to make sure its in their backpack, and then reduce the quantity by 1. Also if you didn't already (it sounds stupid to mention it) but also make sure that the quantity is at least at 1. Because when its empty, I am not sure if the pitcher resets itself to beverage type none.
Actually, all the system does is just check for the ItemID of the pitcher of water. That's a good idea though, I will be sure to change it.
Joeku is offline  
Old 11-13-2005, 03:24 PM   #11 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

Alright, I have updated the Bloody Bandage System. Now, when used on a beverage (must be water), the bloody bandages will deplete the quantity of the beverage (1 beverage quantity per 10 bloody bandages.) I have changed the chance to get bloody bandages when using clean ones from 50% to 25%. I have also added a Bloody+Enhanced Bandage System. Note: THIS IS NOT OSI ACCURATE! It is just the way that I see it should have been made .
Joeku is offline  
Old 11-13-2005, 05:35 PM   #12 (permalink)
 
Join Date: Jun 2005
Posts: 9
Default

Awsome job with the bloody bandages, remember playing on a player run shard years ago that had them and I had completely forgotten about them.
Just wanted to point out tho that a "bucket of water" does not work to clean the bandages. Otherwise, great script and I thank you on behalf of myself and my players.
Barak is offline  
Old 11-14-2005, 02:25 PM   #13 (permalink)
Forum Expert
 
Join Date: Mar 2005
Location: Berlin, Germany
Age: 27
Posts: 1,136
Send a message via ICQ to Sotho Tal Ker Send a message via MSN to Sotho Tal Ker
Default

Nice
You might want to check if the bloody bandages are in the backpack or bankbox of the player and maybe you could color them in a nice red, too
Sotho Tal Ker is offline  
Old 11-14-2005, 04:24 PM   #14 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

Barak- I didn't notice that, it will be included in the next update (although I am not going to do a whole update for one item). If you want to manually add the "bucket of water" in, just PM me for more info.

Sotho Tal Ker- I left it unchecked for Backpack/Bankbox for a purpose; if a player cannot hold all of the bandages they want to wash, they can simply do the "drag and drop" (drag the bandages one tile ahead of you, skip two tiles, repeat). This enables easier washing. Also, I will leave the bloody bandages unhued because the graphic already includes blood.

Thank you both for the suggestions.
Joeku is offline  
Old 11-16-2005, 07:53 PM   #15 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

Alright, I brewed up an idea but I want to see if anyone will care before I use my time to add it.

Would it be a good addition if I added poison to the bandages? So you can poison them and drop them on a ground for a trap... or if you wash bloody bandages in a poisoned beverage, then they will be poisoned too.

I just thought it would be a (more realistic) addition to the system. Please post comments on whether or not this would interest you.
Joeku is offline  
Old 11-16-2005, 08:13 PM   #16 (permalink)
Account Terminated
 
Join Date: Sep 2004
Location: westvirginia
Age: 30
Posts: 535
Send a message via AIM to masternightmage Send a message via MSN to masternightmage Send a message via Yahoo to masternightmage
Default

yeah do that!
masternightmage is offline  
Old 11-16-2005, 10:13 PM   #17 (permalink)
 
Join Date: Oct 2005
Posts: 71
Send a message via AIM to Deaths Awakener Send a message via Yahoo to Deaths Awakener
Question

sorry im new to owning a shard but when i try to start my shard 2 errors come up saying theres already a definition for bandage and contextbandage? could anyone plz help it would be much appreciated. thx
Deaths Awakener is offline  
Old 11-17-2005, 01:33 AM   #18 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

Quote:
Originally Posted by Deaths Awakener
sorry im new to owning a shard but when i try to start my shard 2 errors come up saying theres already a definition for bandage and contextbandage? could anyone plz help it would be much appreciated. thx
Problem resolved (in private). Any other comments on the potential poison-adding?
Joeku is offline  
Old 11-17-2005, 01:39 AM   #19 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

Quote:
Originally Posted by Joeku
Alright, I have updated the Bloody Bandage System. Now, when used on a beverage (must be water), the bloody bandages will deplete the quantity of the beverage (1 beverage quantity per 10 bloody bandages.) I have changed the chance to get bloody bandages when using clean ones from 50% to 25%. I have also added a Bloody+Enhanced Bandage System. Note: THIS IS NOT OSI ACCURATE! It is just the way that I see it should have been made .
So does this mean that if I clean my bandages 9 at a time... I will never deplete the quantity by 1 (EXPLOIT)? Or does that mean that UP TO 10 at a time will deplete 1 quantity?
XxSP1DERxX is offline  
Old 11-17-2005, 01:46 AM   #20 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

Lol yeah I made a check for that. It is up to the next 10 (1-10 bandages = -1 quantity, 11-20 bandages = -2 quantity, etc.)

I had to write a LOT of code to get it to work how I wanted since I couldn't use the /10 factor... it wouldn't round off properly. Basically I had to manually write the whole function, it took about 150 lines O_o.

Thank you for the concern though!
Joeku is offline  
Old 11-22-2005, 09:44 AM   #21 (permalink)
Forum Novice
 
koluch's Avatar
 
Join Date: Mar 2004
Location: Wisconsin
Age: 45
Posts: 791
Default Question:

This is a very nice update. We use the submitted script that came with the Plague Beast Lord ( I can not find the original scripter, but Alari updated that to 1.0.0 )
Until this was posted, I had not noticed this warning:
Code:
Warning: 0x40001DE1: Amount changed for non-stackable item 'Item'. (28)
I know the script you have posted works great and this error is corrected, it just has a few more things than we would like.
I want to be sure that to correct the non stackable item warning is only this section:

Code:
public override Item Dupe( int amount )
		{
			return base.Dupe( new BloodyBandage(), amount );
		}
Yes, I tested this and the warning is gone, I just want to be sure.
Again, well done.
koluch is offline  
Old 11-23-2005, 02:36 AM   #22 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

All I did to take off the warning was remove the FlipableAttribute at the beginning of the BloodyBandage.cs script (I looked at Bandage.cs and it didn't have a FlipableAttribute, so I figured that the BloodyBandage shouldn't either).
Joeku is offline  
Old 11-24-2005, 03:54 AM   #23 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

Okay after looking at your code, what you need is

(m_Bandage.Amount - 1)/10 + 1
and then compare that to how much bev.Quantity you have. Whichever is the lowest will determine how many bandages actually gets washed.

I hope this helps.
XxSP1DERxX is offline  
Old 11-24-2005, 07:16 PM   #24 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

What I came up with was
Code:
int consume = Math.Min( bev.Quantity, (Amount - 1) / 10 + 1 ) * 10;
from.AddtoBackpack( new Bandage( Math.Min( consume, m_Bandage.Amount ) );
m_Bandage.Amount -= consume;
if ( m_Bandage.Amount <= 0 )
m_Bandage.Delete();
XxSP1DERxX is offline  
Old 11-29-2005, 04:46 AM   #25 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

What I wrote can probably be done in a better way, although it does work. I have yet to hear what you think :\
XxSP1DERxX 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