Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Spells;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class RobeOfTheSkull1 : BaseOuterTorso
|
||||
{
|
||||
public override int ArtifactRarity{ get{ return 13; } }
|
||||
[Constructable]
|
||||
public RobeOfTheSkull1() : base( 0x2684 ) // Hooded Shroud
|
||||
{
|
||||
Hue = 1153; // luna white
|
||||
Name = "The Skeleton";
|
||||
Attributes.BonusStr = 15;
|
||||
Attributes.BonusDex = 15;
|
||||
}
|
||||
|
||||
public RobeOfTheSkull1( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override bool OnEquip( Mobile from )
|
||||
{
|
||||
if ( !from.CanBeginAction( typeof( Server.Spells.Seventh.PolymorphSpell ) ) )
|
||||
{
|
||||
from.SendLocalizedMessage( 1061628 ); // You can't do that while polymorphed.
|
||||
return false;
|
||||
}
|
||||
else if ( TransformationSpellHelper.UnderTransformation( from ) )
|
||||
{
|
||||
from.SendMessage( "You cannot equip that in your current form." );
|
||||
return false;
|
||||
}
|
||||
else if ( DisguiseTimers.IsDisguised( from ) )
|
||||
{
|
||||
from.SendLocalizedMessage( 1061631 ); // You can't do that while disguised.
|
||||
return false;
|
||||
}
|
||||
|
||||
from.SendMessage( "You feel the power of the dead taking over your body!" );
|
||||
from.SolidHueOverride = 1153;
|
||||
|
||||
if( !from.Mounted ) // Only transform if not mounted..
|
||||
{
|
||||
from.BodyMod = 50;
|
||||
from.FixedParticles( 0x375A, 10, 15, 5010, EffectLayer.Waist );
|
||||
from.FixedParticles( 0x376A, 1, 14, 0x13B5, EffectLayer.Waist );
|
||||
from.PlaySound( from.Body.IsFemale ? 0x338 : 0x44A );
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
from.SendMessage( 1154, "The transformation was incomplete! The skeleton is too brittle to ride mounts!!" );
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void OnRemoved( object parent )
|
||||
{
|
||||
if ( parent is Mobile )
|
||||
{
|
||||
Mobile from = ( Mobile ) parent;
|
||||
|
||||
from.SolidHueOverride = -1; // Remove the Black Hue
|
||||
|
||||
from.BodyMod = 0; // Remove the Drgon Body.
|
||||
|
||||
from.FixedParticles( 0x375A, 10, 15, 5010, EffectLayer.Waist );
|
||||
from.SendMessage( "You feel yourself gaining strength." );
|
||||
}
|
||||
|
||||
base.OnRemoved( parent );
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( ( int ) 0 );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user