#W# Initial Commit: Avatars Conquest
This commit is contained in:
commit
5df497787a
7510 changed files with 416048 additions and 0 deletions
56
Scripts/Items/Weapons/Swords/BaseSword.cs
Normal file
56
Scripts/Items/Weapons/Swords/BaseSword.cs
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Targets;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public abstract class BaseSword : BaseMeleeWeapon
|
||||
{
|
||||
public override SkillName DefSkill{ get{ return SkillName.Swords; } }
|
||||
public override WeaponType DefType{ get{ return WeaponType.Slashing; } }
|
||||
public override WeaponAnimation DefAnimation{ get{ return WeaponAnimation.Slash1H; } }
|
||||
|
||||
public BaseSword( int itemID ) : base( itemID )
|
||||
{
|
||||
}
|
||||
|
||||
public BaseSword( 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 OnDoubleClick( Mobile from )
|
||||
{
|
||||
from.SendLocalizedMessage( 1010018 ); // What do you want to use this item on?
|
||||
|
||||
from.Target = new BladedItemTarget( this );
|
||||
}
|
||||
|
||||
public override void OnHit( Mobile attacker, Mobile defender, double damageBonus )
|
||||
{
|
||||
base.OnHit( attacker, defender, damageBonus );
|
||||
|
||||
if ( Poison != null && PoisonCharges > 0 )
|
||||
{
|
||||
--PoisonCharges;
|
||||
|
||||
if ( Utility.RandomDouble() >= 0.5 ) // 50% chance to poison
|
||||
defender.ApplyPoison( attacker, Poison );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
45
Scripts/Items/Weapons/Swords/Broadsword.cs
Normal file
45
Scripts/Items/Weapons/Swords/Broadsword.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0xF5E, 0xF5F )]
|
||||
public class Broadsword : BaseSword
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 25; } }
|
||||
public override int UOMinDamage{ get{ return 5; } }
|
||||
public override int UOMaxDamage{ get{ return 29; } }
|
||||
public override int UOSpeed{ get{ return 45; } }
|
||||
|
||||
public override int DefHitSound{ get{ return 0x237; } }
|
||||
public override int DefMissSound{ get{ return 0x23A; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 100; } }
|
||||
|
||||
[Constructable]
|
||||
public Broadsword() : base( 0xF5E )
|
||||
{
|
||||
Weight = 6.0;
|
||||
}
|
||||
|
||||
public Broadsword( 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/Swords/Cutlass.cs
Normal file
45
Scripts/Items/Weapons/Swords/Cutlass.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x1441, 0x1440 )]
|
||||
public class Cutlass : BaseSword
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 10; } }
|
||||
public override int UOMinDamage{ get{ return 6; } }
|
||||
public override int UOMaxDamage{ get{ return 28; } }
|
||||
public override int UOSpeed{ get{ return 45; } }
|
||||
|
||||
public override int DefHitSound{ get{ return 0x23B; } }
|
||||
public override int DefMissSound{ get{ return 0x23A; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 70; } }
|
||||
|
||||
[Constructable]
|
||||
public Cutlass() : base( 0x1441 )
|
||||
{
|
||||
Weight = 8.0;
|
||||
}
|
||||
|
||||
public Cutlass( 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/Swords/Katana.cs
Normal file
45
Scripts/Items/Weapons/Swords/Katana.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x13FF, 0x13FE )]
|
||||
public class Katana : BaseSword
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 10; } }
|
||||
public override int UOMinDamage{ get{ return 5; } }
|
||||
public override int UOMaxDamage{ get{ return 26; } }
|
||||
public override int UOSpeed{ get{ return 58; } }
|
||||
|
||||
public override int DefHitSound{ get{ return 0x23B; } }
|
||||
public override int DefMissSound{ get{ return 0x23A; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 90; } }
|
||||
|
||||
[Constructable]
|
||||
public Katana() : base( 0x13FF )
|
||||
{
|
||||
Weight = 6.0;
|
||||
}
|
||||
|
||||
public Katana( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
52
Scripts/Items/Weapons/Swords/Kryss.cs
Normal file
52
Scripts/Items/Weapons/Swords/Kryss.cs
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x1401, 0x1400 )]
|
||||
public class Kryss : BaseSword
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 10; } }
|
||||
public override int UOMinDamage{ get{ return 3; } }
|
||||
public override int UOMaxDamage{ get{ return 28; } }
|
||||
public override int UOSpeed{ get{ return 53; } }
|
||||
|
||||
public override int DefHitSound{ get{ return 0x23C; } }
|
||||
public override int DefMissSound{ get{ return 0x238; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 90; } }
|
||||
|
||||
public override SkillName DefSkill{ get{ return SkillName.Fencing; } }
|
||||
public override WeaponType DefType{ get{ return WeaponType.Piercing; } }
|
||||
public override WeaponAnimation DefAnimation{ get{ return WeaponAnimation.Pierce1H; } }
|
||||
|
||||
[Constructable]
|
||||
public Kryss() : base( 0x1401 )
|
||||
{
|
||||
Weight = 2.0;
|
||||
}
|
||||
|
||||
public Kryss( 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 == 1.0 )
|
||||
Weight = 2.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
45
Scripts/Items/Weapons/Swords/Longsword.cs
Normal file
45
Scripts/Items/Weapons/Swords/Longsword.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0xF61, 0xF60 )]
|
||||
public class Longsword : BaseSword
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 25; } }
|
||||
public override int UOMinDamage{ get{ return 5; } }
|
||||
public override int UOMaxDamage{ get{ return 33; } }
|
||||
public override int UOSpeed{ get{ return 35; } }
|
||||
|
||||
public override int DefHitSound{ get{ return 0x237; } }
|
||||
public override int DefMissSound{ get{ return 0x23A; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 110; } }
|
||||
|
||||
[Constructable]
|
||||
public Longsword() : base( 0xF61 )
|
||||
{
|
||||
Weight = 7.0;
|
||||
}
|
||||
|
||||
public Longsword( 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/Swords/Rapier.cs
Normal file
47
Scripts/Items/Weapons/Swords/Rapier.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x1403, 0x1402 )]
|
||||
public class Rapier : BaseSword
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 15; } }
|
||||
public override int UOMinDamage{ get{ return 4; } }
|
||||
public override int UOMaxDamage{ get{ return 32; } }
|
||||
public override int UOSpeed{ get{ return 50; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 70; } }
|
||||
|
||||
public override SkillName DefSkill{ get{ return SkillName.Fencing; } }
|
||||
public override WeaponType DefType{ get{ return WeaponType.Piercing; } }
|
||||
public override WeaponAnimation DefAnimation{ get{ return WeaponAnimation.Pierce1H; } }
|
||||
|
||||
[Constructable]
|
||||
public Rapier() : base( 0x1403 )
|
||||
{
|
||||
Weight = 4.0;
|
||||
Name = "rapier";
|
||||
}
|
||||
|
||||
public Rapier( 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/Swords/Scimitar.cs
Normal file
45
Scripts/Items/Weapons/Swords/Scimitar.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x13B6, 0x13B5 )]
|
||||
public class Scimitar : BaseSword
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 10; } }
|
||||
public override int UOMinDamage{ get{ return 4; } }
|
||||
public override int UOMaxDamage{ get{ return 30; } }
|
||||
public override int UOSpeed{ get{ return 43; } }
|
||||
|
||||
public override int DefHitSound{ get{ return 0x23B; } }
|
||||
public override int DefMissSound{ get{ return 0x23A; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 90; } }
|
||||
|
||||
[Constructable]
|
||||
public Scimitar() : base( 0x13B6 )
|
||||
{
|
||||
Weight = 5.0;
|
||||
}
|
||||
|
||||
public Scimitar( 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/Swords/ThinLongsword.cs
Normal file
45
Scripts/Items/Weapons/Swords/ThinLongsword.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x13B8, 0x13B7 )]
|
||||
public class ThinLongsword : BaseSword
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 25; } }
|
||||
public override int UOMinDamage{ get{ return 5; } }
|
||||
public override int UOMaxDamage{ get{ return 33; } }
|
||||
public override int UOSpeed{ get{ return 35; } }
|
||||
|
||||
public override int DefHitSound{ get{ return 0x237; } }
|
||||
public override int DefMissSound{ get{ return 0x23A; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 110; } }
|
||||
|
||||
[Constructable]
|
||||
public ThinLongsword() : base( 0x13B8 )
|
||||
{
|
||||
Weight = 1.0;
|
||||
}
|
||||
|
||||
public ThinLongsword( 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/Swords/VikingSword.cs
Normal file
45
Scripts/Items/Weapons/Swords/VikingSword.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x13B9, 0x13Ba )]
|
||||
public class VikingSword : BaseSword
|
||||
{
|
||||
public override int UOStrengthReq{ get{ return 40; } }
|
||||
public override int UOMinDamage{ get{ return 6; } }
|
||||
public override int UOMaxDamage{ get{ return 34; } }
|
||||
public override int UOSpeed{ get{ return 30; } }
|
||||
|
||||
public override int DefHitSound{ get{ return 0x237; } }
|
||||
public override int DefMissSound{ get{ return 0x23A; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 31; } }
|
||||
public override int InitMaxHits{ get{ return 100; } }
|
||||
|
||||
[Constructable]
|
||||
public VikingSword() : base( 0x13B9 )
|
||||
{
|
||||
Weight = 6.0;
|
||||
}
|
||||
|
||||
public VikingSword( 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