Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class GargishStarterArmor : Bag
|
||||
{
|
||||
[Constructable]
|
||||
public GargishStarterArmor() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public GargishStarterArmor( int amount )
|
||||
{
|
||||
DropItem(new ApprenticeGargoyleWingArmor());
|
||||
DropItem(new ApprenticeMaleGargoyleChest());
|
||||
DropItem(new ApprenticeMaleGargoyleKilt());
|
||||
DropItem(new ApprenticeMaleGargoyleSleeves());
|
||||
DropItem(new ApprenticeMaleGargoyleLegs());
|
||||
|
||||
DropItem(new ApprenticeFemaleGargoyleChest());
|
||||
DropItem(new ApprenticeFemaleGargoyleKilt());
|
||||
DropItem(new ApprenticeFemaleGargoyleSleeves());
|
||||
DropItem(new ApprenticeFemaleGargoyleLegs());
|
||||
|
||||
DropItem(new ApprenticeGargoyleApron());
|
||||
DropItem(new ApprenticeGargoyleEarrings());
|
||||
DropItem(new ApprenticeGargoyleRing());
|
||||
DropItem(new ApprenticeGargoyleBracelet());
|
||||
DropItem(new ApprenticeGargoyleSword());
|
||||
DropItem(new ApprenticeGargoyleShield());
|
||||
}
|
||||
|
||||
public GargishStarterArmor( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Flipable]
|
||||
public class GargishWornExplorerArms : BaseArmor
|
||||
{
|
||||
public override int BasePhysicalResistance{ get{ return 15; } }
|
||||
public override int BaseFireResistance{ get{ return 15; } }
|
||||
public override int BaseColdResistance{ get{ return 15; } }
|
||||
public override int BasePoisonResistance{ get{ return 15; } }
|
||||
public override int BaseEnergyResistance{ get{ return 15; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 200; } }
|
||||
public override int InitMaxHits{ get{ return 240; } }
|
||||
|
||||
public override int AosStrReq{ get{ return 20; } }
|
||||
public override int OldStrReq{ get{ return 15; } }
|
||||
|
||||
public override int ArmorBase{ get{ return 13; } }
|
||||
|
||||
public override ArmorMaterialType MaterialType{ get{ return ArmorMaterialType.Leather; } }
|
||||
public override CraftResource DefaultResource{ get{ return CraftResource.RegularLeather; } }
|
||||
|
||||
public override ArmorMeditationAllowance DefMedAllowance{ get{ return ArmorMeditationAllowance.All; } }
|
||||
|
||||
public override Race RequiredRace{ get { return Race.Gargoyle; } }
|
||||
|
||||
public override bool CanBeWornByGargoyles{ get{ return true; } }
|
||||
|
||||
|
||||
[Constructable]
|
||||
public GargishWornExplorerArms() : base( 0x0302 )
|
||||
{
|
||||
Name = "Worn Explorer Arms";
|
||||
Hue = 1366;
|
||||
Attributes.LowerRegCost = 15;
|
||||
Attributes.LowerManaCost = 5;
|
||||
Attributes.BonusHits = 5;
|
||||
Attributes.Luck = 25;
|
||||
Attributes.ReflectPhysical = 5;
|
||||
Attributes.SpellDamage = 5;
|
||||
LootType = LootType.Cursed;
|
||||
Weight = 2.0;
|
||||
}
|
||||
|
||||
public GargishWornExplorerArms(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();
|
||||
|
||||
if ( Weight == 1.0 )
|
||||
Weight = 2.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Flipable]
|
||||
public class GargishWornExplorerChest : BaseArmor
|
||||
{
|
||||
public override int BasePhysicalResistance{ get{ return 15; } }
|
||||
public override int BaseFireResistance{ get{ return 15; } }
|
||||
public override int BaseColdResistance{ get{ return 15; } }
|
||||
public override int BasePoisonResistance{ get{ return 15; } }
|
||||
public override int BaseEnergyResistance{ get{ return 15; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 200; } }
|
||||
public override int InitMaxHits{ get{ return 240; } }
|
||||
|
||||
public override int AosStrReq{ get{ return 25; } }
|
||||
public override int OldStrReq{ get{ return 15; } }
|
||||
|
||||
public override int ArmorBase{ get{ return 13; } }
|
||||
|
||||
public override ArmorMaterialType MaterialType{ get{ return ArmorMaterialType.Leather; } }
|
||||
public override CraftResource DefaultResource{ get{ return CraftResource.RegularLeather; } }
|
||||
|
||||
public override ArmorMeditationAllowance DefMedAllowance{ get{ return ArmorMeditationAllowance.All; } }
|
||||
|
||||
public override bool CanBeWornByGargoyles{ get{ return true; } }
|
||||
|
||||
public override Race RequiredRace{ get { return Race.Gargoyle; } }
|
||||
|
||||
|
||||
[Constructable]
|
||||
public GargishWornExplorerChest() : base( 0x0304 )
|
||||
{
|
||||
Name = "Worn Explorer Chest";
|
||||
Hue = 1366;
|
||||
Attributes.LowerRegCost = 15;
|
||||
Attributes.LowerManaCost = 5;
|
||||
Attributes.Luck = 25;
|
||||
Attributes.SpellDamage = 5;
|
||||
Attributes.DefendChance = 5;
|
||||
LootType = LootType.Cursed;
|
||||
Weight = 6.0;
|
||||
}
|
||||
|
||||
public GargishWornExplorerChest(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();
|
||||
|
||||
if ( Weight == 1.0 )
|
||||
Weight = 6.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Flipable]
|
||||
public class GargishWornExplorerLegs : BaseArmor
|
||||
{
|
||||
public override int BasePhysicalResistance{ get{ return 15; } }
|
||||
public override int BaseFireResistance{ get{ return 15; } }
|
||||
public override int BaseColdResistance{ get{ return 15; } }
|
||||
public override int BasePoisonResistance{ get{ return 15; } }
|
||||
public override int BaseEnergyResistance{ get{ return 15; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 200; } }
|
||||
public override int InitMaxHits{ get{ return 240; } }
|
||||
|
||||
public override int AosStrReq{ get{ return 20; } }
|
||||
public override int OldStrReq{ get{ return 10; } }
|
||||
|
||||
public override int ArmorBase{ get{ return 13; } }
|
||||
|
||||
public override ArmorMaterialType MaterialType{ get{ return ArmorMaterialType.Leather; } }
|
||||
public override CraftResource DefaultResource{ get{ return CraftResource.RegularLeather; } }
|
||||
|
||||
public override ArmorMeditationAllowance DefMedAllowance{ get{ return ArmorMeditationAllowance.All; } }
|
||||
|
||||
public override bool CanBeWornByGargoyles{ get{ return true; } }
|
||||
|
||||
public override Race RequiredRace{ get { return Race.Gargoyle; } }
|
||||
|
||||
|
||||
[Constructable]
|
||||
public GargishWornExplorerLegs() : base( 0x0306 )
|
||||
{
|
||||
Name = "Worn Explorer Legs";
|
||||
Hue = 1366;
|
||||
Attributes.LowerRegCost = 15;
|
||||
Attributes.LowerManaCost = 5;
|
||||
Attributes.WeaponDamage = 5;
|
||||
Attributes.Luck = 25;
|
||||
Attributes.SpellDamage = 5;
|
||||
Attributes.RegenMana = 3;
|
||||
LootType = LootType.Cursed;
|
||||
Weight = 4.0;
|
||||
}
|
||||
|
||||
public GargishWornExplorerLegs(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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Flipable]
|
||||
public class GargishWornExplorerKilt : BaseArmor
|
||||
{
|
||||
public override int BasePhysicalResistance{ get{ return 2; } }
|
||||
public override int BaseFireResistance{ get{ return 4; } }
|
||||
public override int BaseColdResistance{ get{ return 3; } }
|
||||
public override int BasePoisonResistance{ get{ return 3; } }
|
||||
public override int BaseEnergyResistance{ get{ return 3; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 20; } }
|
||||
public override int InitMaxHits{ get{ return 40; } }
|
||||
|
||||
public override int AosStrReq{ get{ return 20; } }
|
||||
public override int OldStrReq{ get{ return 15; } }
|
||||
|
||||
public override int ArmorBase{ get{ return 13; } }
|
||||
|
||||
public override ArmorMaterialType MaterialType{ get{ return ArmorMaterialType.Leather; } }
|
||||
public override CraftResource DefaultResource{ get{ return CraftResource.RegularLeather; } }
|
||||
|
||||
public override ArmorMeditationAllowance DefMedAllowance{ get{ return ArmorMeditationAllowance.All; } }
|
||||
|
||||
public override bool CanBeWornByGargoyles{ get{ return true; } }
|
||||
|
||||
public override Race RequiredRace{ get { return Race.Gargoyle; } }
|
||||
|
||||
|
||||
[Constructable]
|
||||
public GargishWornExplorerKilt() : base( 0x0311 )
|
||||
{
|
||||
Name = "Worn Explorer Kilt";
|
||||
Hue = 1366;
|
||||
Attributes.LowerRegCost = 15;
|
||||
Attributes.LowerManaCost = 5;
|
||||
Attributes.AttackChance = 5;
|
||||
Attributes.Luck = 25;
|
||||
Attributes.SpellDamage = 5;
|
||||
LootType = LootType.Cursed;
|
||||
Weight = 2.0;
|
||||
}
|
||||
|
||||
public GargishWornExplorerKilt(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();
|
||||
|
||||
if ( Weight == 1.0 )
|
||||
Weight = 2.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x42DE, 0x42DF )]
|
||||
public class GargishWornExplorerTalons : BaseArmor
|
||||
{
|
||||
public override int BasePhysicalResistance{ get{ return 2; } }
|
||||
public override int BaseFireResistance{ get{ return 4; } }
|
||||
public override int BaseColdResistance{ get{ return 3; } }
|
||||
public override int BasePoisonResistance{ get{ return 3; } }
|
||||
public override int BaseEnergyResistance{ get{ return 3; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 30; } }
|
||||
public override int InitMaxHits{ get{ return 40; } }
|
||||
|
||||
public override int AosStrReq{ get{ return 20; } }
|
||||
public override int OldStrReq{ get{ return 10; } }
|
||||
|
||||
public override int ArmorBase{ get{ return 13; } }
|
||||
|
||||
public override ArmorMaterialType MaterialType{ get{ return ArmorMaterialType.Leather; } }
|
||||
public override CraftResource DefaultResource{ get{ return CraftResource.RegularLeather; } }
|
||||
|
||||
public override ArmorMeditationAllowance DefMedAllowance{ get{ return ArmorMeditationAllowance.All; } }
|
||||
|
||||
public override bool CanBeWornByGargoyles{ get{ return true; } }
|
||||
|
||||
public override Race RequiredRace{ get { return Race.Gargoyle; } }
|
||||
|
||||
[Constructable]
|
||||
public GargishWornExplorerTalons() : base( 0x42DE )
|
||||
{
|
||||
Name = "Worn Explorer Talons";
|
||||
Hue = 1366;
|
||||
Attributes.LowerRegCost = 15;
|
||||
Attributes.LowerManaCost = 5;
|
||||
Attributes.SpellDamage = 5;
|
||||
Attributes.Luck = 25;
|
||||
Attributes.BonusMana = 5;
|
||||
Attributes.RegenHits = 3;
|
||||
LootType = LootType.Cursed;
|
||||
Weight = 1.0;
|
||||
}
|
||||
|
||||
public GargishWornExplorerTalons(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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Flipable]
|
||||
public class GargishWornExplorerWingArmor : BaseArmor, IArcaneEquip
|
||||
{
|
||||
public override int BasePhysicalResistance{ get{ return 2; } }
|
||||
public override int BaseFireResistance{ get{ return 4; } }
|
||||
public override int BaseColdResistance{ get{ return 3; } }
|
||||
public override int BasePoisonResistance{ get{ return 3; } }
|
||||
public override int BaseEnergyResistance{ get{ return 3; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 20; } }
|
||||
public override int InitMaxHits{ get{ return 40; } }
|
||||
|
||||
public override int AosStrReq{ get{ return 20; } }
|
||||
public override int OldStrReq{ get{ return 10; } }
|
||||
|
||||
public override int ArmorBase{ get{ return 13; } }
|
||||
|
||||
public override ArmorMaterialType MaterialType{ get{ return ArmorMaterialType.Leather; } }
|
||||
public override CraftResource DefaultResource{ get{ return CraftResource.RegularLeather; } }
|
||||
|
||||
public override ArmorMeditationAllowance DefMedAllowance{ get{ return ArmorMeditationAllowance.All; } }
|
||||
|
||||
public override bool CanBeWornByGargoyles{ get{ return true; } }
|
||||
|
||||
public override Race RequiredRace{ get { return Race.Gargoyle; } }
|
||||
|
||||
|
||||
[Constructable]
|
||||
public GargishWornExplorerWingArmor() : base( 0x457E )
|
||||
{
|
||||
Name = "Worn Explorer Wing Armor";
|
||||
Hue = 1366;
|
||||
Attributes.LowerRegCost = 15;
|
||||
Attributes.LowerManaCost = 5;
|
||||
Attributes.Luck = 25;
|
||||
Attributes.NightSight = 1;
|
||||
Attributes.SpellDamage = 5;
|
||||
Attributes.RegenStam = 3;
|
||||
LootType = LootType.Cursed;
|
||||
Weight = 1.0;
|
||||
}
|
||||
|
||||
public GargishWornExplorerWingArmor(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 1 ); // version
|
||||
|
||||
if ( IsArcane )
|
||||
{
|
||||
writer.Write( true );
|
||||
writer.Write( (int) m_CurArcaneCharges );
|
||||
writer.Write( (int) m_MaxArcaneCharges );
|
||||
}
|
||||
else
|
||||
{
|
||||
writer.Write( false );
|
||||
}
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
switch ( version )
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
if ( reader.ReadBool() )
|
||||
{
|
||||
m_CurArcaneCharges = reader.ReadInt();
|
||||
m_MaxArcaneCharges = reader.ReadInt();
|
||||
|
||||
if ( Hue == 2118 )
|
||||
Hue = ArcaneGem.DefaultArcaneHue;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region Arcane Impl
|
||||
private int m_MaxArcaneCharges, m_CurArcaneCharges;
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int MaxArcaneCharges
|
||||
{
|
||||
get{ return m_MaxArcaneCharges; }
|
||||
set{ m_MaxArcaneCharges = value; InvalidateProperties(); Update(); }
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int CurArcaneCharges
|
||||
{
|
||||
get{ return m_CurArcaneCharges; }
|
||||
set{ m_CurArcaneCharges = value; InvalidateProperties(); Update(); }
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public bool IsArcane
|
||||
{
|
||||
get{ return ( m_MaxArcaneCharges > 0 && m_CurArcaneCharges >= 0 ); }
|
||||
}
|
||||
|
||||
public void Update()
|
||||
{
|
||||
if ( IsArcane )
|
||||
ItemID = 0x26B0;
|
||||
else if ( ItemID == 0x26B0 )
|
||||
ItemID = 0x13C6;
|
||||
|
||||
if ( IsArcane && CurArcaneCharges == 0 )
|
||||
Hue = 0;
|
||||
}
|
||||
|
||||
public override void GetProperties( ObjectPropertyList list )
|
||||
{
|
||||
base.GetProperties( list );
|
||||
|
||||
if ( IsArcane )
|
||||
list.Add( 1061837, "{0}\t{1}", m_CurArcaneCharges, m_MaxArcaneCharges ); // arcane charges: ~1_val~ / ~2_val~
|
||||
}
|
||||
|
||||
public override void OnSingleClick( Mobile from )
|
||||
{
|
||||
base.OnSingleClick( from );
|
||||
|
||||
if ( IsArcane )
|
||||
LabelTo( from, 1061837, String.Format( "{0}\t{1}", m_CurArcaneCharges, m_MaxArcaneCharges ) );
|
||||
}
|
||||
|
||||
public void Flip()
|
||||
{
|
||||
if ( ItemID == 0x13C6 )
|
||||
ItemID = 0x13CE;
|
||||
else if ( ItemID == 0x13CE )
|
||||
ItemID = 0x13C6;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user