Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 11-20-2003, 08:12 PM   #1 (permalink)
 
Join Date: Oct 2003
Location: Springfield, MO
Age: 24
Posts: 111
Send a message via ICQ to atriticuss Send a message via Yahoo to atriticuss
Default A few Simple Questions

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();
}

}
}
atriticuss is offline   Reply With Quote
Old 11-20-2003, 09:04 PM   #2 (permalink)
Forum Expert
 
Mortis's Avatar
 
Join Date: Oct 2002
Location: In My Cold Cell
Age: 44
Posts: 1,848
Default

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.
Mortis is offline   Reply With Quote
Old 11-20-2003, 10:47 PM   #3 (permalink)
 
Join Date: Oct 2003
Posts: 401
Send a message via ICQ to mebane2 Send a message via AIM to mebane2 Send a message via Yahoo to mebane2
Default

Quote:
Originally Posted by Mortis
I am pretty sure for the hue you will have to do an arrey to keep the the exact old body hue info.
Just have the stone toggle the HueMod variable instead between a color and NULL.

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
mebane2 is offline   Reply With Quote
Old 11-21-2003, 12:07 AM   #4 (permalink)
 
Join Date: Oct 2003
Location: Springfield, MO
Age: 24
Posts: 111
Send a message via ICQ to atriticuss Send a message via Yahoo to atriticuss
Default

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