Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
//BaleFire//
|
||||
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class HeroFlame : MetalShield
|
||||
{
|
||||
//public override int BasePhysicalResistance { get { return 15; } }
|
||||
//public override int BasePoisonResistance { get { return 15; } }
|
||||
//public override int BaseColdResistance { get { return 15; } }
|
||||
//public override int BaseEnergyResistance { get { return 15; } }
|
||||
public override int BaseFireResistance { get { return 15; } }
|
||||
public override int ArtifactRarity{ get{ return 13; } }
|
||||
public override int InitMinHits{ get{ return 300; } }
|
||||
public override int InitMaxHits{ get{ return 300; } }
|
||||
|
||||
[Constructable]
|
||||
public HeroFlame()
|
||||
{
|
||||
Name = "-Heros Fury-";
|
||||
ItemID = 2597;
|
||||
Hue = Utility.RandomList( 1355, 1356, 1357, 1358, 1359, 1360, 1161, 1260 );
|
||||
StrRequirement = 15;
|
||||
Attributes.BonusStr = 10;
|
||||
//Attributes.BonusInt = 10;
|
||||
//Attributes.BonusDex = 10;
|
||||
Attributes.SpellChanneling = 1;
|
||||
Attributes.AttackChance = 15;
|
||||
//Attributes.DefendChance = 10;
|
||||
Attributes.ReflectPhysical = 20;
|
||||
Attributes.Luck = 150;
|
||||
ArmorAttributes.SelfRepair = 3;
|
||||
SkillBonuses.SetValues(0, SkillName.Fencing, 10.0);
|
||||
//SkillBonuses.SetValues(0, SkillName.MaceFighting, 10.0);
|
||||
//SkillBonuses.SetValues(0, SkillName.Swordsmanship, 10.0);
|
||||
Light = LightType.Circle300;
|
||||
|
||||
}
|
||||
|
||||
public HeroFlame(Serial serial): base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( !IsChildOf( from.Backpack ) )
|
||||
{
|
||||
from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
|
||||
if ( this.ItemID == 2597 )
|
||||
{
|
||||
this.ItemID = 2594;
|
||||
}
|
||||
else if ( this.ItemID == 2594 )
|
||||
{
|
||||
this.ItemID = 2597;
|
||||
}
|
||||
else if (this.ItemID != 2597 || this.ItemID != 2594 )
|
||||
{
|
||||
from.SendMessage("There was a problem lighting your lantern. Please contact a staff member");
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendMessage( "Your lantern is broken. Please contact a staff member to repair it!" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
} // End Class
|
||||
} // End Namespace
|
||||
@@ -0,0 +1,88 @@
|
||||
//BaleFire//
|
||||
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class MageGuide : MetalShield
|
||||
{
|
||||
//public override int BasePhysicalResistance { get { return 15; } }
|
||||
//public override int BasePoisonResistance { get { return 15; } }
|
||||
//public override int BaseColdResistance { get { return 15; } }
|
||||
public override int BaseEnergyResistance { get { return 15; } }
|
||||
//public override int BaseFireResistance { get { return 15; } }
|
||||
//public override int ArtifactRarity{ get{ return 13; } }
|
||||
public override int InitMinHits{ get{ return 300; } }
|
||||
public override int InitMaxHits{ get{ return 300; } }
|
||||
|
||||
[Constructable]
|
||||
public MageGuide()
|
||||
{
|
||||
Name = "-Mages Guide-";
|
||||
ItemID = 2597;
|
||||
Hue = Utility.RandomList( 1158, 1159, 1163, 1168, 1170, 16 );
|
||||
StrRequirement = 15;
|
||||
//Attributes.BonusStr = 10;
|
||||
Attributes.BonusInt = 10;
|
||||
//Attributes.BonusDex = 10;
|
||||
//Attributes.SpellChanneling = 1;
|
||||
//Attributes.NightSight = 1;
|
||||
Attributes.AttackChance = 5;
|
||||
Attributes.DefendChance = 10;
|
||||
Attributes.ReflectPhysical = 15;
|
||||
Attributes.Luck = 150;
|
||||
ArmorAttributes.SelfRepair = 3;
|
||||
SkillBonuses.SetValues(0, SkillName.Magery, 10.0);
|
||||
Light = LightType.Circle300;
|
||||
|
||||
}
|
||||
|
||||
public MageGuide(Serial serial) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( !IsChildOf( from.Backpack ) )
|
||||
{
|
||||
from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
|
||||
if ( this.ItemID == 2597 )
|
||||
{
|
||||
this.ItemID = 2594;
|
||||
this.Attributes.NightSight = 1;
|
||||
}
|
||||
else if ( this.ItemID == 2594 )
|
||||
{
|
||||
this.ItemID = 2597;
|
||||
this.Attributes.NightSight = 1;
|
||||
}
|
||||
else if (this.ItemID != 2597 || this.ItemID != 2594 )
|
||||
{
|
||||
from.SendMessage("There was a problem lighting your lantern. Please contact a staff member");
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendMessage( "Your lantern is broken. Please contact a staff member to repair it!" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
} // End Class
|
||||
} // End Namespace
|
||||
@@ -0,0 +1,68 @@
|
||||
//BaleFire//
|
||||
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Gumps;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
|
||||
public class NPLightDeed : Item
|
||||
{
|
||||
|
||||
[Constructable]
|
||||
public NPLightDeed () : this( null )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public NPLightDeed ( string name ) : base ( 0x14F0 )
|
||||
{
|
||||
Name = "-New Players Light-";
|
||||
Hue = 1366;
|
||||
}
|
||||
|
||||
public NPLightDeed ( Serial serial ) : base ( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( !IsChildOf( from.Backpack ) )
|
||||
{
|
||||
from.SendLocalizedMessage(1042001);
|
||||
}
|
||||
else
|
||||
{
|
||||
/////////////////New Player Light Deed
|
||||
switch (Utility.Random(5))
|
||||
{
|
||||
case 0: from.AddToBackpack(new Tundra()); break;
|
||||
case 1: from.AddToBackpack(new NetherGuard()); break;
|
||||
case 2: from.AddToBackpack(new HeroFlame()); break;
|
||||
case 3: from.AddToBackpack(new ToxicLight()); break;
|
||||
case 4: from.AddToBackpack(new MageGuide()); break;
|
||||
|
||||
|
||||
}
|
||||
this.Delete();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
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,84 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class NetherGuard : MetalShield
|
||||
{
|
||||
public override int BasePhysicalResistance{ get{ return 15; } }
|
||||
public override int BasePoisonResistance { get { return 15; } }
|
||||
public override int BaseColdResistance { get { return 15; } }
|
||||
public override int BaseEnergyResistance { get { return 15; } }
|
||||
public override int BaseFireResistance{ get{ return 0; } }
|
||||
public override int ArtifactRarity{ get{ return 15; } }
|
||||
public override int InitMinHits{ get{ return 255; } }
|
||||
public override int InitMaxHits{ get{ return 255; } }
|
||||
|
||||
[Constructable]
|
||||
public NetherGuard()
|
||||
{
|
||||
Name = "-Nether Guard-";
|
||||
ItemID = 2597;
|
||||
Hue = Utility.RandomList( 97, 2051, 2020, 1107, 1758, 2106 );
|
||||
StrRequirement = 15;
|
||||
Attributes.BonusStr = 10;
|
||||
Attributes.BonusInt = 10;
|
||||
Attributes.BonusDex = 10;
|
||||
Attributes.SpellChanneling = 1;
|
||||
Attributes.NightSight = 1;
|
||||
Attributes.AttackChance = 5;
|
||||
Attributes.DefendChance = 15;
|
||||
Attributes.ReflectPhysical = 15;
|
||||
Attributes.Luck = 150;
|
||||
ArmorAttributes.SelfRepair = 3;
|
||||
SkillBonuses.SetValues(0, SkillName.Necromancy, 10.0);
|
||||
Light = LightType.Circle300;
|
||||
|
||||
}
|
||||
|
||||
public NetherGuard(Serial serial) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( !IsChildOf( from.Backpack ) )
|
||||
{
|
||||
from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
|
||||
if ( this.ItemID == 2597 )
|
||||
{
|
||||
this.ItemID = 2594;
|
||||
}
|
||||
else if ( this.ItemID == 2594 )
|
||||
{
|
||||
this.ItemID = 2597;
|
||||
}
|
||||
else if (this.ItemID != 2597 || this.ItemID != 2594 )
|
||||
{
|
||||
from.SendMessage("There was a problem lighting your lantern. Please contact a staff member");
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendMessage( "Your lantern is broken. Please contact a staff member to repair it!" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
} // End Class
|
||||
} // End Namespace
|
||||
@@ -0,0 +1,86 @@
|
||||
//BaleFire//
|
||||
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class ToxicLight : MetalShield
|
||||
{
|
||||
//public override int BasePhysicalResistance { get { return 15; } }
|
||||
public override int BasePoisonResistance { get { return 15; } }
|
||||
//public override int BaseColdResistance { get { return 15; } }
|
||||
//public override int BaseEnergyResistance { get { return 15; } }
|
||||
//public override int BaseFireResistance { get { return 15; } }
|
||||
public override int ArtifactRarity{ get{ return 13; } }
|
||||
public override int InitMinHits{ get{ return 300; } }
|
||||
public override int InitMaxHits{ get{ return 300; } }
|
||||
|
||||
[Constructable]
|
||||
public ToxicLight()
|
||||
{
|
||||
Name = "-Toxic Light-";
|
||||
ItemID = 2597;
|
||||
Hue = Utility.RandomList( 1267, 1268, 1269, 1270, 1271, 1271, 1372, 1167 );
|
||||
StrRequirement = 15;
|
||||
//Attributes.BonusStr = 10;
|
||||
Attributes.BonusInt = 10;
|
||||
//Attributes.BonusDex = 10;
|
||||
Attributes.SpellChanneling = 1;
|
||||
//Attributes.NightSight = 1;
|
||||
Attributes.AttackChance = 5;
|
||||
Attributes.DefendChance = 10;
|
||||
Attributes.ReflectPhysical = 30;
|
||||
Attributes.Luck = 150;
|
||||
ArmorAttributes.SelfRepair = 3;
|
||||
//SkillBonuses.SetValues(0, SkillName.blah, 20.0);
|
||||
Light = LightType.Circle300;
|
||||
|
||||
}
|
||||
|
||||
public ToxicLight(Serial serial) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( !IsChildOf( from.Backpack ) )
|
||||
{
|
||||
from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
|
||||
if ( this.ItemID == 2597 )
|
||||
{
|
||||
this.ItemID = 2594;
|
||||
}
|
||||
else if ( this.ItemID == 2594 )
|
||||
{
|
||||
this.ItemID = 2597;
|
||||
}
|
||||
else if (this.ItemID != 2597 || this.ItemID != 2594 )
|
||||
{
|
||||
from.SendMessage("There was a problem lighting your lantern. Please contact a staff member");
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendMessage( "Your lantern is broken. Please contact a staff member to repair it!" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
} // End Class
|
||||
} // End Namespace
|
||||
@@ -0,0 +1,98 @@
|
||||
//BaleFire//
|
||||
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class Tundra : MetalShield
|
||||
{
|
||||
//public override int BasePhysicalResistance { get { return 15; } }
|
||||
//public override int BasePoisonResistance { get { return 15; } }
|
||||
public override int BaseColdResistance { get { return 15; } }
|
||||
//public override int BaseEnergyResistance { get { return 15; } }
|
||||
//public override int BaseFireResistance { get { return 15; } }
|
||||
public override int ArtifactRarity { get { return 13; } }
|
||||
public override int InitMinHits { get { return 300; } }
|
||||
public override int InitMaxHits { get { return 300; } }
|
||||
|
||||
[Constructable]
|
||||
public Tundra()
|
||||
{
|
||||
Name = "-Tundra-";
|
||||
ItemID = 2597;
|
||||
Hue = Utility.RandomList(1150, 1151, 1152, 1153, 1154, 2066);
|
||||
StrRequirement = 15;
|
||||
//Attributes.BonusStr = 10;
|
||||
//Attributes.BonusInt = 10;
|
||||
Attributes.BonusDex = 10;
|
||||
Attributes.SpellChanneling = 1;
|
||||
//Attributes.NightSight = 1;
|
||||
Attributes.AttackChance = 5;
|
||||
//Attributes.DefendChance = 10;
|
||||
Attributes.ReflectPhysical = 35;
|
||||
Attributes.Luck = 150;
|
||||
ArmorAttributes.SelfRepair = 3;
|
||||
//SkillBonuses.SetValues(0, SkillName.Chivalry, 10.0);
|
||||
Light = LightType.Circle300;
|
||||
|
||||
}
|
||||
|
||||
public Tundra(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
|
||||
if (!IsChildOf(from.Backpack))
|
||||
|
||||
switch (this.ItemID)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
this.ItemID = 2597;
|
||||
this.Name = "Tundra";
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
this.ItemID = 2597;
|
||||
this.Name = "HeroFlame";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
this.ItemID = 2597;
|
||||
this.Name = "ToxicLight";
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
this.ItemID = 2597;
|
||||
this.Name = "MageGuide";
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
this.ItemID = 2597;
|
||||
this.Name = "NetherGuard";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user