Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
@@ -0,0 +1,138 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a pony corpse" )]
|
||||
public class DartmoorPony : BaseCreature
|
||||
{
|
||||
public override bool IsScaredOfScaryThings{ get{ return false; } }
|
||||
public override bool IsScaryToPets{ get{ return true; } }
|
||||
|
||||
[Constructable]
|
||||
public DartmoorPony () : this( false, 1.5 )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public DartmoorPony ( bool summoned, double scalar ) : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.4, 0.8 )
|
||||
{
|
||||
Name = "a Dartmoor Pony";
|
||||
Body = 200;
|
||||
Hue = 2208;
|
||||
|
||||
|
||||
SetStr( (int)(251*scalar), (int)(350*scalar) );
|
||||
SetDex( (int)(76*scalar), (int)(100*scalar) );
|
||||
SetInt( (int)(101*scalar), (int)(150*scalar) );
|
||||
|
||||
SetHits( (int)(151*scalar), (int)(210*scalar) );
|
||||
|
||||
SetDamage( (int)(15*scalar), (int)(30*scalar) );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
|
||||
SetResistance( ResistanceType.Cold, (int)(20*scalar), (int)(40*scalar) );
|
||||
SetResistance( ResistanceType.Poison, (int)(20*scalar), (int)(35*scalar) );
|
||||
SetResistance( ResistanceType.Energy, (int)(40*scalar), (int)(50*scalar) );
|
||||
|
||||
SetSkill( SkillName.MagicResist, (190.1*scalar), (210.0*scalar) );
|
||||
SetSkill( SkillName.Tactics, (100.1*scalar), (100.0*scalar) );
|
||||
SetSkill( SkillName.Wrestling, (100.1*scalar), (150.0*scalar) );
|
||||
SetSkill( SkillName.Magery, (100.1*scalar), (150.0*scalar) );
|
||||
SetSkill( SkillName.EvalInt, (100.1*scalar), (150.0*scalar) );
|
||||
SetSkill( SkillName.Meditation, (100.1*scalar), (150.0*scalar) );
|
||||
|
||||
PackGold( 100, 250 );
|
||||
//if ( 0.2 > Utility.RandomDouble() )
|
||||
PackItem( new GraniteStone(1) );
|
||||
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 541;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
if ( !Controlled )
|
||||
return 541;
|
||||
|
||||
return base.GetIdleSound();
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
if ( !Controlled )
|
||||
return 542;
|
||||
|
||||
return base.GetDeathSound();
|
||||
}
|
||||
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
if ( Controlled )
|
||||
return 320;
|
||||
|
||||
return base.GetHurtSound();
|
||||
}
|
||||
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
|
||||
if ( 0.2 > Utility.RandomDouble() )
|
||||
defender.Combatant = null;
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
if ( Controlled || Summoned )
|
||||
{
|
||||
Mobile master = ( this.ControlMaster );
|
||||
|
||||
if ( master == null )
|
||||
master = this.SummonMaster;
|
||||
|
||||
if ( master != null && master.Player && master.Map == this.Map && master.InRange( Location, 20 ) )
|
||||
{
|
||||
if ( master.Mana >= amount )
|
||||
{
|
||||
master.Mana -= amount;
|
||||
}
|
||||
else
|
||||
{
|
||||
amount -= master.Mana;
|
||||
master.Mana = 0;
|
||||
master.Damage( amount );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
|
||||
public override bool BardImmune{ get{ return true; } }
|
||||
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
|
||||
|
||||
public DartmoorPony ( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
134
Scripts/Scripts-master/Quests/Endless Peril/Mobiles/Norivar.cs
Normal file
134
Scripts/Scripts-master/Quests/Endless Peril/Mobiles/Norivar.cs
Normal file
@@ -0,0 +1,134 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server.Items;
|
||||
using Server.Targeting;
|
||||
using Server.ContextMenus;
|
||||
using Server.Gumps;
|
||||
using Server.Misc;
|
||||
using Server.Network;
|
||||
using Server.Spells;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "Norivar's Corpse" )]
|
||||
public class Norivar : Mobile
|
||||
{
|
||||
public virtual bool IsInvulnerable{ get{ return true; } }
|
||||
[Constructable]
|
||||
public Norivar()
|
||||
{
|
||||
Name = "Norivar";
|
||||
Title = "the Smite Cleric";
|
||||
Body = 0x190;
|
||||
CantWalk = true;
|
||||
Hue = Utility.RandomSkinHue();
|
||||
AddItem( new Server.Items.Boots( GetBootsHue() ) );
|
||||
AddItem( new Server.Items.BoneCrusher() );
|
||||
AddItem( new Server.Items.RelicOfTheChurch() );
|
||||
AddItem( new Server.Items.HolyKnightsBreastplate() );
|
||||
AddItem( new Server.Items.Kilt() );
|
||||
AddItem( new Server.Items.BodySash() );
|
||||
int hairHue = 1153;
|
||||
|
||||
switch ( Utility.Random( 1 ) )
|
||||
{
|
||||
case 0: AddItem( new LongHair( hairHue ) ); break;
|
||||
}
|
||||
|
||||
Blessed = true;
|
||||
|
||||
}
|
||||
|
||||
public virtual int GetBootsHue()
|
||||
{
|
||||
return 1623;
|
||||
}
|
||||
|
||||
public Norivar( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list )
|
||||
{
|
||||
base.GetContextMenuEntries( from, list );
|
||||
list.Add( new NorivarEntry( from, this ) );
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
public class NorivarEntry : ContextMenuEntry
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private Mobile m_Giver;
|
||||
|
||||
public NorivarEntry( Mobile from, Mobile giver ) : base( 6146, 3 )
|
||||
{
|
||||
m_Mobile = from;
|
||||
m_Giver = giver;
|
||||
}
|
||||
|
||||
public override void OnClick()
|
||||
{
|
||||
|
||||
|
||||
if( !( m_Mobile is PlayerMobile ) )
|
||||
return;
|
||||
|
||||
PlayerMobile mobile = (PlayerMobile) m_Mobile;
|
||||
|
||||
{
|
||||
if ( ! mobile.HasGump( typeof( NorivarGump ) ) )
|
||||
{
|
||||
mobile.SendGump( new NorivarGump( mobile ));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool OnDragDrop( Mobile from, Item dropped )
|
||||
{
|
||||
Mobile m = from;
|
||||
PlayerMobile mobile = m as PlayerMobile;
|
||||
|
||||
if ( mobile != null)
|
||||
{
|
||||
if( dropped is GraniteStone )
|
||||
{
|
||||
if(dropped.Amount!=35)
|
||||
{
|
||||
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "That is not the amount I asked for!", mobile.NetState );
|
||||
return false;
|
||||
}
|
||||
|
||||
dropped.Delete();
|
||||
mobile.AddToBackpack( new RelicOfTheChurch() );
|
||||
mobile.SendGump( new NorivarFinishGump());
|
||||
|
||||
return true;
|
||||
}
|
||||
else if ( dropped is GraniteStone)
|
||||
{
|
||||
this.PrivateOverheadMessage( MessageType.Regular, 1153, 1054071, mobile.NetState );
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "Why on earth would I want to have that?", mobile.NetState );
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user