|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
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. |
|
|
|
|
#6 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
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 ![]() |
|
|
|
|
#7 (permalink) |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
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.
|
|
|
|
|
#10 (permalink) | |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
Thanks for the kind words, everyone.
Quote:
|
|
|
|
|
|
#11 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
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
. |
|
|
|
|
#12 (permalink) |
|
Join Date: Jun 2005
Posts: 9
|
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. |
|
|
|
|
#14 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
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. |
|
|
|
|
#15 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
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. |
|
|
|
|
#18 (permalink) | |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
Quote:
|
|
|
|
|
|
#19 (permalink) | |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
Quote:
![]() |
|
|
|
|
|
#20 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
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! |
|
|
|
|
#21 (permalink) |
|
Forum Novice
Join Date: Mar 2004
Location: Wisconsin
Age: 45
Posts: 791
|
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 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 );
}
Again, well done. |
|
|
|
|
#22 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
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).
|
|
|
|
|
#23 (permalink) |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
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. |
|
|
|
|
#24 (permalink) |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
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(); |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|