RunUo.Korean.Forum RunUo.Korean.Forum
RunUo(·±À¯¿À)¿¡ °üÇÑ Çѱ¹ Æ÷·³ »çÀÌÆ®
 

¸ó½ºÅÍ ¹Ùµù ½ºÅ³ °É¸®°Ô ¸¸µé°Ô ÇÏ´Â ¹æ¹ý.
Click here to go to the original topic

 
       RunUo.Korean.Forum -> Script Support
ÀÌÀü ±Û :: ´ÙÀ½ ±Û  
±Û ¾´ÀÌ ¸Þ¼¼Áö ³»¿ë
borntoshow



°¡ÀÔÀÏ: 2007³â 05¿ù 30ÀÏ
°Ô½Ã¹°: 8

±Û ÀÛ¼º½Ã°£ : 2007-05-31 ¸ñ 2:23 am    Á¦¸ñ: ¸ó½ºÅÍ ¹Ùµù ½ºÅ³ °É¸®°Ô ¸¸µé°Ô ÇÏ´Â ¹æ¹ý.  

ÄÚµå :  using Server;
using Server.Items;
using Server.Mobiles;
using Server.Targeting;
using System.Collections;

namespace Server.Mobiles
{
[CorpseName( "a Cu Sidhe corpse" )]
   public class CuSidhe : BaseMount
   {
      [Constructable]
      public CuSidhe() : this( "a Cu Sidhe" )
      {
      }
        [Constructable]
        public CuSidhe(string name)
            : base(name, 277, 0x3E91, AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4)
        {
            double chance = Utility.RandomDouble() * 23301;

            if (chance <= 1)
                Hue = 0x489;
            else if (chance < 10)
                Hue = Utility.RandomList(0x657, 0x515, 0x4B1, 0x481, 0x480, 0x455);
            else if (chance < 20)
                Hue = Utility.RandomList(0x97A, 0x978, 0x901, 0x8AC, 0x5A7, 0x527);

            SetStr(1201, 1225);
            SetDex(151, 170);
            SetInt(251, 282);

            SetDamage(21, 28);

            SetDamageType(ResistanceType.Physical, 0);
            SetDamageType(ResistanceType.Cold, 50);
            SetDamageType(ResistanceType.Energy, 50);

            SetResistance(ResistanceType.Physical, 55, 65);
            SetResistance(ResistanceType.Fire, 30, 45);
            SetResistance(ResistanceType.Cold, 70, 85);
            SetResistance(ResistanceType.Poison, 30, 50);
            SetResistance(ResistanceType.Energy, 70, 85);

            SetSkill(SkillName.Wrestling, 90.1, 96.8);
            SetSkill(SkillName.Tactics, 90.3, 99.3);
            SetSkill(SkillName.MagicResist, 75.3, 90.0);
            SetSkill(SkillName.Anatomy, 65.5, 69.4);
            SetSkill(SkillName.Healing, 72.2, 98.9);

            Tamable = true;
            ControlSlots = 4;
            MinTameSkill = 101.1;

            if (Utility.RandomDouble() < 0.2)
                PackItem(new TreasureMap(5, Map.Trammel));

            PackGold(500, 800);
        }

      public override void GenerateLoot()
      {
         AddLoot( LootPack.FilthyRich, 2 );
         AddLoot( LootPack.Average );
         AddLoot( LootPack.Gems, Utility.Random( 1, 5 ) );
      }

      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 int TreasureMapLevel{ get{ return 4; } }
      public override HideType HideType{ get{ return HideType.Barbed; } }
      public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
      public override bool BardImmune{ get{ return true; } }
      public override Poison PoisonImmune{ get{ return Poison.Regular; } }      
      public override Poison HitPoison{ get{ return Poison.Lethal; } }
      

      public override WeaponAbility GetWeaponAbility()
      {
         switch ( Utility.Random( 3 ) )
         {
            default:
            case 0: return WeaponAbility.Dismount;
            case 1: return WeaponAbility.BleedAttack;
            case 2: return WeaponAbility.CrushingBlow;
         }
      }

      public CuSidhe( 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;
      }
   }
}


ÀÌ Äڵ忡 ¹Ùµù ½ºÅ³ °É¸®°Ô ¸¸µå´Â ¹æ¹ýÀ» ¾î¶»°Ô ³Ö³ª¿ä?
¸Ç À§·Î °¡±â  
pailove



°¡ÀÔÀÏ: 2006³â 01¿ù 31ÀÏ
°Ô½Ã¹°: 3

±Û ÀÛ¼º½Ã°£ : 2007-06-04 ¿ù 5:28 pm    Á¦¸ñ: Èì  

public override bool BardImmune{ get{ return true; } }

¹Ùµå À̹ÃÀÌ Æ®·ç·Î ¼³Á¤µÇ¾îÀÖÀ¸´Ï

Àú°É false ·Î ¹Ù²Ù¸é µÇÁö ¾ÊÀ»±î¿ä?
¸Ç À§·Î °¡±â  
borntoshow



°¡ÀÔÀÏ: 2007³â 05¿ù 30ÀÏ
°Ô½Ã¹°: 8

±Û ÀÛ¼º½Ã°£ : 2007-06-11 ¿ù 12:26 am    Á¦¸ñ: ¾Æ;;  

¾Ñ ±×·¸±º¿ä. ´äº¯ °¨»çÇÕ´Ï´Ù.^^
¸Ç À§·Î °¡±â  
 
       RunUo.Korean.Forum -> Script Support
ÇöÀçÆäÀÌÁö : 1/1


Powered by phpBB Search Engine Indexer
Powered by phpBB © 2001, 2002 phpBB Group