Iris2.de

Iris2-Forum
It is currently Sun Nov 10, 2024 7:17 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sat Jan 24, 2009 8:35 pm 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
Howto add new Mounts to RunUO & Iris2.

Image

add to your Iris2 "data/config.lua"
Code:
gMountTranslate[0x3F08] = 0x313 -- ant lion


Code:
using System;
using System.Collections;
using Server.Items;
using Server.Targeting;

namespace Server.Mobiles
{
   [CorpseName( "an ant lion corpse" )]
   public class AntLion : BaseMount
   {
      [Constructable]
      public AntLion() : this( "an ridable ant lion" )
      {
      }

      [Constructable]
      public AntLion( string name ) : base( name, 0x313, 0x3F08, AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
      {
         Name = "an ridable ant lion";
         Body = 787;
         BaseSoundID = 1006;

         SetStr( 296, 320 );
         SetDex( 81, 105 );
         SetInt( 36, 60 );

         SetHits( 151, 162 );

         SetDamage( 7, 21 );

         SetDamageType( ResistanceType.Physical, 70 );
         SetDamageType( ResistanceType.Poison, 30 );

         SetResistance( ResistanceType.Physical, 45, 60 );
         SetResistance( ResistanceType.Fire, 25, 35 );
         SetResistance( ResistanceType.Cold, 30, 40 );
         SetResistance( ResistanceType.Poison, 40, 50 );
         SetResistance( ResistanceType.Energy, 30, 35 );

         SetSkill( SkillName.MagicResist, 70.0 );
         SetSkill( SkillName.Tactics, 90.0 );
         SetSkill( SkillName.Wrestling, 90.0 );

         Fame = 4500;
         Karma = -4500;

         VirtualArmor = 45;

         Tamable = true;
         ControlSlots = 3;
         MinTameSkill = 80.1;

         switch ( Utility.Random( 2 ) )
         {
            case 0: PackItem( new CopperOre( Utility.RandomMinMax( 1, 10 ) ) ); break;
            case 1: PackItem( new BronzeOre( Utility.RandomMinMax( 1, 10 ) ) ); break;
         }

      }

      public override void GenerateLoot()
      {
         AddLoot( LootPack.Average, 2 );
      }


      public AntLion( Serial serial ) : base( serial )
      {
      }

      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();
      }
   }
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group