Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -1,265 +1,185 @@
|
|||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class AcceptConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1049092;
|
||||
public class AcceptConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1049092;
|
||||
|
||||
public AcceptConversation()
|
||||
{
|
||||
}
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new FindEminoBeginObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new FindEminoBeginObjective() );
|
||||
}
|
||||
}
|
||||
public class FindZoelConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063175;
|
||||
|
||||
public class FindZoelConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063175;
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new FindZoelObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public FindZoelConversation()
|
||||
{
|
||||
}
|
||||
public class RadarConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063033;
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new FindZoelObjective() );
|
||||
}
|
||||
}
|
||||
public override bool Logged => false;
|
||||
}
|
||||
|
||||
public class RadarConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063033;
|
||||
public class EnterCaveConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063177;
|
||||
|
||||
public override bool Logged => false;
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new EnterCaveObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public RadarConversation()
|
||||
{
|
||||
}
|
||||
}
|
||||
public class SneakPastGuardiansConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063180;
|
||||
|
||||
public class EnterCaveConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063177;
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new SneakPastGuardiansObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public EnterCaveConversation()
|
||||
{
|
||||
}
|
||||
public class NeedToHideConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063181;
|
||||
}
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new EnterCaveObjective() );
|
||||
}
|
||||
}
|
||||
public class UseTeleporterConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063182;
|
||||
|
||||
public class SneakPastGuardiansConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063180;
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new UseTeleporterObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public SneakPastGuardiansConversation()
|
||||
{
|
||||
}
|
||||
public class GiveZoelNoteConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063184;
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new SneakPastGuardiansObjective() );
|
||||
}
|
||||
}
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new GiveZoelNoteObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public class NeedToHideConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063181;
|
||||
public class LostNoteConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063187;
|
||||
|
||||
public NeedToHideConversation()
|
||||
{
|
||||
}
|
||||
}
|
||||
public override bool Logged => false;
|
||||
}
|
||||
|
||||
public class UseTeleporterConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063182;
|
||||
public class GainInnInformationConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063189;
|
||||
|
||||
public UseTeleporterConversation()
|
||||
{
|
||||
}
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new GainInnInformationObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new UseTeleporterObjective() );
|
||||
}
|
||||
}
|
||||
public class ReturnFromInnConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063196;
|
||||
|
||||
public class GiveZoelNoteConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063184;
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new ReturnFromInnObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public GiveZoelNoteConversation()
|
||||
{
|
||||
}
|
||||
public class SearchForSwordConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063199;
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new GiveZoelNoteObjective() );
|
||||
}
|
||||
}
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new SearchForSwordObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public class LostNoteConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063187;
|
||||
public class HallwayWalkConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063201;
|
||||
|
||||
public override bool Logged => false;
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new HallwayWalkObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public LostNoteConversation()
|
||||
{
|
||||
}
|
||||
}
|
||||
public class ReturnSwordConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063203;
|
||||
|
||||
public class GainInnInformationConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063189;
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new ReturnSwordObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public GainInnInformationConversation()
|
||||
{
|
||||
}
|
||||
public class SlayHenchmenConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063205;
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new GainInnInformationObjective() );
|
||||
}
|
||||
}
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new SlayHenchmenObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public class ReturnFromInnConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063196;
|
||||
public class ContinueSlayHenchmenConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063208;
|
||||
|
||||
public ReturnFromInnConversation()
|
||||
{
|
||||
}
|
||||
public override bool Logged => false;
|
||||
}
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new ReturnFromInnObjective() );
|
||||
}
|
||||
}
|
||||
public class GiveEminoSwordConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063211;
|
||||
|
||||
public class SearchForSwordConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063199;
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new GiveEminoSwordObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public SearchForSwordConversation()
|
||||
{
|
||||
}
|
||||
public class LostSwordConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063212;
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new SearchForSwordObjective() );
|
||||
}
|
||||
}
|
||||
public override bool Logged => false;
|
||||
}
|
||||
|
||||
public class HallwayWalkConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063201;
|
||||
public class EarnGiftsConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063216;
|
||||
|
||||
public HallwayWalkConversation()
|
||||
{
|
||||
}
|
||||
public override void OnRead()
|
||||
{
|
||||
System.Complete();
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new HallwayWalkObjective() );
|
||||
}
|
||||
}
|
||||
public class EarnLessGiftsConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063217;
|
||||
|
||||
public class ReturnSwordConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063203;
|
||||
|
||||
public ReturnSwordConversation()
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new ReturnSwordObjective() );
|
||||
}
|
||||
}
|
||||
|
||||
public class SlayHenchmenConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063205;
|
||||
|
||||
public SlayHenchmenConversation()
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new SlayHenchmenObjective() );
|
||||
}
|
||||
}
|
||||
|
||||
public class ContinueSlayHenchmenConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063208;
|
||||
|
||||
public override bool Logged => false;
|
||||
|
||||
public ContinueSlayHenchmenConversation()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class GiveEminoSwordConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063211;
|
||||
|
||||
public GiveEminoSwordConversation()
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new GiveEminoSwordObjective() );
|
||||
}
|
||||
}
|
||||
|
||||
public class LostSwordConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063212;
|
||||
|
||||
public override bool Logged => false;
|
||||
|
||||
public LostSwordConversation()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EarnGiftsConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063216;
|
||||
|
||||
public EarnGiftsConversation()
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.Complete();
|
||||
}
|
||||
}
|
||||
|
||||
public class EarnLessGiftsConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1063217;
|
||||
|
||||
public EarnLessGiftsConversation()
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.Complete();
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void OnRead()
|
||||
{
|
||||
System.Complete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,132 +3,126 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class EminosUndertakingQuest : QuestSystem
|
||||
{
|
||||
private static Type[] m_TypeReferenceTable = {
|
||||
typeof( AcceptConversation ),
|
||||
typeof( FindZoelConversation ),
|
||||
typeof( RadarConversation ),
|
||||
typeof( EnterCaveConversation ),
|
||||
typeof( SneakPastGuardiansConversation ),
|
||||
typeof( NeedToHideConversation ),
|
||||
typeof( UseTeleporterConversation ),
|
||||
typeof( GiveZoelNoteConversation ),
|
||||
typeof( LostNoteConversation ),
|
||||
typeof( GainInnInformationConversation ),
|
||||
typeof( ReturnFromInnConversation ),
|
||||
typeof( SearchForSwordConversation ),
|
||||
typeof( HallwayWalkConversation ),
|
||||
typeof( ReturnSwordConversation ),
|
||||
typeof( SlayHenchmenConversation ),
|
||||
typeof( ContinueSlayHenchmenConversation ),
|
||||
typeof( GiveEminoSwordConversation ),
|
||||
typeof( LostSwordConversation ),
|
||||
typeof( EarnGiftsConversation ),
|
||||
typeof( EarnLessGiftsConversation ),
|
||||
typeof( FindEminoBeginObjective ),
|
||||
typeof( FindZoelObjective ),
|
||||
typeof( EnterCaveObjective ),
|
||||
typeof( SneakPastGuardiansObjective ),
|
||||
typeof( UseTeleporterObjective ),
|
||||
typeof( GiveZoelNoteObjective ),
|
||||
typeof( GainInnInformationObjective ),
|
||||
typeof( ReturnFromInnObjective ),
|
||||
typeof( SearchForSwordObjective ),
|
||||
typeof( HallwayWalkObjective ),
|
||||
typeof( ReturnSwordObjective ),
|
||||
typeof( SlayHenchmenObjective ),
|
||||
typeof( GiveEminoSwordObjective )
|
||||
};
|
||||
public class EminosUndertakingQuest : QuestSystem
|
||||
{
|
||||
private static Type[] m_TypeReferenceTable =
|
||||
{
|
||||
typeof(AcceptConversation),
|
||||
typeof(FindZoelConversation),
|
||||
typeof(RadarConversation),
|
||||
typeof(EnterCaveConversation),
|
||||
typeof(SneakPastGuardiansConversation),
|
||||
typeof(NeedToHideConversation),
|
||||
typeof(UseTeleporterConversation),
|
||||
typeof(GiveZoelNoteConversation),
|
||||
typeof(LostNoteConversation),
|
||||
typeof(GainInnInformationConversation),
|
||||
typeof(ReturnFromInnConversation),
|
||||
typeof(SearchForSwordConversation),
|
||||
typeof(HallwayWalkConversation),
|
||||
typeof(ReturnSwordConversation),
|
||||
typeof(SlayHenchmenConversation),
|
||||
typeof(ContinueSlayHenchmenConversation),
|
||||
typeof(GiveEminoSwordConversation),
|
||||
typeof(LostSwordConversation),
|
||||
typeof(EarnGiftsConversation),
|
||||
typeof(EarnLessGiftsConversation),
|
||||
typeof(FindEminoBeginObjective),
|
||||
typeof(FindZoelObjective),
|
||||
typeof(EnterCaveObjective),
|
||||
typeof(SneakPastGuardiansObjective),
|
||||
typeof(UseTeleporterObjective),
|
||||
typeof(GiveZoelNoteObjective),
|
||||
typeof(GainInnInformationObjective),
|
||||
typeof(ReturnFromInnObjective),
|
||||
typeof(SearchForSwordObjective),
|
||||
typeof(HallwayWalkObjective),
|
||||
typeof(ReturnSwordObjective),
|
||||
typeof(SlayHenchmenObjective),
|
||||
typeof(GiveEminoSwordObjective)
|
||||
};
|
||||
|
||||
public override Type[] TypeReferenceTable => m_TypeReferenceTable;
|
||||
private bool m_SentRadarConversion;
|
||||
|
||||
public override object Name => 1063173;
|
||||
public EminosUndertakingQuest(PlayerMobile from) : base(from)
|
||||
{
|
||||
}
|
||||
|
||||
public override object OfferMessage => 1063174;
|
||||
// Serialization
|
||||
public EminosUndertakingQuest()
|
||||
{
|
||||
}
|
||||
|
||||
public override TimeSpan RestartDelay => TimeSpan.MaxValue;
|
||||
public override bool IsTutorial => true;
|
||||
public override Type[] TypeReferenceTable => m_TypeReferenceTable;
|
||||
|
||||
public override int Picture => 0x15D5;
|
||||
public override object Name => 1063173;
|
||||
|
||||
public EminosUndertakingQuest( PlayerMobile from ) : base( from )
|
||||
{
|
||||
}
|
||||
public override object OfferMessage => 1063174;
|
||||
|
||||
// Serialization
|
||||
public EminosUndertakingQuest()
|
||||
{
|
||||
}
|
||||
public override TimeSpan RestartDelay => TimeSpan.MaxValue;
|
||||
public override bool IsTutorial => true;
|
||||
|
||||
public override void Accept()
|
||||
{
|
||||
base.Accept();
|
||||
public override int Picture => 0x15D5;
|
||||
|
||||
AddConversation( new AcceptConversation() );
|
||||
}
|
||||
public override void Accept()
|
||||
{
|
||||
base.Accept();
|
||||
|
||||
private bool m_SentRadarConversion;
|
||||
AddConversation(new AcceptConversation());
|
||||
}
|
||||
|
||||
public override void Slice()
|
||||
{
|
||||
if ( !m_SentRadarConversion && ( From.Map != Map.Malas || From.X < 407 || From.X > 431 || From.Y < 801 || From.Y > 830 ) )
|
||||
{
|
||||
m_SentRadarConversion = true;
|
||||
AddConversation( new RadarConversation() );
|
||||
}
|
||||
public override void Slice()
|
||||
{
|
||||
if (!m_SentRadarConversion &&
|
||||
(From.Map != Map.Malas || From.X < 407 || From.X > 431 || From.Y < 801 || From.Y > 830))
|
||||
{
|
||||
m_SentRadarConversion = true;
|
||||
AddConversation(new RadarConversation());
|
||||
}
|
||||
|
||||
base.Slice();
|
||||
}
|
||||
base.Slice();
|
||||
}
|
||||
|
||||
public override void ChildDeserialize( GenericReader reader )
|
||||
{
|
||||
int version = reader.ReadEncodedInt();
|
||||
public override void ChildDeserialize(GenericReader reader)
|
||||
{
|
||||
int version = reader.ReadEncodedInt();
|
||||
|
||||
m_SentRadarConversion = reader.ReadBool();
|
||||
}
|
||||
m_SentRadarConversion = reader.ReadBool();
|
||||
}
|
||||
|
||||
public override void ChildSerialize( GenericWriter writer )
|
||||
{
|
||||
writer.WriteEncodedInt( (int) 0 ); // version
|
||||
public override void ChildSerialize(GenericWriter writer)
|
||||
{
|
||||
writer.WriteEncodedInt(0); // version
|
||||
|
||||
writer.Write( (bool) m_SentRadarConversion );
|
||||
}
|
||||
writer.Write(m_SentRadarConversion);
|
||||
}
|
||||
|
||||
public static bool HasLostNoteForZoel( Mobile from )
|
||||
{
|
||||
if ( !(from is PlayerMobile pm) )
|
||||
return false;
|
||||
public static bool HasLostNoteForZoel(Mobile from)
|
||||
{
|
||||
if (!(from is PlayerMobile pm))
|
||||
return false;
|
||||
|
||||
QuestSystem qs = pm.Quest;
|
||||
QuestSystem qs = pm.Quest;
|
||||
|
||||
if ( qs is EminosUndertakingQuest )
|
||||
{
|
||||
if ( qs.IsObjectiveInProgress( typeof( GiveZoelNoteObjective ) ) )
|
||||
{
|
||||
return ( from.Backpack?.FindItemByType( typeof( NoteForZoel ) ) == null );
|
||||
}
|
||||
}
|
||||
if (qs is EminosUndertakingQuest)
|
||||
if (qs.IsObjectiveInProgress(typeof(GiveZoelNoteObjective)))
|
||||
return from.Backpack?.FindItemByType(typeof(NoteForZoel)) == null;
|
||||
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool HasLostEminosKatana( Mobile from )
|
||||
{
|
||||
if ( !(from is PlayerMobile pm) )
|
||||
return false;
|
||||
public static bool HasLostEminosKatana(Mobile from)
|
||||
{
|
||||
if (!(from is PlayerMobile pm))
|
||||
return false;
|
||||
|
||||
QuestSystem qs = pm.Quest;
|
||||
QuestSystem qs = pm.Quest;
|
||||
|
||||
if ( qs is EminosUndertakingQuest )
|
||||
{
|
||||
if ( qs.IsObjectiveInProgress( typeof( GiveEminoSwordObjective ) ) )
|
||||
{
|
||||
return ( from.Backpack?.FindItemByType( typeof( EminosKatana ) ) == null );
|
||||
}
|
||||
}
|
||||
if (qs is EminosUndertakingQuest)
|
||||
if (qs.IsObjectiveInProgress(typeof(GiveEminoSwordObjective)))
|
||||
return from.Backpack?.FindItemByType(typeof(EminosKatana)) == null;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,48 +2,48 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class BlueNinjaQuestTeleporter : DynamicTeleporter
|
||||
{
|
||||
public override int LabelNumber => 1026157; // teleporter
|
||||
public class BlueNinjaQuestTeleporter : DynamicTeleporter
|
||||
{
|
||||
[Constructible]
|
||||
public BlueNinjaQuestTeleporter() : base(0x51C, 0x2)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public BlueNinjaQuestTeleporter() : base( 0x51C, 0x2 )
|
||||
{
|
||||
}
|
||||
public BlueNinjaQuestTeleporter(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int NotWorkingMessage => 1063198; // You stand on the strange floor tile but nothing happens.
|
||||
public override int LabelNumber => 1026157; // teleporter
|
||||
|
||||
public override bool GetDestination( PlayerMobile player, ref Point3D loc, ref Map map )
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
public override int NotWorkingMessage => 1063198; // You stand on the strange floor tile but nothing happens.
|
||||
|
||||
if ( qs is EminosUndertakingQuest && qs.FindObjective( typeof( GainInnInformationObjective ) ) != null )
|
||||
{
|
||||
loc = new Point3D( 411, 1116, 0 );
|
||||
map = Map.Malas;
|
||||
public override bool GetDestination(PlayerMobile player, ref Point3D loc, ref Map map)
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
|
||||
return true;
|
||||
}
|
||||
if (qs is EminosUndertakingQuest && qs.FindObjective(typeof(GainInnInformationObjective)) != null)
|
||||
{
|
||||
loc = new Point3D(411, 1116, 0);
|
||||
map = Map.Malas;
|
||||
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public BlueNinjaQuestTeleporter( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,41 +2,41 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class EminosKatana : QuestItem
|
||||
{
|
||||
public override int LabelNumber => 1063214; // Daimyo Emino's Katana
|
||||
public class EminosKatana : QuestItem
|
||||
{
|
||||
[Constructible]
|
||||
public EminosKatana() : base(0x13FF)
|
||||
{
|
||||
Weight = 1.0;
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public EminosKatana() : base( 0x13FF )
|
||||
{
|
||||
Weight = 1.0;
|
||||
}
|
||||
public EminosKatana(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public EminosKatana( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override int LabelNumber => 1063214; // Daimyo Emino's Katana
|
||||
|
||||
public override bool CanDrop( PlayerMobile player )
|
||||
{
|
||||
return !(player.Quest is EminosUndertakingQuest);
|
||||
public override bool CanDrop(PlayerMobile player)
|
||||
{
|
||||
return !(player.Quest is EminosUndertakingQuest);
|
||||
|
||||
/*return !qs.IsObjectiveInProgress( typeof( ReturnSwordObjective ) )
|
||||
&& !qs.IsObjectiveInProgress( typeof( SlayHenchmenObjective ) )
|
||||
&& !qs.IsObjectiveInProgress( typeof( GiveEminoSwordObjective ) );*/
|
||||
}
|
||||
/*return !qs.IsObjectiveInProgress( typeof( ReturnSwordObjective ) )
|
||||
&& !qs.IsObjectiveInProgress( typeof( SlayHenchmenObjective ) )
|
||||
&& !qs.IsObjectiveInProgress( typeof( GiveEminoSwordObjective ) );*/
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
writer.WriteEncodedInt(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4,133 +4,136 @@ using Server.Network;
|
|||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class EminosKatanaChest : WoodenChest
|
||||
{
|
||||
[Constructible]
|
||||
public EminosKatanaChest()
|
||||
{
|
||||
Movable = false;
|
||||
ItemID = 0xE42;
|
||||
public class EminosKatanaChest : WoodenChest
|
||||
{
|
||||
[Constructible]
|
||||
public EminosKatanaChest()
|
||||
{
|
||||
Movable = false;
|
||||
ItemID = 0xE42;
|
||||
|
||||
GenerateTreasure();
|
||||
}
|
||||
GenerateTreasure();
|
||||
}
|
||||
|
||||
public EminosKatanaChest( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public EminosKatanaChest(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool IsDecoContainer => false;
|
||||
public override bool IsDecoContainer => false;
|
||||
|
||||
private void GenerateTreasure()
|
||||
{
|
||||
for ( int i = Items.Count - 1; i >= 0; i-- )
|
||||
Items[i].Delete();
|
||||
private void GenerateTreasure()
|
||||
{
|
||||
for (int i = Items.Count - 1; i >= 0; i--)
|
||||
Items[i].Delete();
|
||||
|
||||
for ( int i = 0; i < 75; i++ )
|
||||
{
|
||||
switch ( Utility.Random( 3 ) )
|
||||
{
|
||||
case 0: DropItem( new GoldBracelet() ); break;
|
||||
case 1: DropItem( new GoldRing() ); break;
|
||||
case 2: DropItem( Loot.RandomGem() ); break;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < 75; i++)
|
||||
switch (Utility.Random(3))
|
||||
{
|
||||
case 0:
|
||||
DropItem(new GoldBracelet());
|
||||
break;
|
||||
case 1:
|
||||
DropItem(new GoldRing());
|
||||
break;
|
||||
case 2:
|
||||
DropItem(Loot.RandomGem());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( from is PlayerMobile player && player.InRange( GetWorldLocation(), 2 ) )
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
if (from is PlayerMobile player && player.InRange(GetWorldLocation(), 2))
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
|
||||
if ( qs is EminosUndertakingQuest )
|
||||
{
|
||||
if ( EminosUndertakingQuest.HasLostEminosKatana( from ) )
|
||||
{
|
||||
Item katana = new EminosKatana();
|
||||
if (qs is EminosUndertakingQuest)
|
||||
{
|
||||
if (EminosUndertakingQuest.HasLostEminosKatana(from))
|
||||
{
|
||||
Item katana = new EminosKatana();
|
||||
|
||||
if ( !player.PlaceInBackpack( katana ) )
|
||||
{
|
||||
katana.Delete();
|
||||
player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective( typeof( HallwayWalkObjective ) );
|
||||
if (!player.PlaceInBackpack(katana))
|
||||
{
|
||||
katana.Delete();
|
||||
player.SendLocalizedMessage(
|
||||
1046260); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective(typeof(HallwayWalkObjective));
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
Item katana = new EminosKatana();
|
||||
if (obj != null && !obj.Completed)
|
||||
{
|
||||
Item katana = new EminosKatana();
|
||||
|
||||
if ( player.PlaceInBackpack( katana ) )
|
||||
{
|
||||
GenerateTreasure();
|
||||
obj.Complete();
|
||||
}
|
||||
else
|
||||
{
|
||||
katana.Delete();
|
||||
player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (player.PlaceInBackpack(katana))
|
||||
{
|
||||
GenerateTreasure();
|
||||
obj.Complete();
|
||||
}
|
||||
else
|
||||
{
|
||||
katana.Delete();
|
||||
player.SendLocalizedMessage(
|
||||
1046260); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
base.OnDoubleClick( from );
|
||||
}
|
||||
base.OnDoubleClick(from);
|
||||
}
|
||||
|
||||
public override bool CheckHold( Mobile m, Item item, bool message, bool checkItems, int plusItems, int plusWeight )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override bool CheckHold(Mobile m, Item item, bool message, bool checkItems, int plusItems, int plusWeight)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool CheckItemUse( Mobile from, Item item )
|
||||
{
|
||||
return item == this;
|
||||
}
|
||||
public override bool CheckItemUse(Mobile from, Item item)
|
||||
{
|
||||
return item == this;
|
||||
}
|
||||
|
||||
public override bool CheckLift( Mobile from, Item item, ref LRReason reject )
|
||||
{
|
||||
if ( from.AccessLevel >= AccessLevel.GameMaster )
|
||||
return true;
|
||||
public override bool CheckLift(Mobile from, Item item, ref LRReason reject)
|
||||
{
|
||||
if (from.AccessLevel >= AccessLevel.GameMaster)
|
||||
return true;
|
||||
|
||||
if ( from is PlayerMobile player && player.Quest is EminosUndertakingQuest )
|
||||
{
|
||||
if ( player.Quest.FindObjective( typeof( HallwayWalkObjective ) ) is HallwayWalkObjective obj )
|
||||
{
|
||||
if ( obj.StolenTreasure )
|
||||
from.SendLocalizedMessage( 1063247 ); // The guard is watching you carefully! It would be unwise to remove another item from here.
|
||||
else
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (from is PlayerMobile player && player.Quest is EminosUndertakingQuest)
|
||||
if (player.Quest.FindObjective(typeof(HallwayWalkObjective)) is HallwayWalkObjective obj)
|
||||
{
|
||||
if (obj.StolenTreasure)
|
||||
from.SendLocalizedMessage(
|
||||
1063247); // The guard is watching you carefully! It would be unwise to remove another item from here.
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void OnItemLifted( Mobile from, Item item )
|
||||
{
|
||||
if ( from is PlayerMobile player && player.Quest is EminosUndertakingQuest )
|
||||
{
|
||||
if ( player.Quest.FindObjective( typeof( HallwayWalkObjective ) ) is HallwayWalkObjective obj )
|
||||
obj.StolenTreasure = true;
|
||||
}
|
||||
}
|
||||
public override void OnItemLifted(Mobile from, Item item)
|
||||
{
|
||||
if (from is PlayerMobile player && player.Quest is EminosUndertakingQuest)
|
||||
if (player.Quest.FindObjective(typeof(HallwayWalkObjective)) is HallwayWalkObjective obj)
|
||||
obj.StolenTreasure = true;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
writer.WriteEncodedInt(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,48 +2,48 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class GreenNinjaQuestTeleporter : DynamicTeleporter
|
||||
{
|
||||
public override int LabelNumber => 1026157; // teleporter
|
||||
public class GreenNinjaQuestTeleporter : DynamicTeleporter
|
||||
{
|
||||
[Constructible]
|
||||
public GreenNinjaQuestTeleporter() : base(0x51C, 0x17E)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public GreenNinjaQuestTeleporter() : base( 0x51C, 0x17E )
|
||||
{
|
||||
}
|
||||
public GreenNinjaQuestTeleporter(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int NotWorkingMessage => 1063198; // You stand on the strange floor tile but nothing happens.
|
||||
public override int LabelNumber => 1026157; // teleporter
|
||||
|
||||
public override bool GetDestination( PlayerMobile player, ref Point3D loc, ref Map map )
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
public override int NotWorkingMessage => 1063198; // You stand on the strange floor tile but nothing happens.
|
||||
|
||||
if ( qs is EminosUndertakingQuest && qs.FindObjective( typeof( UseTeleporterObjective ) ) != null )
|
||||
{
|
||||
loc = new Point3D( 410, 1125, 0 );
|
||||
map = Map.Malas;
|
||||
public override bool GetDestination(PlayerMobile player, ref Point3D loc, ref Map map)
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
|
||||
return true;
|
||||
}
|
||||
if (qs is EminosUndertakingQuest && qs.FindObjective(typeof(UseTeleporterObjective)) != null)
|
||||
{
|
||||
loc = new Point3D(410, 1125, 0);
|
||||
map = Map.Malas;
|
||||
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public GreenNinjaQuestTeleporter( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,69 +2,65 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class GuardianBarrier : Item
|
||||
{
|
||||
[Constructible]
|
||||
public GuardianBarrier() : base( 0x3967 )
|
||||
{
|
||||
Movable = false;
|
||||
Visible = false;
|
||||
}
|
||||
public class GuardianBarrier : Item
|
||||
{
|
||||
[Constructible]
|
||||
public GuardianBarrier() : base(0x3967)
|
||||
{
|
||||
Movable = false;
|
||||
Visible = false;
|
||||
}
|
||||
|
||||
public override bool OnMoveOver( Mobile m )
|
||||
{
|
||||
if ( m.AccessLevel > AccessLevel.Player )
|
||||
return true;
|
||||
public GuardianBarrier(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
// If the mobile is to the north of the barrier, allow him to pass
|
||||
if ( Y >= m.Y )
|
||||
return true;
|
||||
public override bool OnMoveOver(Mobile m)
|
||||
{
|
||||
if (m.AccessLevel > AccessLevel.Player)
|
||||
return true;
|
||||
|
||||
if ( m is BaseCreature creature )
|
||||
{
|
||||
Mobile master = creature.GetMaster();
|
||||
// If the mobile is to the north of the barrier, allow him to pass
|
||||
if (Y >= m.Y)
|
||||
return true;
|
||||
|
||||
// Allow creatures to cross from the south to the north only if their master is near to the north
|
||||
return master != null && Y >= master.Y && master.InRange(this, 4);
|
||||
}
|
||||
if (m is BaseCreature creature)
|
||||
{
|
||||
Mobile master = creature.GetMaster();
|
||||
|
||||
if ( m is PlayerMobile pm )
|
||||
{
|
||||
if ( pm.Quest is EminosUndertakingQuest qs )
|
||||
{
|
||||
if ( qs.FindObjective( typeof( SneakPastGuardiansObjective ) ) is SneakPastGuardiansObjective obj )
|
||||
{
|
||||
if ( m.Hidden )
|
||||
return true; // Hidden ninjas can pass
|
||||
// Allow creatures to cross from the south to the north only if their master is near to the north
|
||||
return master != null && Y >= master.Y && master.InRange(this, 4);
|
||||
}
|
||||
|
||||
if ( !obj.TaughtHowToUseSkills )
|
||||
{
|
||||
obj.TaughtHowToUseSkills = true;
|
||||
qs.AddConversation( new NeedToHideConversation() );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (m is PlayerMobile pm)
|
||||
if (pm.Quest is EminosUndertakingQuest qs)
|
||||
if (qs.FindObjective(typeof(SneakPastGuardiansObjective)) is SneakPastGuardiansObjective obj)
|
||||
{
|
||||
if (m.Hidden)
|
||||
return true; // Hidden ninjas can pass
|
||||
|
||||
return false;
|
||||
}
|
||||
if (!obj.TaughtHowToUseSkills)
|
||||
{
|
||||
obj.TaughtHowToUseSkills = true;
|
||||
qs.AddConversation(new NeedToHideConversation());
|
||||
}
|
||||
}
|
||||
|
||||
public GuardianBarrier( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,40 +2,40 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class NoteForZoel : QuestItem
|
||||
{
|
||||
public override int LabelNumber => 1063186; // A Note for Zoel
|
||||
public class NoteForZoel : QuestItem
|
||||
{
|
||||
[Constructible]
|
||||
public NoteForZoel() : base(0x14EF)
|
||||
{
|
||||
Weight = 1.0;
|
||||
Hue = 0x6B9;
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public NoteForZoel() : base( 0x14EF )
|
||||
{
|
||||
Weight = 1.0;
|
||||
Hue = 0x6B9;
|
||||
}
|
||||
public NoteForZoel(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public NoteForZoel( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override int LabelNumber => 1063186; // A Note for Zoel
|
||||
|
||||
public override bool CanDrop( PlayerMobile player )
|
||||
{
|
||||
return !(player.Quest is EminosUndertakingQuest);
|
||||
public override bool CanDrop(PlayerMobile player)
|
||||
{
|
||||
return !(player.Quest is EminosUndertakingQuest);
|
||||
|
||||
//return !qs.IsObjectiveInProgress( typeof( GiveZoelNoteObjective ) );
|
||||
}
|
||||
//return !qs.IsObjectiveInProgress( typeof( GiveZoelNoteObjective ) );
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,56 +2,56 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class WhiteNinjaQuestTeleporter : DynamicTeleporter
|
||||
{
|
||||
public override int LabelNumber => 1026157; // teleporter
|
||||
public class WhiteNinjaQuestTeleporter : DynamicTeleporter
|
||||
{
|
||||
[Constructible]
|
||||
public WhiteNinjaQuestTeleporter() : base(0x51C, 0x47E)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public WhiteNinjaQuestTeleporter() : base( 0x51C, 0x47E )
|
||||
{
|
||||
}
|
||||
public WhiteNinjaQuestTeleporter(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int NotWorkingMessage => 1063198; // You stand on the strange floor tile but nothing happens.
|
||||
public override int LabelNumber => 1026157; // teleporter
|
||||
|
||||
public override bool GetDestination( PlayerMobile player, ref Point3D loc, ref Map map )
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
public override int NotWorkingMessage => 1063198; // You stand on the strange floor tile but nothing happens.
|
||||
|
||||
if ( qs is EminosUndertakingQuest )
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective( typeof( SearchForSwordObjective ) );
|
||||
public override bool GetDestination(PlayerMobile player, ref Point3D loc, ref Map map)
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
|
||||
if ( obj != null )
|
||||
{
|
||||
if ( !obj.Completed )
|
||||
obj.Complete();
|
||||
if (qs is EminosUndertakingQuest)
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective(typeof(SearchForSwordObjective));
|
||||
|
||||
loc = new Point3D( 411, 1085, 0 );
|
||||
map = Map.Malas;
|
||||
if (obj != null)
|
||||
{
|
||||
if (!obj.Completed)
|
||||
obj.Complete();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
loc = new Point3D(411, 1085, 0);
|
||||
map = Map.Malas;
|
||||
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public WhiteNinjaQuestTeleporter( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,225 +1,229 @@
|
|||
using Server.Mobiles;
|
||||
using Server.Gumps;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class Emino : BaseQuester
|
||||
{
|
||||
public override string DefaultName => "Daimyo Emino";
|
||||
public class Emino : BaseQuester
|
||||
{
|
||||
[Constructible]
|
||||
public Emino() : base("the Notorious")
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public Emino() : base( "the Notorious" )
|
||||
{
|
||||
}
|
||||
public Emino(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats( 100, 100, 25 );
|
||||
public override string DefaultName => "Daimyo Emino";
|
||||
|
||||
Hue = 0x83FE;
|
||||
public override int TalkNumber => -1;
|
||||
|
||||
Female = false;
|
||||
Body = 0x190;
|
||||
}
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
HairItemID = 0x203B;
|
||||
HairHue = 0x901;
|
||||
Hue = 0x83FE;
|
||||
|
||||
AddItem( new MaleKimono() );
|
||||
AddItem( new SamuraiTabi() );
|
||||
AddItem( new Bandana() );
|
||||
Female = false;
|
||||
Body = 0x190;
|
||||
}
|
||||
|
||||
AddItem( new PlateHaidate() );
|
||||
AddItem( new PlateDo() );
|
||||
AddItem( new PlateHiroSode() );
|
||||
public override void InitOutfit()
|
||||
{
|
||||
HairItemID = 0x203B;
|
||||
HairHue = 0x901;
|
||||
|
||||
Nunchaku nunchaku = new Nunchaku();
|
||||
nunchaku.Movable = false;
|
||||
AddItem( nunchaku );
|
||||
}
|
||||
AddItem(new MaleKimono());
|
||||
AddItem(new SamuraiTabi());
|
||||
AddItem(new Bandana());
|
||||
|
||||
public override int GetAutoTalkRange( PlayerMobile pm )
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
AddItem(new PlateHaidate());
|
||||
AddItem(new PlateDo());
|
||||
AddItem(new PlateHiroSode());
|
||||
|
||||
public override int TalkNumber => -1;
|
||||
Nunchaku nunchaku = new Nunchaku();
|
||||
nunchaku.Movable = false;
|
||||
AddItem(nunchaku);
|
||||
}
|
||||
|
||||
public override void OnTalk( PlayerMobile player, bool contextMenu )
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
public override int GetAutoTalkRange(PlayerMobile pm)
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
|
||||
if ( qs is EminosUndertakingQuest )
|
||||
{
|
||||
if ( EminosUndertakingQuest.HasLostNoteForZoel( player ) )
|
||||
{
|
||||
Item note = new NoteForZoel();
|
||||
public override void OnTalk(PlayerMobile player, bool contextMenu)
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
|
||||
if ( player.PlaceInBackpack( note ) )
|
||||
{
|
||||
qs.AddConversation( new LostNoteConversation() );
|
||||
}
|
||||
else
|
||||
{
|
||||
note.Delete();
|
||||
player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
|
||||
}
|
||||
}
|
||||
else if ( EminosUndertakingQuest.HasLostEminosKatana( player ) )
|
||||
{
|
||||
qs.AddConversation( new LostSwordConversation() );
|
||||
}
|
||||
else
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective( typeof( FindEminoBeginObjective ) );
|
||||
if (qs is EminosUndertakingQuest)
|
||||
{
|
||||
if (EminosUndertakingQuest.HasLostNoteForZoel(player))
|
||||
{
|
||||
Item note = new NoteForZoel();
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
obj.Complete();
|
||||
}
|
||||
else
|
||||
{
|
||||
obj = qs.FindObjective( typeof( UseTeleporterObjective ) );
|
||||
if (player.PlaceInBackpack(note))
|
||||
{
|
||||
qs.AddConversation(new LostNoteConversation());
|
||||
}
|
||||
else
|
||||
{
|
||||
note.Delete();
|
||||
player.SendLocalizedMessage(
|
||||
1046260); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
|
||||
}
|
||||
}
|
||||
else if (EminosUndertakingQuest.HasLostEminosKatana(player))
|
||||
{
|
||||
qs.AddConversation(new LostSwordConversation());
|
||||
}
|
||||
else
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective(typeof(FindEminoBeginObjective));
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
Item note = new NoteForZoel();
|
||||
if (obj != null && !obj.Completed)
|
||||
{
|
||||
obj.Complete();
|
||||
}
|
||||
else
|
||||
{
|
||||
obj = qs.FindObjective(typeof(UseTeleporterObjective));
|
||||
|
||||
if ( player.PlaceInBackpack( note ) )
|
||||
{
|
||||
obj.Complete();
|
||||
if (obj != null && !obj.Completed)
|
||||
{
|
||||
Item note = new NoteForZoel();
|
||||
|
||||
player.AddToBackpack( new LeatherNinjaPants() );
|
||||
player.AddToBackpack( new LeatherNinjaMitts() );
|
||||
}
|
||||
else
|
||||
{
|
||||
note.Delete();
|
||||
player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
obj = qs.FindObjective( typeof( ReturnFromInnObjective ) );
|
||||
if (player.PlaceInBackpack(note))
|
||||
{
|
||||
obj.Complete();
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
Container cont = GetNewContainer();
|
||||
player.AddToBackpack(new LeatherNinjaPants());
|
||||
player.AddToBackpack(new LeatherNinjaMitts());
|
||||
}
|
||||
else
|
||||
{
|
||||
note.Delete();
|
||||
player.SendLocalizedMessage(
|
||||
1046260); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
obj = qs.FindObjective(typeof(ReturnFromInnObjective));
|
||||
|
||||
for ( int i = 0; i < 10; i++ )
|
||||
cont.DropItem( new LesserHealPotion() );
|
||||
if (obj != null && !obj.Completed)
|
||||
{
|
||||
Container cont = GetNewContainer();
|
||||
|
||||
cont.DropItem( new LeatherNinjaHood() );
|
||||
cont.DropItem( new LeatherNinjaJacket() );
|
||||
for (int i = 0; i < 10; i++)
|
||||
cont.DropItem(new LesserHealPotion());
|
||||
|
||||
if ( player.PlaceInBackpack( cont ) )
|
||||
{
|
||||
obj.Complete();
|
||||
}
|
||||
else
|
||||
{
|
||||
cont.Delete();
|
||||
player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( qs.IsObjectiveInProgress( typeof( SlayHenchmenObjective ) ) )
|
||||
{
|
||||
qs.AddConversation( new ContinueSlayHenchmenConversation() );
|
||||
}
|
||||
else
|
||||
{
|
||||
obj = qs.FindObjective( typeof( GiveEminoSwordObjective ) );
|
||||
cont.DropItem(new LeatherNinjaHood());
|
||||
cont.DropItem(new LeatherNinjaJacket());
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
Item katana = null;
|
||||
if (player.PlaceInBackpack(cont))
|
||||
{
|
||||
obj.Complete();
|
||||
}
|
||||
else
|
||||
{
|
||||
cont.Delete();
|
||||
player.SendLocalizedMessage(
|
||||
1046260); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (qs.IsObjectiveInProgress(typeof(SlayHenchmenObjective)))
|
||||
{
|
||||
qs.AddConversation(new ContinueSlayHenchmenConversation());
|
||||
}
|
||||
else
|
||||
{
|
||||
obj = qs.FindObjective(typeof(GiveEminoSwordObjective));
|
||||
|
||||
if ( player.Backpack != null )
|
||||
katana = player.Backpack.FindItemByType( typeof( EminosKatana ) );
|
||||
if (obj != null && !obj.Completed)
|
||||
{
|
||||
Item katana = null;
|
||||
|
||||
if ( katana != null )
|
||||
{
|
||||
bool stolenTreasure = false;
|
||||
if (player.Backpack != null)
|
||||
katana = player.Backpack.FindItemByType(typeof(EminosKatana));
|
||||
|
||||
if ( qs.FindObjective( typeof( HallwayWalkObjective ) ) is HallwayWalkObjective walk )
|
||||
stolenTreasure = walk.StolenTreasure;
|
||||
if (katana != null)
|
||||
{
|
||||
bool stolenTreasure = false;
|
||||
|
||||
Kama kama = new Kama();
|
||||
if (qs.FindObjective(typeof(HallwayWalkObjective)) is HallwayWalkObjective walk)
|
||||
stolenTreasure = walk.StolenTreasure;
|
||||
|
||||
if ( stolenTreasure )
|
||||
BaseRunicTool.ApplyAttributesTo( kama, 1, 10, 20 );
|
||||
else
|
||||
BaseRunicTool.ApplyAttributesTo( kama, 1, 10, 30 );
|
||||
Kama kama = new Kama();
|
||||
|
||||
if ( player.PlaceInBackpack( kama ) )
|
||||
{
|
||||
katana.Delete();
|
||||
obj.Complete();
|
||||
if (stolenTreasure)
|
||||
BaseRunicTool.ApplyAttributesTo(kama, 1, 10, 20);
|
||||
else
|
||||
BaseRunicTool.ApplyAttributesTo(kama, 1, 10, 30);
|
||||
|
||||
if ( stolenTreasure )
|
||||
qs.AddConversation( new EarnLessGiftsConversation() );
|
||||
else
|
||||
qs.AddConversation( new EarnGiftsConversation() );
|
||||
}
|
||||
else
|
||||
{
|
||||
kama.Delete();
|
||||
player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (player.PlaceInBackpack(kama))
|
||||
{
|
||||
katana.Delete();
|
||||
obj.Complete();
|
||||
|
||||
public override void OnMovement( Mobile m, Point3D oldLocation )
|
||||
{
|
||||
base.OnMovement( m, oldLocation );
|
||||
if (stolenTreasure)
|
||||
qs.AddConversation(new EarnLessGiftsConversation());
|
||||
else
|
||||
qs.AddConversation(new EarnGiftsConversation());
|
||||
}
|
||||
else
|
||||
{
|
||||
kama.Delete();
|
||||
player.SendLocalizedMessage(
|
||||
1046260); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( !m.Frozen && !m.Alive && InRange( m, 4 ) && !InRange( oldLocation, 4 ) && InLOS( m ) )
|
||||
{
|
||||
if ( m.Map == null || !m.Map.CanFit( m.Location, 16, false, false ) )
|
||||
{
|
||||
m.SendLocalizedMessage( 502391 ); // Thou can not be resurrected there!
|
||||
}
|
||||
else
|
||||
{
|
||||
Direction = GetDirectionTo( m );
|
||||
public override void OnMovement(Mobile m, Point3D oldLocation)
|
||||
{
|
||||
base.OnMovement(m, oldLocation);
|
||||
|
||||
m.PlaySound( 0x214 );
|
||||
m.FixedEffect( 0x376A, 10, 16 );
|
||||
if (!m.Frozen && !m.Alive && InRange(m, 4) && !InRange(oldLocation, 4) && InLOS(m))
|
||||
{
|
||||
if (m.Map == null || !m.Map.CanFit(m.Location, 16, false, false))
|
||||
{
|
||||
m.SendLocalizedMessage(502391); // Thou can not be resurrected there!
|
||||
}
|
||||
else
|
||||
{
|
||||
Direction = GetDirectionTo(m);
|
||||
|
||||
m.CloseGump( typeof( ResurrectGump ) );
|
||||
m.SendGump( new ResurrectGump( m, ResurrectMessage.Healer ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
m.PlaySound(0x214);
|
||||
m.FixedEffect(0x376A, 10, 16);
|
||||
|
||||
public Emino( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
m.CloseGump(typeof(ResurrectGump));
|
||||
m.SendGump(new ResurrectGump(m, ResurrectMessage.Healer));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,54 +1,54 @@
|
|||
using Server.Mobiles;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class EnshroudedFigure : BaseQuester
|
||||
{
|
||||
public override string DefaultName => "an enshrouded figure";
|
||||
public class EnshroudedFigure : BaseQuester
|
||||
{
|
||||
[Constructible]
|
||||
public EnshroudedFigure()
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public EnshroudedFigure()
|
||||
{
|
||||
}
|
||||
public EnshroudedFigure(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats( 100, 100, 25 );
|
||||
public override string DefaultName => "an enshrouded figure";
|
||||
|
||||
Hue = 0x8401;
|
||||
Female = false;
|
||||
Body = 0x190;
|
||||
}
|
||||
public override int TalkNumber => -1;
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
AddItem( new DeathShroud() );
|
||||
AddItem( new ThighBoots() );
|
||||
}
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
public override int TalkNumber => -1;
|
||||
Hue = 0x8401;
|
||||
Female = false;
|
||||
Body = 0x190;
|
||||
}
|
||||
|
||||
public override void OnTalk( PlayerMobile player, bool contextMenu )
|
||||
{
|
||||
}
|
||||
public override void InitOutfit()
|
||||
{
|
||||
AddItem(new DeathShroud());
|
||||
AddItem(new ThighBoots());
|
||||
}
|
||||
|
||||
public EnshroudedFigure( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void OnTalk(PlayerMobile player, bool contextMenu)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
writer.WriteEncodedInt(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,54 +1,54 @@
|
|||
using Server.Mobiles;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class Henchman : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a henchman";
|
||||
public class Henchman : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Henchman() : base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
InitStats(45, 30, 5);
|
||||
|
||||
[Constructible]
|
||||
public Henchman() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
InitStats( 45, 30, 5 );
|
||||
Hue = Utility.RandomSkinHue();
|
||||
Body = 0x190;
|
||||
|
||||
Hue = Utility.RandomSkinHue();
|
||||
Body = 0x190;
|
||||
Utility.AssignRandomHair(this);
|
||||
Utility.AssignRandomFacialHair(this);
|
||||
|
||||
Utility.AssignRandomHair( this );
|
||||
Utility.AssignRandomFacialHair( this );
|
||||
AddItem(new LeatherNinjaJacket());
|
||||
AddItem(new LeatherNinjaPants());
|
||||
AddItem(new NinjaTabi());
|
||||
|
||||
AddItem( new LeatherNinjaJacket() );
|
||||
AddItem( new LeatherNinjaPants() );
|
||||
AddItem( new NinjaTabi() );
|
||||
if (Utility.RandomBool())
|
||||
AddItem(new Kama());
|
||||
else
|
||||
AddItem(new Tessen());
|
||||
|
||||
if ( Utility.RandomBool() )
|
||||
AddItem( new Kama() );
|
||||
else
|
||||
AddItem( new Tessen() );
|
||||
SetSkill(SkillName.Swords, 50.0);
|
||||
SetSkill(SkillName.Tactics, 50.0);
|
||||
}
|
||||
|
||||
SetSkill( SkillName.Swords, 50.0 );
|
||||
SetSkill( SkillName.Tactics, 50.0 );
|
||||
}
|
||||
public Henchman(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer => true;
|
||||
public override string DefaultName => "a henchman";
|
||||
|
||||
public Henchman( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override bool AlwaysMurderer => true;
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
writer.WriteEncodedInt(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,91 +1,92 @@
|
|||
using Server.Mobiles;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class HiddenFigure : BaseQuester
|
||||
{
|
||||
public static int[] Messages = {
|
||||
1063191, // They won<6F>t find me here.
|
||||
1063192 // Ah, a quiet hideout.
|
||||
};
|
||||
public class HiddenFigure : BaseQuester
|
||||
{
|
||||
public static int[] Messages =
|
||||
{
|
||||
1063191, // They won<6F>t find me here.
|
||||
1063192 // Ah, a quiet hideout.
|
||||
};
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Message { get; set; }
|
||||
[Constructible]
|
||||
public HiddenFigure()
|
||||
{
|
||||
Message = Utility.RandomList(Messages);
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public HiddenFigure()
|
||||
{
|
||||
Message = Utility.RandomList( Messages );
|
||||
}
|
||||
public HiddenFigure(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats( 100, 100, 25 );
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public int Message{ get; set; }
|
||||
|
||||
Hue = Utility.RandomSkinHue();
|
||||
public override int TalkNumber => -1;
|
||||
|
||||
Female = Utility.RandomBool();
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
if ( Female )
|
||||
{
|
||||
Body = 0x191;
|
||||
Name = NameList.RandomName( "female" );
|
||||
}
|
||||
else
|
||||
{
|
||||
Body = 0x190;
|
||||
Name = NameList.RandomName( "male" );
|
||||
}
|
||||
}
|
||||
Hue = Utility.RandomSkinHue();
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
Utility.AssignRandomHair( this );
|
||||
Female = Utility.RandomBool();
|
||||
|
||||
AddItem( new TattsukeHakama( GetRandomHue() ) );
|
||||
AddItem( new Kasa() );
|
||||
AddItem( new HakamaShita( GetRandomHue() ) );
|
||||
if (Female)
|
||||
{
|
||||
Body = 0x191;
|
||||
Name = NameList.RandomName("female");
|
||||
}
|
||||
else
|
||||
{
|
||||
Body = 0x190;
|
||||
Name = NameList.RandomName("male");
|
||||
}
|
||||
}
|
||||
|
||||
if ( Utility.RandomBool() )
|
||||
AddItem( new Shoes( GetShoeHue() ) );
|
||||
else
|
||||
AddItem( new Sandals( GetShoeHue() ) );
|
||||
}
|
||||
public override void InitOutfit()
|
||||
{
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
public override int GetAutoTalkRange( PlayerMobile pm )
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
AddItem(new TattsukeHakama(GetRandomHue()));
|
||||
AddItem(new Kasa());
|
||||
AddItem(new HakamaShita(GetRandomHue()));
|
||||
|
||||
public override int TalkNumber => -1;
|
||||
if (Utility.RandomBool())
|
||||
AddItem(new Shoes(GetShoeHue()));
|
||||
else
|
||||
AddItem(new Sandals(GetShoeHue()));
|
||||
}
|
||||
|
||||
public override void OnTalk( PlayerMobile player, bool contextMenu )
|
||||
{
|
||||
PrivateOverheadMessage( MessageType.Regular, 0x3B2, Message, player.NetState );
|
||||
}
|
||||
public override int GetAutoTalkRange(PlayerMobile pm)
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
|
||||
public HiddenFigure( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void OnTalk(PlayerMobile player, bool contextMenu)
|
||||
{
|
||||
PrivateOverheadMessage(MessageType.Regular, 0x3B2, Message, player.NetState);
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
writer.WriteEncodedInt(0); // version
|
||||
|
||||
writer.Write( (int) Message );
|
||||
}
|
||||
writer.Write(Message);
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
int version = reader.ReadEncodedInt();
|
||||
|
||||
Message = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Message = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,58 +1,58 @@
|
|||
using Server.Mobiles;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class JedahEntille : BaseQuester
|
||||
{
|
||||
public override string DefaultName => "Jedah Entille";
|
||||
public class JedahEntille : BaseQuester
|
||||
{
|
||||
[Constructible]
|
||||
public JedahEntille() : base("the Silent")
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public JedahEntille() : base( "the Silent" )
|
||||
{
|
||||
}
|
||||
public JedahEntille(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats( 100, 100, 25 );
|
||||
public override string DefaultName => "Jedah Entille";
|
||||
|
||||
Hue = 0x83FE;
|
||||
Female = true;
|
||||
Body = 0x191;
|
||||
}
|
||||
public override int TalkNumber => -1;
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
HairItemID = 0x203C;
|
||||
HairHue = 0x6BE;
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
AddItem( new PlainDress( 0x528 ) );
|
||||
AddItem( new ThighBoots() );
|
||||
AddItem( new FloppyHat() );
|
||||
}
|
||||
Hue = 0x83FE;
|
||||
Female = true;
|
||||
Body = 0x191;
|
||||
}
|
||||
|
||||
public override int TalkNumber => -1;
|
||||
public override void InitOutfit()
|
||||
{
|
||||
HairItemID = 0x203C;
|
||||
HairHue = 0x6BE;
|
||||
|
||||
public override void OnTalk( PlayerMobile player, bool contextMenu )
|
||||
{
|
||||
}
|
||||
AddItem(new PlainDress(0x528));
|
||||
AddItem(new ThighBoots());
|
||||
AddItem(new FloppyHat());
|
||||
}
|
||||
|
||||
public JedahEntille( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void OnTalk(PlayerMobile player, bool contextMenu)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
writer.WriteEncodedInt(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,134 +1,132 @@
|
|||
using Server.Mobiles;
|
||||
using Server.Items;
|
||||
using Server.Gumps;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class Zoel : BaseQuester
|
||||
{
|
||||
public override string DefaultName => "Elite Ninja Zoel";
|
||||
public class Zoel : BaseQuester
|
||||
{
|
||||
[Constructible]
|
||||
public Zoel() : base("the Masterful Tactician")
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public Zoel() : base( "the Masterful Tactician" )
|
||||
{
|
||||
}
|
||||
public Zoel(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats( 100, 100, 25 );
|
||||
public override string DefaultName => "Elite Ninja Zoel";
|
||||
|
||||
Hue = 0x83FE;
|
||||
public override int TalkNumber => -1;
|
||||
|
||||
Female = false;
|
||||
Body = 0x190;
|
||||
}
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
HairItemID = 0x203B;
|
||||
HairHue = 0x901;
|
||||
Hue = 0x83FE;
|
||||
|
||||
AddItem( new HakamaShita( 0x1 ) );
|
||||
AddItem( new NinjaTabi() );
|
||||
AddItem( new TattsukeHakama() );
|
||||
AddItem( new Bandana() );
|
||||
Female = false;
|
||||
Body = 0x190;
|
||||
}
|
||||
|
||||
AddItem( new LeatherNinjaBelt() );
|
||||
public override void InitOutfit()
|
||||
{
|
||||
HairItemID = 0x203B;
|
||||
HairHue = 0x901;
|
||||
|
||||
Tekagi tekagi = new Tekagi();
|
||||
tekagi.Movable = false;
|
||||
AddItem( tekagi );
|
||||
}
|
||||
AddItem(new HakamaShita(0x1));
|
||||
AddItem(new NinjaTabi());
|
||||
AddItem(new TattsukeHakama());
|
||||
AddItem(new Bandana());
|
||||
|
||||
public override int TalkNumber => -1;
|
||||
AddItem(new LeatherNinjaBelt());
|
||||
|
||||
public override int GetAutoTalkRange( PlayerMobile pm )
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
Tekagi tekagi = new Tekagi();
|
||||
tekagi.Movable = false;
|
||||
AddItem(tekagi);
|
||||
}
|
||||
|
||||
public override bool CanTalkTo( PlayerMobile to )
|
||||
{
|
||||
return to.Quest is EminosUndertakingQuest;
|
||||
}
|
||||
public override int GetAutoTalkRange(PlayerMobile pm)
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
|
||||
public override void OnTalk( PlayerMobile player, bool contextMenu )
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
public override bool CanTalkTo(PlayerMobile to)
|
||||
{
|
||||
return to.Quest is EminosUndertakingQuest;
|
||||
}
|
||||
|
||||
if ( qs is EminosUndertakingQuest )
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective( typeof( FindZoelObjective ) );
|
||||
public override void OnTalk(PlayerMobile player, bool contextMenu)
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
obj.Complete();
|
||||
}
|
||||
}
|
||||
if (qs is EminosUndertakingQuest)
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective(typeof(FindZoelObjective));
|
||||
|
||||
public override bool OnDragDrop( Mobile from, Item dropped )
|
||||
{
|
||||
if ( from is PlayerMobile player )
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
if (obj != null && !obj.Completed)
|
||||
obj.Complete();
|
||||
}
|
||||
}
|
||||
|
||||
if ( qs is EminosUndertakingQuest )
|
||||
{
|
||||
if ( dropped is NoteForZoel )
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective( typeof( GiveZoelNoteObjective ) );
|
||||
public override bool OnDragDrop(Mobile from, Item dropped)
|
||||
{
|
||||
if (from is PlayerMobile player)
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
|
||||
if ( obj != null && !obj.Completed )
|
||||
{
|
||||
dropped.Delete();
|
||||
obj.Complete();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (qs is EminosUndertakingQuest)
|
||||
if (dropped is NoteForZoel)
|
||||
{
|
||||
QuestObjective obj = qs.FindObjective(typeof(GiveZoelNoteObjective));
|
||||
|
||||
return base.OnDragDrop( from, dropped );
|
||||
}
|
||||
if (obj != null && !obj.Completed)
|
||||
{
|
||||
dropped.Delete();
|
||||
obj.Complete();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnMovement( Mobile m, Point3D oldLocation )
|
||||
{
|
||||
base.OnMovement( m, oldLocation );
|
||||
return base.OnDragDrop(from, dropped);
|
||||
}
|
||||
|
||||
if ( !m.Frozen && !m.Alive && InRange( m, 4 ) && !InRange( oldLocation, 4 ) && InLOS( m ) )
|
||||
{
|
||||
if ( m.Map == null || !m.Map.CanFit( m.Location, 16, false, false ) )
|
||||
{
|
||||
m.SendLocalizedMessage( 502391 ); // Thou can not be resurrected there!
|
||||
}
|
||||
else
|
||||
{
|
||||
Direction = GetDirectionTo( m );
|
||||
public override void OnMovement(Mobile m, Point3D oldLocation)
|
||||
{
|
||||
base.OnMovement(m, oldLocation);
|
||||
|
||||
m.PlaySound( 0x214 );
|
||||
m.FixedEffect( 0x376A, 10, 16 );
|
||||
if (!m.Frozen && !m.Alive && InRange(m, 4) && !InRange(oldLocation, 4) && InLOS(m))
|
||||
{
|
||||
if (m.Map == null || !m.Map.CanFit(m.Location, 16, false, false))
|
||||
{
|
||||
m.SendLocalizedMessage(502391); // Thou can not be resurrected there!
|
||||
}
|
||||
else
|
||||
{
|
||||
Direction = GetDirectionTo(m);
|
||||
|
||||
m.CloseGump( typeof( ResurrectGump ) );
|
||||
m.SendGump( new ResurrectGump( m, ResurrectMessage.Healer ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
m.PlaySound(0x214);
|
||||
m.FixedEffect(0x376A, 10, 16);
|
||||
|
||||
public Zoel( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
m.CloseGump(typeof(ResurrectGump));
|
||||
m.SendGump(new ResurrectGump(m, ResurrectMessage.Healer));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,268 +3,216 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Engines.Quests.Ninja
|
||||
{
|
||||
public class FindEminoBeginObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063174;
|
||||
public class FindEminoBeginObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063174;
|
||||
|
||||
public FindEminoBeginObjective()
|
||||
{
|
||||
}
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation(new FindZoelConversation());
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation( new FindZoelConversation() );
|
||||
}
|
||||
}
|
||||
public class FindZoelObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063176;
|
||||
|
||||
public class FindZoelObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063176;
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation(new EnterCaveConversation());
|
||||
}
|
||||
}
|
||||
|
||||
public FindZoelObjective()
|
||||
{
|
||||
}
|
||||
public class EnterCaveObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063179;
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation( new EnterCaveConversation() );
|
||||
}
|
||||
}
|
||||
public override void CheckProgress()
|
||||
{
|
||||
if (System.From.Map == Map.Malas && System.From.InRange(new Point3D(406, 1141, 0), 2))
|
||||
Complete();
|
||||
}
|
||||
|
||||
public class EnterCaveObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063179;
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation(new SneakPastGuardiansConversation());
|
||||
}
|
||||
}
|
||||
|
||||
public EnterCaveObjective()
|
||||
{
|
||||
}
|
||||
public class SneakPastGuardiansObjective : QuestObjective
|
||||
{
|
||||
public bool TaughtHowToUseSkills{ get; set; }
|
||||
|
||||
public override void CheckProgress()
|
||||
{
|
||||
if ( System.From.Map == Map.Malas && System.From.InRange( new Point3D( 406, 1141, 0 ), 2 ) )
|
||||
Complete();
|
||||
}
|
||||
public override object Message => 1063261;
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation( new SneakPastGuardiansConversation() );
|
||||
}
|
||||
}
|
||||
public override void CheckProgress()
|
||||
{
|
||||
if (System.From.Map == Map.Malas && System.From.InRange(new Point3D(412, 1123, 0), 3))
|
||||
Complete();
|
||||
}
|
||||
|
||||
public class SneakPastGuardiansObjective : QuestObjective
|
||||
{
|
||||
public bool TaughtHowToUseSkills { get; set; }
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation(new UseTeleporterConversation());
|
||||
}
|
||||
|
||||
public override object Message => 1063261;
|
||||
public override void ChildDeserialize(GenericReader reader)
|
||||
{
|
||||
int version = reader.ReadEncodedInt();
|
||||
|
||||
public SneakPastGuardiansObjective()
|
||||
{
|
||||
}
|
||||
TaughtHowToUseSkills = reader.ReadBool();
|
||||
}
|
||||
|
||||
public override void CheckProgress()
|
||||
{
|
||||
if ( System.From.Map == Map.Malas && System.From.InRange( new Point3D( 412, 1123, 0 ), 3 ) )
|
||||
Complete();
|
||||
}
|
||||
public override void ChildSerialize(GenericWriter writer)
|
||||
{
|
||||
writer.WriteEncodedInt(0); // version
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation( new UseTeleporterConversation() );
|
||||
}
|
||||
writer.Write(TaughtHowToUseSkills);
|
||||
}
|
||||
}
|
||||
|
||||
public override void ChildDeserialize( GenericReader reader )
|
||||
{
|
||||
int version = reader.ReadEncodedInt();
|
||||
public class UseTeleporterObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063183;
|
||||
|
||||
TaughtHowToUseSkills = reader.ReadBool();
|
||||
}
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation(new GiveZoelNoteConversation());
|
||||
}
|
||||
}
|
||||
|
||||
public override void ChildSerialize( GenericWriter writer )
|
||||
{
|
||||
writer.WriteEncodedInt( (int) 0 ); // version
|
||||
public class GiveZoelNoteObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063185;
|
||||
|
||||
writer.Write( (bool) TaughtHowToUseSkills );
|
||||
}
|
||||
}
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation(new GainInnInformationConversation());
|
||||
}
|
||||
}
|
||||
|
||||
public class UseTeleporterObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063183;
|
||||
public class GainInnInformationObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063190;
|
||||
|
||||
public UseTeleporterObjective()
|
||||
{
|
||||
}
|
||||
public override void CheckProgress()
|
||||
{
|
||||
Mobile from = System.From;
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation( new GiveZoelNoteConversation() );
|
||||
}
|
||||
}
|
||||
if (from.Map == Map.Malas && from.X > 399 && from.X < 408 && from.Y > 1091 && from.Y < 1099)
|
||||
Complete();
|
||||
}
|
||||
|
||||
public class GiveZoelNoteObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063185;
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation(new ReturnFromInnConversation());
|
||||
}
|
||||
}
|
||||
|
||||
public GiveZoelNoteObjective()
|
||||
{
|
||||
}
|
||||
public class ReturnFromInnObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063197;
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation( new GainInnInformationConversation() );
|
||||
}
|
||||
}
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation(new SearchForSwordConversation());
|
||||
}
|
||||
}
|
||||
|
||||
public class GainInnInformationObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063190;
|
||||
public class SearchForSwordObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063200;
|
||||
|
||||
public GainInnInformationObjective()
|
||||
{
|
||||
}
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation(new HallwayWalkConversation());
|
||||
}
|
||||
}
|
||||
|
||||
public override void CheckProgress()
|
||||
{
|
||||
Mobile from = System.From;
|
||||
public class HallwayWalkObjective : QuestObjective
|
||||
{
|
||||
public bool StolenTreasure{ get; set; }
|
||||
|
||||
if ( from.Map == Map.Malas && from.X > 399 && from.X < 408 && from.Y > 1091 && from.Y < 1099 )
|
||||
Complete();
|
||||
}
|
||||
public override object Message => 1063202;
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation( new ReturnFromInnConversation() );
|
||||
}
|
||||
}
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation(new ReturnSwordConversation());
|
||||
}
|
||||
|
||||
public class ReturnFromInnObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063197;
|
||||
public override void ChildDeserialize(GenericReader reader)
|
||||
{
|
||||
int version = reader.ReadEncodedInt();
|
||||
|
||||
public ReturnFromInnObjective()
|
||||
{
|
||||
}
|
||||
StolenTreasure = reader.ReadBool();
|
||||
}
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation( new SearchForSwordConversation() );
|
||||
}
|
||||
}
|
||||
public override void ChildSerialize(GenericWriter writer)
|
||||
{
|
||||
writer.WriteEncodedInt(0); // version
|
||||
|
||||
public class SearchForSwordObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063200;
|
||||
writer.Write(StolenTreasure);
|
||||
}
|
||||
}
|
||||
|
||||
public SearchForSwordObjective()
|
||||
{
|
||||
}
|
||||
public class ReturnSwordObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063204;
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation( new HallwayWalkConversation() );
|
||||
}
|
||||
}
|
||||
public override void CheckProgress()
|
||||
{
|
||||
Mobile from = System.From;
|
||||
|
||||
public class HallwayWalkObjective : QuestObjective
|
||||
{
|
||||
public bool StolenTreasure { get; set; }
|
||||
if (from.Map != Map.Malas || from.Y > 992)
|
||||
Complete();
|
||||
}
|
||||
|
||||
public override object Message => 1063202;
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation(new SlayHenchmenConversation());
|
||||
}
|
||||
}
|
||||
|
||||
public HallwayWalkObjective()
|
||||
{
|
||||
}
|
||||
public class SlayHenchmenObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063206;
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation( new ReturnSwordConversation() );
|
||||
}
|
||||
public override int MaxProgress => 3;
|
||||
|
||||
public override void ChildDeserialize( GenericReader reader )
|
||||
{
|
||||
int version = reader.ReadEncodedInt();
|
||||
public override void RenderProgress(BaseQuestGump gump)
|
||||
{
|
||||
if (!Completed)
|
||||
{
|
||||
// Henchmen killed:
|
||||
gump.AddHtmlLocalized(70, 260, 270, 100, 1063207, BaseQuestGump.Blue, false, false);
|
||||
gump.AddLabel(70, 280, 0x64, CurProgress.ToString());
|
||||
gump.AddLabel(100, 280, 0x64, "/");
|
||||
gump.AddLabel(130, 280, 0x64, MaxProgress.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
base.RenderProgress(gump);
|
||||
}
|
||||
}
|
||||
|
||||
StolenTreasure = reader.ReadBool();
|
||||
}
|
||||
public override void OnKill(BaseCreature creature, Container corpse)
|
||||
{
|
||||
if (creature is Henchman)
|
||||
CurProgress++;
|
||||
}
|
||||
|
||||
public override void ChildSerialize( GenericWriter writer )
|
||||
{
|
||||
writer.WriteEncodedInt( (int) 0 ); // version
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation(new GiveEminoSwordConversation());
|
||||
}
|
||||
}
|
||||
|
||||
writer.Write( (bool) StolenTreasure );
|
||||
}
|
||||
}
|
||||
public class GiveEminoSwordObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063210;
|
||||
|
||||
public class ReturnSwordObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063204;
|
||||
|
||||
public ReturnSwordObjective()
|
||||
{
|
||||
}
|
||||
|
||||
public override void CheckProgress()
|
||||
{
|
||||
Mobile from = System.From;
|
||||
|
||||
if ( from.Map != Map.Malas || from.Y > 992 )
|
||||
Complete();
|
||||
}
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation( new SlayHenchmenConversation() );
|
||||
}
|
||||
}
|
||||
|
||||
public class SlayHenchmenObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063206;
|
||||
|
||||
public SlayHenchmenObjective()
|
||||
{
|
||||
}
|
||||
|
||||
public override int MaxProgress => 3;
|
||||
|
||||
public override void RenderProgress( BaseQuestGump gump )
|
||||
{
|
||||
if ( !Completed )
|
||||
{
|
||||
// Henchmen killed:
|
||||
gump.AddHtmlLocalized( 70, 260, 270, 100, 1063207, BaseQuestGump.Blue, false, false );
|
||||
gump.AddLabel( 70, 280, 0x64, CurProgress.ToString() );
|
||||
gump.AddLabel( 100, 280, 0x64, "/" );
|
||||
gump.AddLabel( 130, 280, 0x64, MaxProgress.ToString() );
|
||||
}
|
||||
else
|
||||
{
|
||||
base.RenderProgress( gump );
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnKill( BaseCreature creature, Container corpse )
|
||||
{
|
||||
if ( creature is Henchman )
|
||||
CurProgress++;
|
||||
}
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
System.AddConversation( new GiveEminoSwordConversation() );
|
||||
}
|
||||
}
|
||||
|
||||
public class GiveEminoSwordObjective : QuestObjective
|
||||
{
|
||||
public override object Message => 1063210;
|
||||
|
||||
public GiveEminoSwordObjective()
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void OnComplete()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue