#W# Initial Commit: Avatars Conquest
This commit is contained in:
commit
8eae46895e
7512 changed files with 416187 additions and 0 deletions
61
Scripts/Mobiles/Animals/Rodents/Bat.cs
Normal file
61
Scripts/Mobiles/Animals/Rodents/Bat.cs
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a bat corpse" )]
|
||||
public class Bat : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public Bat() : base( AIType.AI_Timid, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a bat";
|
||||
Body = 43;
|
||||
BaseSoundID = 0x270;
|
||||
|
||||
SetStr( 91, 110 );
|
||||
SetDex( 91, 115 );
|
||||
SetInt( 26, 50 );
|
||||
|
||||
SetHits( 55, 66 );
|
||||
|
||||
SetDamage( 7, 9 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 70.1, 95.0 );
|
||||
SetSkill( SkillName.Tactics, 55.1, 80.0 );
|
||||
SetSkill( SkillName.HandToHand, 30.1, 55.0 );
|
||||
|
||||
Fame = 1000;
|
||||
Karma = -1000;
|
||||
|
||||
VirtualArmor = 14;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Poor );
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x29B;
|
||||
}
|
||||
|
||||
public Bat( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
80
Scripts/Mobiles/Animals/Rodents/CaveBat.cs
Normal file
80
Scripts/Mobiles/Animals/Rodents/CaveBat.cs
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a bat corpse" )]
|
||||
public class CaveBat : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public CaveBat() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a cave bat";
|
||||
Body = 185;
|
||||
BaseSoundID = 0x270;
|
||||
AnimationMod = 7;
|
||||
|
||||
SetStr( 91, 110 );
|
||||
SetDex( 91, 115 );
|
||||
SetInt( 26, 50 );
|
||||
|
||||
SetHits( 55, 66 );
|
||||
|
||||
SetDamage( 7, 9 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 70.1, 95.0 );
|
||||
SetSkill( SkillName.Tactics, 55.1, 80.0 );
|
||||
SetSkill( SkillName.HandToHand, 30.1, 55.0 );
|
||||
|
||||
Fame = 1000;
|
||||
Karma = -1000;
|
||||
|
||||
VirtualArmor = 14;
|
||||
}
|
||||
|
||||
public void DrainBlood( Mobile m )
|
||||
{
|
||||
DoHarmful( m );
|
||||
new Blood().MoveToWorld( m.Location, m.Map );
|
||||
m.SendMessage( "The creature feeds on your blood!" );
|
||||
int toDrain = Utility.RandomMinMax( 2, 10 );
|
||||
m.PlaySound( 0x23F );
|
||||
Hits += toDrain;
|
||||
m.Damage( toDrain, this );
|
||||
}
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
DrainBlood( defender );
|
||||
}
|
||||
|
||||
public override void OnGotMeleeAttack( Mobile attacker )
|
||||
{
|
||||
base.OnGotMeleeAttack( attacker );
|
||||
DrainBlood( attacker );
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Poor );
|
||||
}
|
||||
|
||||
public CaveBat( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
62
Scripts/Mobiles/Animals/Rodents/GiantRat.cs
Normal file
62
Scripts/Mobiles/Animals/Rodents/GiantRat.cs
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a giant rat corpse" )]
|
||||
[TypeAlias( "Server.Mobiles.Giantrat" )]
|
||||
public class GiantRat : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public GiantRat() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a giant rat";
|
||||
Body = 215;
|
||||
BaseSoundID = 0x188;
|
||||
|
||||
SetStr( 32, 74 );
|
||||
SetDex( 46, 65 );
|
||||
SetInt( 16, 30 );
|
||||
|
||||
SetHits( 26, 39 );
|
||||
SetMana( 0 );
|
||||
|
||||
SetDamage( 4, 8 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 25.1, 30.0 );
|
||||
SetSkill( SkillName.Tactics, 29.3, 44.0 );
|
||||
SetSkill( SkillName.HandToHand, 29.3, 44.0 );
|
||||
|
||||
Fame = 300;
|
||||
Karma = -300;
|
||||
|
||||
VirtualArmor = 18;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Poor );
|
||||
}
|
||||
|
||||
public override int Meat{ get{ return 1; } }
|
||||
public override int Hides{ get{ return 6; } }
|
||||
|
||||
public GiantRat(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();
|
||||
}
|
||||
}
|
||||
}
|
||||
64
Scripts/Mobiles/Animals/Rodents/Rabbit.cs
Normal file
64
Scripts/Mobiles/Animals/Rodents/Rabbit.cs
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a hare corpse" )]
|
||||
public class Rabbit : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public Rabbit() : base( AIType.AI_Timid, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a rabbit";
|
||||
Body = 205;
|
||||
|
||||
if ( 0.5 >= Utility.RandomDouble() )
|
||||
Hue = Utility.RandomAnimalHue();
|
||||
|
||||
SetStr( 6, 10 );
|
||||
SetDex( 26, 38 );
|
||||
SetInt( 6, 14 );
|
||||
|
||||
SetHits( 4, 6 );
|
||||
SetMana( 0 );
|
||||
|
||||
SetDamage( 1 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 5.0 );
|
||||
SetSkill( SkillName.Tactics, 5.0 );
|
||||
SetSkill( SkillName.HandToHand, 5.0 );
|
||||
|
||||
Fame = 0;
|
||||
Karma = 0;
|
||||
|
||||
VirtualArmor = 6;
|
||||
}
|
||||
|
||||
public override int Meat{ get{ return 1; } }
|
||||
public override int Hides{ get{ return 1; } }
|
||||
|
||||
public override int GetAngerSound(){ return 0x0C9; }
|
||||
public override int GetIdleSound(){ return 0x0C9; }
|
||||
public override int GetAttackSound(){ return 0x0CA; }
|
||||
public override int GetHurtSound(){ return 0x0CA; }
|
||||
public override int GetDeathSound(){ return 0x0CB; }
|
||||
|
||||
public Rabbit(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();
|
||||
}
|
||||
}
|
||||
}
|
||||
59
Scripts/Mobiles/Animals/Rodents/Raccoon.cs
Normal file
59
Scripts/Mobiles/Animals/Rodents/Raccoon.cs
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a raccoon corpse" )]
|
||||
public class Raccoon : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public Raccoon() : base( AIType.AI_Timid, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a raccoon";
|
||||
Body = 227;
|
||||
|
||||
SetStr( 16, 20 );
|
||||
SetDex( 26, 38 );
|
||||
SetInt( 6, 14 );
|
||||
|
||||
SetHits( 6, 9 );
|
||||
SetMana( 0 );
|
||||
|
||||
SetDamage( Utility.RandomMinMax( 1, 3 ) );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 5.0 );
|
||||
SetSkill( SkillName.Tactics, 15.0 );
|
||||
SetSkill( SkillName.HandToHand, 15.0 );
|
||||
|
||||
Fame = 0;
|
||||
Karma = 0;
|
||||
|
||||
VirtualArmor = 9;
|
||||
}
|
||||
|
||||
public override int Meat{ get{ return 1; } }
|
||||
public override int Hides{ get{ return 1; } }
|
||||
|
||||
public override int GetAngerSound(){ return 0x0C9; }
|
||||
public override int GetIdleSound(){ return 0x0C9; }
|
||||
public override int GetAttackSound(){ return 0x0CA; }
|
||||
public override int GetHurtSound(){ return 0x0CA; }
|
||||
public override int GetDeathSound(){ return 0x0CB; }
|
||||
|
||||
public Raccoon(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();
|
||||
}
|
||||
}
|
||||
}
|
||||
60
Scripts/Mobiles/Animals/Rodents/Rat.cs
Normal file
60
Scripts/Mobiles/Animals/Rodents/Rat.cs
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a rat corpse" )]
|
||||
public class Rat : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public Rat() : base( AIType.AI_Timid, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a rat";
|
||||
Body = 238;
|
||||
BaseSoundID = 0xCC;
|
||||
|
||||
SetStr( 9 );
|
||||
SetDex( 35 );
|
||||
SetInt( 5 );
|
||||
|
||||
SetHits( 6 );
|
||||
SetMana( 0 );
|
||||
|
||||
SetDamage( 1, 2 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 4.0 );
|
||||
SetSkill( SkillName.Tactics, 4.0 );
|
||||
SetSkill( SkillName.HandToHand, 4.0 );
|
||||
|
||||
Fame = 150;
|
||||
Karma = -150;
|
||||
|
||||
VirtualArmor = 6;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Poor );
|
||||
}
|
||||
|
||||
public override int Meat{ get{ return 1; } }
|
||||
|
||||
public Rat(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();
|
||||
}
|
||||
}
|
||||
}
|
||||
59
Scripts/Mobiles/Animals/Rodents/Squirrel.cs
Normal file
59
Scripts/Mobiles/Animals/Rodents/Squirrel.cs
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a squirrel corpse" )]
|
||||
public class Squirrel : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public Squirrel() : base( AIType.AI_Timid, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a squirrel";
|
||||
Body = 229;
|
||||
|
||||
SetStr( 6, 10 );
|
||||
SetDex( 26, 38 );
|
||||
SetInt( 6, 14 );
|
||||
|
||||
SetHits( 4, 6 );
|
||||
SetMana( 0 );
|
||||
|
||||
SetDamage( 1 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 5.0 );
|
||||
SetSkill( SkillName.Tactics, 5.0 );
|
||||
SetSkill( SkillName.HandToHand, 5.0 );
|
||||
|
||||
Fame = 0;
|
||||
Karma = 0;
|
||||
|
||||
VirtualArmor = 6;
|
||||
}
|
||||
|
||||
public override int Meat{ get{ return 1; } }
|
||||
public override int Hides{ get{ return 1; } }
|
||||
|
||||
public override int GetAngerSound(){ return 0x0C9; }
|
||||
public override int GetIdleSound(){ return 0x0C9; }
|
||||
public override int GetAttackSound(){ return 0x0CA; }
|
||||
public override int GetHurtSound(){ return 0x0CA; }
|
||||
public override int GetDeathSound(){ return 0x0CB; }
|
||||
|
||||
public Squirrel(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();
|
||||
}
|
||||
}
|
||||
}
|
||||
79
Scripts/Mobiles/Animals/Rodents/VampireBat.cs
Normal file
79
Scripts/Mobiles/Animals/Rodents/VampireBat.cs
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a bat corpse" )]
|
||||
public class VampireBat : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public VampireBat() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a vampire bat";
|
||||
Body = 119;
|
||||
BaseSoundID = 0x270;
|
||||
|
||||
SetStr( 91, 110 );
|
||||
SetDex( 91, 115 );
|
||||
SetInt( 26, 50 );
|
||||
|
||||
SetHits( 55, 66 );
|
||||
|
||||
SetDamage( 7, 9 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 70.1, 95.0 );
|
||||
SetSkill( SkillName.Tactics, 55.1, 80.0 );
|
||||
SetSkill( SkillName.HandToHand, 30.1, 55.0 );
|
||||
|
||||
Fame = 1000;
|
||||
Karma = -1000;
|
||||
|
||||
VirtualArmor = 14;
|
||||
}
|
||||
|
||||
public void DrainBlood( Mobile m )
|
||||
{
|
||||
DoHarmful( m );
|
||||
new Blood().MoveToWorld( m.Location, m.Map );
|
||||
m.SendMessage( "The creature feeds on your blood!" );
|
||||
int toDrain = Utility.RandomMinMax( 2, 10 );
|
||||
m.PlaySound( 0x23F );
|
||||
Hits += toDrain;
|
||||
m.Damage( toDrain, this );
|
||||
}
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
DrainBlood( defender );
|
||||
}
|
||||
|
||||
public override void OnGotMeleeAttack( Mobile attacker )
|
||||
{
|
||||
base.OnGotMeleeAttack( attacker );
|
||||
DrainBlood( attacker );
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Poor );
|
||||
}
|
||||
|
||||
public VampireBat( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue