#W# Initial Commit: Avatars Conquest
This commit is contained in:
commit
5df497787a
7510 changed files with 416048 additions and 0 deletions
60
Scripts/Items/Weapons/SpearsAndForks/BaseSpear.cs
Normal file
60
Scripts/Items/Weapons/SpearsAndForks/BaseSpear.cs
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public abstract class BaseSpear : BaseMeleeWeapon
|
||||
{
|
||||
public override int DefHitSound{ get{ return 0x23C; } }
|
||||
public override int DefMissSound{ get{ return 0x238; } }
|
||||
|
||||
public override SkillName DefSkill{ get{ return SkillName.Fencing; } }
|
||||
public override WeaponType DefType{ get{ return WeaponType.Piercing; } }
|
||||
public override WeaponAnimation DefAnimation{ get{ return WeaponAnimation.Pierce2H; } }
|
||||
|
||||
public BaseSpear( int itemID ) : base( itemID )
|
||||
{
|
||||
}
|
||||
|
||||
public BaseSpear( 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();
|
||||
}
|
||||
|
||||
public override void OnHit( Mobile attacker, Mobile defender, double damageBonus )
|
||||
{
|
||||
base.OnHit( attacker, defender, damageBonus );
|
||||
|
||||
if ( Layer == Layer.TwoHanded && (attacker.Skills[SkillName.Tactics].Value / 400.0) >= Utility.RandomDouble() )
|
||||
{
|
||||
defender.SendMessage( "You receive a paralyzing blow!" ); // Is this not localized?
|
||||
defender.Freeze( TimeSpan.FromSeconds( 2.0 ) );
|
||||
|
||||
attacker.SendMessage( "You deliver a paralyzing blow!" ); // Is this not localized?
|
||||
attacker.PlaySound( 0x11C );
|
||||
}
|
||||
|
||||
if ( Poison != null && PoisonCharges > 0 )
|
||||
{
|
||||
--PoisonCharges;
|
||||
|
||||
if ( Utility.RandomDouble() >= 0.5 ) // 50% chance to poison
|
||||
defender.ApplyPoison( attacker, Poison );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Scripts/Items/Weapons/SpearsAndForks/Pike.cs
Normal file
42
Scripts/Items/Weapons/SpearsAndForks/Pike.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x26BE, 0x26C8 )]
|
||||
public class Pike : BaseSpear
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 50; } }
|
||||
public override int UOMinDamage{ get{ return 14; } }
|
||||
public override int UOMaxDamage{ get{ return 16; } }
|
||||
public override int UOSpeed{ get{ return 37; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 110; } }
|
||||
|
||||
[Constructable]
|
||||
public Pike() : base( 0x26BE )
|
||||
{
|
||||
Weight = 8.0;
|
||||
}
|
||||
|
||||
public Pike( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
45
Scripts/Items/Weapons/SpearsAndForks/Pitchfork.cs
Normal file
45
Scripts/Items/Weapons/SpearsAndForks/Pitchfork.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0xE87, 0xE88 )]
|
||||
public class Pitchfork : BaseSpear
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 15; } }
|
||||
public override int UOMinDamage{ get{ return 4; } }
|
||||
public override int UOMaxDamage{ get{ return 16; } }
|
||||
public override int UOSpeed{ get{ return 45; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 60; } }
|
||||
|
||||
[Constructable]
|
||||
public Pitchfork() : base( 0xE87 )
|
||||
{
|
||||
Weight = 11.0;
|
||||
}
|
||||
|
||||
public Pitchfork( 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 ( Weight == 10.0 )
|
||||
Weight = 11.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Scripts/Items/Weapons/SpearsAndForks/Spear.cs
Normal file
42
Scripts/Items/Weapons/SpearsAndForks/Spear.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0xF62, 0xF63 )]
|
||||
public class Spear : BaseSpear
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 30; } }
|
||||
public override int UOMinDamage{ get{ return 2; } }
|
||||
public override int UOMaxDamage{ get{ return 36; } }
|
||||
public override int UOSpeed{ get{ return 46; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 80; } }
|
||||
|
||||
[Constructable]
|
||||
public Spear() : base( 0xF62 )
|
||||
{
|
||||
Weight = 7.0;
|
||||
}
|
||||
|
||||
public Spear( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
47
Scripts/Items/Weapons/SpearsAndForks/WarFork.cs
Normal file
47
Scripts/Items/Weapons/SpearsAndForks/WarFork.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x1405, 0x1404 )]
|
||||
public class WarFork : BaseSpear
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 35; } }
|
||||
public override int UOMinDamage{ get{ return 4; } }
|
||||
public override int UOMaxDamage{ get{ return 32; } }
|
||||
public override int UOSpeed{ get{ return 45; } }
|
||||
|
||||
public override int DefHitSound{ get{ return 0x236; } }
|
||||
public override int DefMissSound{ get{ return 0x238; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 110; } }
|
||||
|
||||
public override WeaponAnimation DefAnimation{ get{ return WeaponAnimation.Pierce1H; } }
|
||||
|
||||
[Constructable]
|
||||
public WarFork() : base( 0x1405 )
|
||||
{
|
||||
Weight = 9.0;
|
||||
}
|
||||
|
||||
public WarFork( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue