RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[SVN 297 + ML] Shields dont obtain resist from metall.

esquire

Sorceror
[SVN 297 + ML] Shields dont obtain resist from metall.

When craft or enchant :( shields have 1% fire res, or phys, etc. How to repair this problem?

and help me please enable Paragon arty drop. (Kill 1000+ Balrons paragon in Ilshenar, no art drop, only chest)

there is my code
HTML:
		public static bool CheckArtifactChance( Mobile m, BaseCreature bc )
		{
			if ( !Core.AOS )
				return false;

			double fame = (double)bc.Fame;

			if ( fame > 32000 )
				fame = 32000;

			double chance = 1 / ( Math.Max( 10, 100 * ( 0.83 - Math.Round( Math.Log( Math.Round( fame / 6000, 3 ) + 0.001, 10 ), 3 ) ) ) * ( 100 - Math.Sqrt( m.Luck 

) ) / 100.0 );

			return chance > Utility.RandomDouble();
		}

		public static void GiveArtifactTo( Mobile m )
		{
			Item item = (Item)Activator.CreateInstance( Artifacts[Utility.Random(Artifacts.Length)] );

			if ( m.AddToBackpack( item ) )
				m.SendMessage( "As a reward for slaying the mighty paragon, an artifact has been placed in your backpack." );
			else
				m.SendMessage( "As your backpack is full, your reward for destroying the legendary paragon has been placed at your feet." );
		}
	}
}

omg, im enable arti, just change
HTML:
  if ( !Core.AOS )
on
HTML:
 if ( !Core.ML )
 

chost

Wanderer
In BaseShield.cs delete

#region Mondain's Legacy
public override int PhysicalResistance{ get{ return BasePhysicalResistance + GetProtOffset() + GetResourceAttrs().ShieldPhysicalResist + PhysicalBonus + (SetEquipped ? SetPhysicalBonus : 0 ); } }
public override int FireResistance{ get{ return BaseFireResistance + GetProtOffset() + GetResourceAttrs().ShieldFireResist + FireBonus + (SetEquipped ? SetFireBonus : 0 ); } }
public override int ColdResistance{ get{ return BaseColdResistance + GetProtOffset() + GetResourceAttrs().ShieldColdResist + ColdBonus + (SetEquipped ? SetColdBonus : 0 ); } }
public override int PoisonResistance{ get{ return BasePoisonResistance + GetProtOffset() + GetResourceAttrs().ShieldPoisonResist + PoisonBonus + (SetEquipped ? SetPoisonBonus : 0 ); } }
public override int EnergyResistance{ get{ return BaseEnergyResistance + GetProtOffset() + GetResourceAttrs().ShieldEnergyResist + EnergyBonus + (SetEquipped ? SetEnergyBonus : 0 ); } }
#endregion

and restart server
 
Top