Iris2.de http://iris2.de/forum/ |
|
Howto add new Mounts to RunUO & Iris2 http://iris2.de/forum/viewtopic.php?f=16&t=1341 |
Page 1 of 1 |
Author: | SiENcE [ Sat Jan 24, 2009 8:35 pm ] |
Post subject: | Howto add new Mounts to RunUO & Iris2 |
Howto add new Mounts to RunUO & Iris2. 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(); } } } |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |