|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
first, how do i change the amount of houses a person can have per account? how do i change the decay time of player corpses? how do i make it so that monsters dont break items or walk through them when they are blocked? how do i change the resist cap on mobiles? (EX. instead of a 70 max resists i want 100 max resist). i also want to modify this script so that when you double click an object like a stone it changes the hue of your body to 1109 and when you double click it again it changes your hue back to what it was befor, that would be some very helpful information for me. im wanting to do something just like that with this script too accept when you say batform it changes your hue to 1109 and saying humanform changes it back, if you could at least show me how to do it with this script im sure i could figure out how to apply it to double clicking an item.
[code] using System; using System.Collections; using Server; using Server.Misc; using Server.Items; using Server.Gumps; using Server.Multis; using Server.Engines.Help; using Server.ContextMenus; using Server.Network; namespace Server.Items { public class VampireCrest : BaseRing { [Constructable] public VampireCrest() : base( 0x108a ) { Name = "Vampire Crest Ring"; Weight = 0.1; EventSink.Speech += new SpeechEventHandler( EventSink_Speech ); } private void EventSink_Speech( SpeechEventArgs e ) { if(e.Mobile.FindItemOnLayer(Layer.Ring) is VampireCrest) { string keyword = e.Speech; switch ( keyword ) { case "batform": { e.Mobile.BodyValue = 317; break; } case "humanform": { if (e.Mobile.Female == false) { e.Mobile.BodyValue = 400; } else { e.Mobile.BodyValue = 401; } break; } } } else { e.Mobile.SendLocalizedMessage( 1010095 ); // This must be on your person to use. } } public VampireCrest( Serial serial ) : base( serial ) { } public override void Serialize( GenericWriter writer ) { base.Serialize( writer ); writer.Write( (int) 0 ); // version } public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); } } } |
|
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Location: In My Cold Cell
Age: 44
Posts: 1,848
|
More than one house per account FAQ in FAQ's section of forum.
Change corpse decay time in Corpse.cs. Edit maxresist in AOS.cs For the monsters. Not sure but look in BaseCreature.cs I am pretty sure for the hue you will have to do an arrey to keep the the exact old body hue info.
__________________
I'm waiting in my cold cell when the bell begins to chime Reflecting on my past life and it doesn't have much time. |
|
|
|
|
|
#3 (permalink) | |
|
Quote:
I have been working on something that adds a [transform command for GMs to turn into different things like [transform cat. I am still trying to work out a few bugs before I post it, but if you want to look at my most recent code I can post it.
__________________
Mebane2/DarkHero http://knightsofsteel.sytes.net My Bibles for posting on forums http://www.albion.com/netiquette/corerules.htmlhttp://dictionary.cambridge.org Become a Bone Marrow Donor Today http://www.marrow.org/HELP/how_join.html |
||
|
|
|
|
|
#4 (permalink) |
|
whats an arrey? and how would it look in script format? im not much for starting code from scratch but i can usually figure out how to manipulate things by changing keywords around, and if you wanted to post that script mebane2 i would appreciate it, maybe i can learn something from it
![]() |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|