CODE |
using System; using Server; using Server.Items; using Server.Mobiles; namespace Server.Mobiles { [CorpseName( "an ice steed corpse" )] public class IceSteed : BaseMount { [Constructable] public IceSteed() : this( "an Ice Steed" ) { } [Constructable] public IceSteed( string name ) : base( name, 0x74, 0x3EA7, AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Hue = 1152; BaseSoundID = 0xA8; SetStr( 1396, 1485 ); SetDex( 125, 195 ); SetInt( 906, 1026 ); SetHits( 2500, 5500 ); SetDamage( 35, 65 ); SetDamageType( ResistanceType.Physical, 40 ); SetDamageType( ResistanceType.Fire, 40 ); SetDamageType( ResistanceType.Energy, 20 ); SetResistance( ResistanceType.Physical, 55, 65 ); SetResistance( ResistanceType.Fire, 30, 40 ); SetResistance( ResistanceType.Cold, 30, 40 ); SetResistance( ResistanceType.Poison,85.3, 100.0 ); SetResistance( ResistanceType.Energy, 20, 30 ); SetSkill( SkillName.EvalInt, 97.6, 100.0 ); SetSkill( SkillName.Magery, 97.6, 100.0 ); SetSkill( SkillName.MagicResist, 85.3, 100.0 ); SetSkill( SkillName.Tactics, 97.6, 100.0 ); SetSkill( SkillName.Wrestling, 80.5, 92.5 ); SetSkill( SkillName.Anatomy, 80.5, 92.5 ); SetSkill( SkillName.Meditation, 80.5, 92.5 ); Fame = 25000; Karma = -25000; VirtualArmor = 160; PackGem(); PackGem(); PackPotion(); PackGold( 8000, 14500); PackScroll( 2, 8 ); PackMagicItems( 3, 5, 0.95, 0.95 ); PackMagicItems( 4, 5, 0.80, 0.65 ); PackMagicItems( 4, 5, 0.80, 0.65 ); PackSlayer(); Tamable = false; ControlSlots = 2; MinTameSkill = 110.0; switch ( Utility.Random( 3 ) ) { case 0: { BodyValue = 116; ItemID = 16039; break; } case 1: { BodyValue = 178; ItemID = 16041; break; } case 2: { BodyValue = 179; ItemID = 16055; break; } } PackItem( new SulfurousAsh( Utility.RandomMinMax( 3, 5 ) ) ); } public override void GenerateLoot() { AddLoot( LootPack.UltraRich, 3 ); AddLoot( LootPack.FilthyRich, 3 ); AddLoot( LootPack.Rich ); AddLoot( LootPack.Average ); AddLoot( LootPack.LowScrolls ); AddLoot( LootPack.Potions ); if ( Utility.RandomDouble() <= 1.0) { PackItem( new SaddleArtifact() ); } } public override int GetAngerSound() { if ( !Controlled ) return 0x16A; return base.GetAngerSound(); } public override bool HasBreath{ get{ return true; } } // fire breath enabled public override int Meat{ get{ return 5; } } public override int Hides{ get{ return 10; } } public override HideType HideType{ get{ return HideType.Barbed; } } public override FoodType FavoriteFood{ get{ return FoodType.Meat; } } public override bool CanAngerOnTame { get { return true; } } public override bool AlwaysMurderer{ get{ return true; } } public override bool AutoDispel{ get{ return true; } } public override double AutoDispelChance{ get{ return 1.0; } } public override bool BardImmune{ get{ return !Core.SE; } } public override bool Unprovokable{ get{ return Core.SE; } } public override bool Uncalmable{ get{ return Core.SE; } } public override Poison PoisonImmune{ get{ return Poison.Deadly; } } public override bool ShowFameTitle{ get{ return false; } } public override bool ClickTitle{ get{ return false; } } public void Polymorph( Mobile m ) public IceSteed( 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(); if ( BaseSoundID == 0x16A ) BaseSoundID = 0xA8; } } } |
CODE |
public override void GenerateLoot() { AddLoot( LootPack.UltraRich, 3 ); AddLoot( LootPack.FilthyRich, 3 ); AddLoot( LootPack.Rich ); AddLoot( LootPack.Average ); AddLoot( LootPack.LowScrolls ); AddLoot( LootPack.Potions ); public override void GenerateLoot() { AddLoot( LootPack.UltraRich, 3 ); AddLoot( LootPack.FilthyRich, 3 ); AddLoot( LootPack.Rich ); AddLoot( LootPack.Average ); AddLoot( LootPack.LowScrolls ); AddLoot( LootPack.Potions ); [COLOR=red] if ( Utility.RandomDouble() <= 1.0) { PackItem( new SaddleArtifact() ); } [/COLOR] } } |
QUOTE (StarRyder @ April 08, 2008 02:08 am) | ||||
[COLOR=red]Hi all i modded this script it didnt have a rare drop and i boosted the monster, the problem it s rare drop is a "SaddleArtifact" here the script works ok excetp it dont drop one rare but 2 please a little adavice worked 6 hours on it can figure it out thx Arte And Group ![]()
so the prblem is here i cant figure it out
|
CODE |
public override void GenerateLoot() { AddLoot( LootPack.UltraRich, 3 ); AddLoot( LootPack.FilthyRich, 3 ); AddLoot( LootPack.Rich ); AddLoot( LootPack.Average ); AddLoot( LootPack.LowScrolls ); AddLoot( LootPack.Potions ); if ( Utility.RandomDouble() <= 1.0) { PackItem( new SaddleArtifact() ); } |
CODE |
public override void OnDeath( Container c ) { if ( Utility.RandomDouble() <= 1.0 ) //just did this to make it the same as what you had c.DropItem( new SaddleArtifact() ); base.OnDeath( c ); } |