partial psz patch

This commit is contained in:
mark 2009-06-21 05:43:18 +00:00
parent d03acbffaf
commit 869f68488d
23 changed files with 15471 additions and 19 deletions

View file

@ -0,0 +1,128 @@
using Server;
using System;
using Server.Items;
using Server.Gumps;
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 < 50 )
Hue = Utility.RandomList( 0x657, 0x515, 0x4B1, 0x481, 0x480, 0x455 );
else if ( chance < 500 )
Hue = Utility.RandomList( 0x97A, 0x978, 0x901, 0x8AC, 0x5A7, 0x527 );
SetStr( 1201, 1225 );
SetDex( 151, 170 );
SetInt( 251, 282 );
SetDamage( 4, 5 );
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 );
Fame = 5000; //Guessing here
Karma = 5000; //Guessing here
Tamable = true;
ControlSlots = 4;
MinTameSkill = 101.1;
if ( Utility.RandomDouble() < 0.2 )
PackItem( new TreasureMap( 5, Map.Trammel ) );
//if ( Utility.RandomDouble() < 0.1 )
//PackItem( new ParrotItem() );
PackGold( 500, 800 );
// TODO 0-2 spellweaving scroll
}
public override void GenerateLoot()
{
AddLoot( LootPack.AosFilthyRich, 5 );
}
public override void OnDoubleClick( Mobile from )
{
if ( from.Race != Race.Elf && from == ControlMaster && from.AccessLevel == AccessLevel.Player )
{
Item pads = from.FindItemOnLayer( Layer.Shoes );
if ( pads is PadsOfTheCuSidhe )
from.SendMessage( "Your boots allow you to mount the Cu Sidhe", null, 0x3B2 );
else
{
from.SendLocalizedMessage( 1072203 ); // Only Elves may use this.
return;
}
}
base.OnDoubleClick( from );
}
public override bool CanHeal{ get{ return true; } }
public override bool CanHealOwner{ get{ return true; } }
public override FoodType FavoriteFood{ get{ return FoodType.FruitsAndVegies; } }
public override bool CanAngerOnTame{ get { return true; } }
public override bool StatLossAfterTame{ get{ return true; } }
public override int Hides{ get{ return 10; } }
public override int Meat{ get{ return 3; } }
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.BleedAttack;
}
public CuSidhe( Serial serial ) : base( serial )
{
}
public override int GetIdleSound() { return 0x577; }
public override int GetAttackSound() { return 0x576; }
public override int GetAngerSound() { return 0x578; }
public override int GetHurtSound() { return 0x576; }
public override int GetDeathSound() { return 0x579; }
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();
}
}
}

View file

@ -0,0 +1,64 @@
using System;
using Server.Mobiles;
namespace Server.Mobiles
{
[CorpseName( "a grizzly bear corpse" )]
[TypeAlias( "Server.Mobiles.Grizzlybear" )]
public class RagingGrizzlyBear : BaseCreature
{
[Constructable]
public RagingGrizzlyBear() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a raging grizzly bear";
Body = 212;
BaseSoundID = 0xA3;
SetStr( 1251, 1550 );
SetDex( 801, 1050 );
SetInt( 151, 400 );
SetHits( 751, 930 );
SetMana( 0 );
SetDamage( 6, 7 );
SetDamageType( ResistanceType.Physical, 100 );
SetResistance( ResistanceType.Physical, 50, 70 );
SetResistance( ResistanceType.Cold, 30, 50 );
SetResistance( ResistanceType.Poison, 10, 20 );
SetResistance( ResistanceType.Energy, 10, 20 );
Fame = 5000; //Guessing here
Karma = -5000; //Guessing here
VirtualArmor = 24;
Tamable = false;
}
public override int Meat{ get{ return 2; } }
public override int Hides{ get{ return 16; } }
public override PackInstinct PackInstinct{ get{ return PackInstinct.Bear; } }
public RagingGrizzlyBear( 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();
}
}
}