#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
70
Scripts/Engines/Quests/Haochi's Trials/Mobiles/CursedSoul.cs
Normal file
70
Scripts/Engines/Quests/Haochi's Trials/Mobiles/CursedSoul.cs
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Engines.Quests.Samurai
|
||||
{
|
||||
[CorpseName( "a cursed soul corpse" )]
|
||||
public class CursedSoul : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public CursedSoul() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a cursed soul";
|
||||
Body = 3;
|
||||
BaseSoundID = 471;
|
||||
|
||||
SetStr( 20, 40 );
|
||||
SetDex( 40, 60 );
|
||||
SetInt( 15, 25 );
|
||||
|
||||
SetHits( 10, 20 );
|
||||
|
||||
SetDamage( 3, 7 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 15, 20 );
|
||||
SetResistance( ResistanceType.Fire, 8, 12 );
|
||||
|
||||
SetSkill( SkillName.Wrestling, 35.0, 39.0 );
|
||||
SetSkill( SkillName.Tactics, 5.0, 15.0 );
|
||||
SetSkill( SkillName.MagicResist, 10.0 );
|
||||
|
||||
Fame = 200;
|
||||
Karma = -200;
|
||||
|
||||
switch ( Utility.Random( 10 ) )
|
||||
{
|
||||
case 0: PackItem( new LeftArm() ); break;
|
||||
case 1: PackItem( new RightArm() ); break;
|
||||
case 2: PackItem( new Torso() ); break;
|
||||
case 3: PackItem( new Bone() ); break;
|
||||
case 4: PackItem( new RibCage() ); break;
|
||||
case 5: PackItem( new RibCage() ); break;
|
||||
case 6: PackItem( new BonePile() ); break;
|
||||
case 7: PackItem( new BonePile() ); break;
|
||||
case 8: PackItem( new BonePile() ); break;
|
||||
case 9: PackItem( new BonePile() ); break;
|
||||
}
|
||||
}
|
||||
|
||||
public CursedSoul( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
80
Scripts/Engines/Quests/Haochi's Trials/Mobiles/DeadlyImp.cs
Normal file
80
Scripts/Engines/Quests/Haochi's Trials/Mobiles/DeadlyImp.cs
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests.Samurai
|
||||
{
|
||||
public class DeadlyImp : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public DeadlyImp() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a deadly imp";
|
||||
Body = 74;
|
||||
BaseSoundID = 422;
|
||||
Hue = 0x66A;
|
||||
|
||||
SetStr( 91, 115 );
|
||||
SetDex( 61, 80 );
|
||||
SetInt( 86, 105 );
|
||||
|
||||
SetHits( 1000 );
|
||||
|
||||
SetDamage( 50, 80 );
|
||||
|
||||
SetDamageType( ResistanceType.Fire, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 95, 98 );
|
||||
SetResistance( ResistanceType.Fire, 95, 98 );
|
||||
SetResistance( ResistanceType.Cold, 95, 98 );
|
||||
SetResistance( ResistanceType.Poison, 95, 98 );
|
||||
SetResistance( ResistanceType.Energy, 95, 98 );
|
||||
|
||||
SetSkill( SkillName.Magery, 120.0 );
|
||||
SetSkill( SkillName.Tactics, 120.0 );
|
||||
SetSkill( SkillName.Wrestling, 120.0 );
|
||||
|
||||
Fame = 2500;
|
||||
Karma = -2500;
|
||||
|
||||
CantWalk = true;
|
||||
}
|
||||
|
||||
public override void AggressiveAction( Mobile aggressor, bool criminal )
|
||||
{
|
||||
base.AggressiveAction( aggressor, criminal );
|
||||
|
||||
PlayerMobile player = aggressor as PlayerMobile;
|
||||
if ( player != null )
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
if ( qs is HaochisTrialsQuest )
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective( typeof( SecondTrialAttackObjective ) );
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
obj.Complete();
|
||||
qs.AddObjective( new SecondTrialReturnObjective( false ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public DeadlyImp( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests.Samurai
|
||||
{
|
||||
public class DiseasedCat : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public DiseasedCat() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a diseased cat";
|
||||
Body = 0xC9;
|
||||
Hue = Utility.RandomAnimalHue();
|
||||
BaseSoundID = 0x69;
|
||||
|
||||
SetStr( 9 );
|
||||
SetDex( 35 );
|
||||
SetInt( 5 );
|
||||
|
||||
SetHits( 6 );
|
||||
SetMana( 0 );
|
||||
|
||||
SetDamage( 1 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 5, 10 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 5.0 );
|
||||
SetSkill( SkillName.Tactics, 4.0 );
|
||||
SetSkill( SkillName.Wrestling, 5.0 );
|
||||
|
||||
VirtualArmor = 8;
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
|
||||
public DiseasedCat( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
|
||||
if( Name == "a deseased cat" )
|
||||
Name = "a diseased cat";
|
||||
}
|
||||
}
|
||||
}
|
||||
102
Scripts/Engines/Quests/Haochi's Trials/Mobiles/FierceDragon.cs
Normal file
102
Scripts/Engines/Quests/Haochi's Trials/Mobiles/FierceDragon.cs
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests.Samurai
|
||||
{
|
||||
public class FierceDragon : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public FierceDragon() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a fierce dragon";
|
||||
Body = 103;
|
||||
BaseSoundID = 362;
|
||||
|
||||
SetStr( 6000, 6020 );
|
||||
SetDex( 0 );
|
||||
SetInt( 850, 870 );
|
||||
|
||||
SetDamage( 50, 80 );
|
||||
|
||||
SetDamageType( ResistanceType.Fire, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 95, 98 );
|
||||
SetResistance( ResistanceType.Fire, 95, 98 );
|
||||
SetResistance( ResistanceType.Cold, 95, 98 );
|
||||
SetResistance( ResistanceType.Poison, 95, 98 );
|
||||
SetResistance( ResistanceType.Energy, 95, 98 );
|
||||
|
||||
SetSkill( SkillName.Tactics, 120.0 );
|
||||
SetSkill( SkillName.Wrestling, 120.0 );
|
||||
SetSkill( SkillName.Magery, 120.0 );
|
||||
|
||||
Fame = 15000;
|
||||
Karma = 15000;
|
||||
|
||||
CantWalk = true;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x2C4;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x2C0;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x2C1;
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x2C4;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x2C3;
|
||||
}
|
||||
|
||||
public override void AggressiveAction( Mobile aggressor, bool criminal )
|
||||
{
|
||||
base.AggressiveAction( aggressor, criminal );
|
||||
|
||||
PlayerMobile player = aggressor as PlayerMobile;
|
||||
if ( player != null )
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
if ( qs is HaochisTrialsQuest )
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective( typeof( SecondTrialAttackObjective ) );
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
obj.Complete();
|
||||
qs.AddObjective( new SecondTrialReturnObjective( true ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public FierceDragon( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
182
Scripts/Engines/Quests/Haochi's Trials/Mobiles/Haochi.cs
Normal file
182
Scripts/Engines/Quests/Haochi's Trials/Mobiles/Haochi.cs
Normal file
|
|
@ -0,0 +1,182 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Gumps;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Engines.Quests.Samurai
|
||||
{
|
||||
public class Haochi : BaseQuester
|
||||
{
|
||||
[Constructable]
|
||||
public Haochi() : base( "the Honorable Samurai Legend" )
|
||||
{
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats( 100, 100, 25 );
|
||||
|
||||
Hue = 0x8403;
|
||||
|
||||
Female = false;
|
||||
Body = 0x190;
|
||||
Name = "Daimyo Haochi";
|
||||
}
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
HairItemID = 0x204A;
|
||||
HairHue = 0x901;
|
||||
|
||||
AddItem( new SamuraiTabi() );
|
||||
AddItem( new JinBaori() );
|
||||
|
||||
AddItem( new PlateHaidate() );
|
||||
AddItem( new StandardPlateKabuto() );
|
||||
AddItem( new PlateMempo() );
|
||||
AddItem( new PlateDo() );
|
||||
AddItem( new PlateHiroSode() );
|
||||
}
|
||||
|
||||
public override int GetAutoTalkRange( PlayerMobile pm )
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
|
||||
public override int TalkNumber{ get { return -1; } }
|
||||
|
||||
public override void OnTalk( PlayerMobile player, bool contextMenu )
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
|
||||
if ( qs is HaochisTrialsQuest )
|
||||
{
|
||||
if ( HaochisTrialsQuest.HasLostHaochisKatana( player ) )
|
||||
{
|
||||
qs.AddConversation( new LostSwordConversation() );
|
||||
return;
|
||||
}
|
||||
|
||||
QuestObjective obj = qs.FindObjective( typeof( FindHaochiObjective ) );
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
obj.Complete();
|
||||
return;
|
||||
}
|
||||
|
||||
obj = qs.FindObjective( typeof( FirstTrialReturnObjective ) );
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
player.AddToBackpack( new LeatherDo() );
|
||||
obj.Complete();
|
||||
return;
|
||||
}
|
||||
|
||||
obj = qs.FindObjective( typeof( SecondTrialReturnObjective ) );
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
if ( ((SecondTrialReturnObjective)obj).Dragon )
|
||||
player.AddToBackpack( new LeatherSuneate() );
|
||||
|
||||
obj.Complete();
|
||||
return;
|
||||
}
|
||||
|
||||
obj = qs.FindObjective( typeof( ThirdTrialReturnObjective ) );
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
player.AddToBackpack( new LeatherHiroSode() );
|
||||
obj.Complete();
|
||||
return;
|
||||
}
|
||||
|
||||
obj = qs.FindObjective( typeof( FourthTrialReturnObjective ) );
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
if ( !((FourthTrialReturnObjective)obj).KilledCat )
|
||||
{
|
||||
Container cont = GetNewContainer();
|
||||
cont.DropItem( new LeatherHiroSode() );
|
||||
cont.DropItem( new JinBaori() );
|
||||
player.AddToBackpack( cont );
|
||||
}
|
||||
|
||||
obj.Complete();
|
||||
return;
|
||||
}
|
||||
|
||||
obj = qs.FindObjective( typeof( FifthTrialReturnObjective ) );
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
Container pack = player.Backpack;
|
||||
if ( pack != null )
|
||||
{
|
||||
Item katana = pack.FindItemByType( typeof( HaochisKatana ) );
|
||||
if ( katana != null )
|
||||
{
|
||||
katana.Delete();
|
||||
obj.Complete();
|
||||
|
||||
obj = qs.FindObjective( typeof( FifthTrialIntroObjective ) );
|
||||
if ( obj != null && ((FifthTrialIntroObjective)obj).StolenTreasure )
|
||||
qs.AddConversation( new SixthTrialIntroConversation( true ) );
|
||||
else
|
||||
qs.AddConversation( new SixthTrialIntroConversation( false ) );
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
obj = qs.FindObjective( typeof( SixthTrialReturnObjective ) );
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
obj.Complete();
|
||||
return;
|
||||
}
|
||||
|
||||
obj = qs.FindObjective( typeof( SeventhTrialReturnObjective ) );
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
BaseWeapon weapon = new Daisho();
|
||||
BaseRunicTool.ApplyAttributesTo( weapon, Utility.Random( 1,3 ), 10, 30 );
|
||||
player.AddToBackpack( weapon );
|
||||
|
||||
BaseArmor armor = new LeatherDo();
|
||||
BaseRunicTool.ApplyAttributesTo( armor, Utility.Random( 1,3 ), 10, 20 );
|
||||
player.AddToBackpack( armor );
|
||||
|
||||
obj.Complete();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Haochi( 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,85 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Gumps;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Engines.Quests.Samurai
|
||||
{
|
||||
public class HaochisGuardsman : BaseQuester
|
||||
{
|
||||
[Constructable]
|
||||
public HaochisGuardsman() : base( "the Guardsman of Daimyo Haochi" )
|
||||
{
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats( 100, 100, 25 );
|
||||
|
||||
Hue = Race.Human.RandomSkinHue();
|
||||
|
||||
Female = false;
|
||||
Body = 0x190;
|
||||
Name = NameList.RandomName( "male" );
|
||||
}
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
Utility.AssignRandomHair( this );
|
||||
|
||||
AddItem( new LeatherDo() );
|
||||
AddItem( new LeatherHiroSode() );
|
||||
AddItem( new SamuraiTabi( Utility.RandomNondyedHue() ) );
|
||||
|
||||
switch ( Utility.Random( 3 ) )
|
||||
{
|
||||
case 0: AddItem( new StuddedHaidate() ); break;
|
||||
case 1: AddItem( new PlateSuneate() ); break;
|
||||
default: AddItem( new LeatherSuneate() ); break;
|
||||
}
|
||||
|
||||
switch ( Utility.Random( 4 ) )
|
||||
{
|
||||
case 0: AddItem( new DecorativePlateKabuto() ); break;
|
||||
case 1: AddItem( new ChainHatsuburi() ); break;
|
||||
case 2: AddItem( new LightPlateJingasa() ); break;
|
||||
default: AddItem( new LeatherJingasa() ); break;
|
||||
}
|
||||
|
||||
Item weapon;
|
||||
switch ( Utility.Random( 3 ) )
|
||||
{
|
||||
case 0: weapon = new NoDachi(); break;
|
||||
case 1: weapon = new Lajatang(); break;
|
||||
default: weapon = new Wakizashi(); break;
|
||||
}
|
||||
weapon.Movable = false;
|
||||
AddItem( weapon );
|
||||
}
|
||||
|
||||
public override int TalkNumber{ get { return -1; } }
|
||||
|
||||
public override void OnTalk( PlayerMobile player, bool contextMenu )
|
||||
{
|
||||
}
|
||||
|
||||
public HaochisGuardsman( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests.Samurai
|
||||
{
|
||||
[CorpseName( "an injured wolf corpse" )]
|
||||
public class InjuredWolf : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public InjuredWolf() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 0xE1;
|
||||
Name = "an injured wolf";
|
||||
BaseSoundID = 0xE5;
|
||||
|
||||
Hue = Utility.RandomAnimalHue();
|
||||
|
||||
SetStr( 10, 20 );
|
||||
SetDex( 45, 65 );
|
||||
SetInt( 10, 15 );
|
||||
|
||||
SetHits( 1 );
|
||||
|
||||
SetDamage( 1, 3 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 15 );
|
||||
SetResistance( ResistanceType.Fire, 5, 10 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 10.0 );
|
||||
SetSkill( SkillName.Tactics, 0.0, 5.0 );
|
||||
SetSkill( SkillName.Wrestling, 20.0, 30.0 );
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0xE9;
|
||||
}
|
||||
|
||||
public InjuredWolf( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
96
Scripts/Engines/Quests/Haochi's Trials/Mobiles/Relnia.cs
Normal file
96
Scripts/Engines/Quests/Haochi's Trials/Mobiles/Relnia.cs
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Gumps;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Engines.Quests.Samurai
|
||||
{
|
||||
public class Relnia : BaseQuester
|
||||
{
|
||||
[Constructable]
|
||||
public Relnia() : base( "the Gypsy" )
|
||||
{
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats( 100, 100, 25 );
|
||||
|
||||
Hue = 0x83FF;
|
||||
|
||||
Female = true;
|
||||
Body = 0x191;
|
||||
Name = "Disheveled Relnia";
|
||||
}
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
HairItemID = 0x203C;
|
||||
HairHue = 0x654;
|
||||
|
||||
AddItem( new ThighBoots( 0x901 ) );
|
||||
AddItem( new FancyShirt( 0x5F3 ) );
|
||||
AddItem( new SkullCap( 0x6A7 ) );
|
||||
AddItem( new Skirt( 0x544 ) );
|
||||
}
|
||||
|
||||
public override int TalkNumber{ get { return -1; } }
|
||||
|
||||
public override void OnTalk( PlayerMobile player, bool contextMenu )
|
||||
{
|
||||
}
|
||||
|
||||
public override bool OnDragDrop( Mobile from, Item dropped )
|
||||
{
|
||||
PlayerMobile player = from as PlayerMobile;
|
||||
|
||||
if ( player != null )
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
|
||||
if ( qs is HaochisTrialsQuest )
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective( typeof( FourthTrialCatsObjective ) );
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
Gold gold = dropped as Gold;
|
||||
|
||||
if ( gold != null )
|
||||
{
|
||||
obj.Complete();
|
||||
qs.AddObjective( new FourthTrialReturnObjective( false ) );
|
||||
|
||||
SayTo( from, 1063241 ); // I thank thee. This gold will be a great help to me and mine!
|
||||
|
||||
gold.Consume(); // Intentional difference from OSI: don't take all the gold of poor newbies!
|
||||
return gold.Deleted;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return base.OnDragDrop( from, dropped );
|
||||
}
|
||||
|
||||
|
||||
public Relnia( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
62
Scripts/Engines/Quests/Haochi's Trials/Mobiles/YoungNinja.cs
Normal file
62
Scripts/Engines/Quests/Haochi's Trials/Mobiles/YoungNinja.cs
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Engines.Quests.Samurai
|
||||
{
|
||||
[CorpseName( "a young ninja's corpse" )]
|
||||
public class YoungNinja : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public YoungNinja() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
InitStats( 45, 30, 5 );
|
||||
SetHits( 20, 30 );
|
||||
|
||||
Hue = Utility.RandomSkinHue();
|
||||
Body = 0x190;
|
||||
Name = "a young ninja";
|
||||
|
||||
Utility.AssignRandomHair( this );
|
||||
Utility.AssignRandomFacialHair( this );
|
||||
|
||||
AddItem( new NinjaTabi() );
|
||||
AddItem( new LeatherNinjaPants() );
|
||||
AddItem( new LeatherNinjaJacket() );
|
||||
AddItem( new LeatherNinjaBelt() );
|
||||
|
||||
AddItem( new Bandana( Utility.RandomNondyedHue() ) );
|
||||
|
||||
switch ( Utility.Random( 3 ) )
|
||||
{
|
||||
case 0: AddItem( new Tessen() ); break;
|
||||
case 1: AddItem( new Kama() ); break;
|
||||
default: AddItem( new Lajatang() ); break;
|
||||
}
|
||||
|
||||
SetSkill( SkillName.Swords, 50.0 );
|
||||
SetSkill( SkillName.Tactics, 50.0 );
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
|
||||
public YoungNinja( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
68
Scripts/Engines/Quests/Haochi's Trials/Mobiles/YoungRonin.cs
Normal file
68
Scripts/Engines/Quests/Haochi's Trials/Mobiles/YoungRonin.cs
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Engines.Quests.Samurai
|
||||
{
|
||||
[CorpseName( "a young ronin's corpse" )]
|
||||
public class YoungRonin : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public YoungRonin() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
InitStats( 45, 30, 5 );
|
||||
SetHits( 10, 20 );
|
||||
|
||||
Hue = Utility.RandomSkinHue();
|
||||
Body = 0x190;
|
||||
Name = "a young ronin";
|
||||
|
||||
Utility.AssignRandomHair( this );
|
||||
Utility.AssignRandomFacialHair( this );
|
||||
|
||||
AddItem( new LeatherDo() );
|
||||
AddItem( new LeatherHiroSode() );
|
||||
AddItem( new SamuraiTabi() );
|
||||
|
||||
switch ( Utility.Random( 3 ) )
|
||||
{
|
||||
case 0: AddItem( new StuddedHaidate() ); break;
|
||||
case 1: AddItem( new PlateSuneate() ); break;
|
||||
default: AddItem( new LeatherSuneate() ); break;
|
||||
}
|
||||
|
||||
AddItem( new Bandana( Utility.RandomNondyedHue() ) );
|
||||
|
||||
switch ( Utility.Random( 3 ) )
|
||||
{
|
||||
case 0: AddItem( new NoDachi() ); break;
|
||||
case 1: AddItem( new Lajatang() ); break;
|
||||
default: AddItem( new Wakizashi() ); break;
|
||||
}
|
||||
|
||||
SetSkill( SkillName.Swords, 50.0 );
|
||||
SetSkill( SkillName.Tactics, 50.0 );
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
|
||||
public YoungRonin( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue