Logging of staff crafting items, Fixes for the OSI client changes The potion stacking stuff BaseWeapon fix, so that damage increase things don't multiply themselves. admin gump fixes for Firewall Various display tweaks for weight SoS no longer spawn in Tokuno Hiryu hues happified to OSI standards staff now see alliance chat correctly Play barkeeper text increased per OSI Various other OSI skill requirement changes Various unimplemented features of the SE moves EventSink for when the client version is received from client. Client validation moved out of the core. Client version validation now has options to ignore/kick/warn/annoy. Automagically tries to detect current client. Reverted the delayeddamagecontext back to OSI standards. Can no longer use bags of sending in jail. MagerySpell implemented. Now only Magery spells have a circle, and various other properties of 'em. TransformationSpellHelper now implemented. Things moved around for this. Spells now need a Timespan for the cast delay, instead of arbitrarily based on Circle. Circle doesn't make sense for non-Magery spells! Alot of the spellweaving spells added to OSI standards.
84 lines
No EOL
2.3 KiB
C#
84 lines
No EOL
2.3 KiB
C#
using System;
|
|
using Server;
|
|
using Server.Mobiles;
|
|
using Server.Spells;
|
|
|
|
namespace Server.Items
|
|
{
|
|
public class TribalPaint : Item
|
|
{
|
|
public override int LabelNumber{ get{ return 1040000; } } // savage kin paint
|
|
|
|
[Constructable]
|
|
public TribalPaint() : base( 0x9EC )
|
|
{
|
|
Hue = 2101;
|
|
Weight = 2.0;
|
|
}
|
|
|
|
public TribalPaint( Serial serial ) : base( serial )
|
|
{
|
|
}
|
|
|
|
public override void OnDoubleClick( Mobile from )
|
|
{
|
|
if ( IsChildOf( from.Backpack ) )
|
|
{
|
|
if ( Factions.Sigil.ExistsOn( from ) )
|
|
{
|
|
from.SendLocalizedMessage( 1010465 ); // You cannot disguise yourself while holding a sigil.
|
|
}
|
|
else if ( !from.CanBeginAction( typeof( Spells.Fifth.IncognitoSpell ) ) )
|
|
{
|
|
from.SendLocalizedMessage( 501698 ); // You cannot disguise yourself while incognitoed.
|
|
}
|
|
else if ( !from.CanBeginAction( typeof( Spells.Seventh.PolymorphSpell ) ) )
|
|
{
|
|
from.SendLocalizedMessage( 501699 ); // You cannot disguise yourself while polymorphed.
|
|
}
|
|
else if( TransformationSpellHelper.UnderTransformation( from ) )
|
|
{
|
|
from.SendLocalizedMessage( 501699 ); // You cannot disguise yourself while polymorphed.
|
|
}
|
|
else if ( Spells.Ninjitsu.AnimalForm.UnderTransformation( from ) )
|
|
{
|
|
from.SendLocalizedMessage( 1061634 ); // You cannot disguise yourself while in that form.
|
|
}
|
|
else if ( from.IsBodyMod || from.FindItemOnLayer( Layer.Helm ) is OrcishKinMask )
|
|
{
|
|
from.SendLocalizedMessage( 501605 ); // You are already disguised.
|
|
}
|
|
else
|
|
{
|
|
from.BodyMod = ( from.Female ? 184 : 183 );
|
|
from.HueMod = 0;
|
|
|
|
if ( from is PlayerMobile )
|
|
((PlayerMobile)from).SavagePaintExpiration = TimeSpan.FromDays( 7.0 );
|
|
|
|
from.SendLocalizedMessage( 1042537 ); // You now bear the markings of the savage tribe. Your body paint will last about a week or you can remove it with an oil cloth.
|
|
|
|
Consume();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
|
|
}
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|
|
} |