#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.

This commit is contained in:
WarrentyExpired 2026-08-06 11:06:05 -04:00
parent b51c58f514
commit 3045c83799
3512 changed files with 627673 additions and 0 deletions

View file

@ -0,0 +1,227 @@
using System;
using Server;
using Server.Mobiles;
using Server.Gumps;
using Server.Items;
namespace Server.Engines.Quests.Ninja
{
public class Emino : BaseQuester
{
[Constructable]
public Emino() : base( "the Notorious" )
{
}
public override void InitBody()
{
InitStats( 100, 100, 25 );
Hue = 0x83FE;
Female = false;
Body = 0x190;
Name = "Daimyo Emino";
}
public override void InitOutfit()
{
HairItemID = 0x203B;
HairHue = 0x901;
AddItem( new MaleKimono() );
AddItem( new SamuraiTabi() );
AddItem( new Bandana() );
AddItem( new PlateHaidate() );
AddItem( new PlateDo() );
AddItem( new PlateHiroSode() );
Nunchaku nunchaku = new Nunchaku();
nunchaku.Movable = false;
AddItem( nunchaku );
}
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 EminosUndertakingQuest )
{
if ( EminosUndertakingQuest.HasLostNoteForZoel( player ) )
{
Item note = new NoteForZoel();
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 )
{
obj.Complete();
}
else
{
obj = qs.FindObjective( typeof( UseTeleporterObjective ) );
if ( obj != null && !obj.Completed )
{
Item note = new NoteForZoel();
if ( player.PlaceInBackpack( note ) )
{
obj.Complete();
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 ( obj != null && !obj.Completed )
{
Container cont = GetNewContainer();
for ( int i = 0; i < 10; i++ )
cont.DropItem( new LesserHealPotion() );
cont.DropItem( new LeatherNinjaHood() );
cont.DropItem( new LeatherNinjaJacket() );
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 ( obj != null && !obj.Completed )
{
Item katana = null;
if ( player.Backpack != null )
katana = player.Backpack.FindItemByType( typeof( EminosKatana ) );
if ( katana != null )
{
bool stolenTreasure = false;
HallwayWalkObjective walk = qs.FindObjective( typeof( HallwayWalkObjective ) ) as HallwayWalkObjective;
if ( walk != null )
stolenTreasure = walk.StolenTreasure;
Kama kama = new Kama();
if ( stolenTreasure )
BaseRunicTool.ApplyAttributesTo( kama, 1, 10, 20 );
else
BaseRunicTool.ApplyAttributesTo( kama, 1, 10, 30 );
if ( player.PlaceInBackpack( kama ) )
{
katana.Delete();
obj.Complete();
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.
}
}
}
}
}
}
}
}
}
}
public override void OnMovement( Mobile m, Point3D oldLocation )
{
base.OnMovement( m, oldLocation );
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.PlaySound( 0x214 );
m.FixedEffect( 0x376A, 10, 16 );
m.CloseGump( typeof( ResurrectGump ) );
m.SendGump( new ResurrectGump( m, ResurrectMessage.Healer ) );
}
}
}
public Emino( 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();
}
}
}

View file

@ -0,0 +1,56 @@
using System;
using Server;
using Server.Mobiles;
using Server.Items;
using Server.Network;
namespace Server.Engines.Quests.Ninja
{
public class EnshroudedFigure : BaseQuester
{
[Constructable]
public EnshroudedFigure()
{
}
public override void InitBody()
{
InitStats( 100, 100, 25 );
Hue = 0x8401;
Female = false;
Body = 0x190;
Name = "enshrouded figure";
}
public override void InitOutfit()
{
AddItem( new DeathShroud() );
AddItem( new ThighBoots() );
}
public override int TalkNumber{ get{ return -1; } }
public override void OnTalk( PlayerMobile player, bool contextMenu )
{
}
public EnshroudedFigure( 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();
}
}
}

View file

@ -0,0 +1,55 @@
using System;
using Server;
using Server.Mobiles;
using Server.Items;
namespace Server.Engines.Quests.Ninja
{
public class Henchman : BaseCreature
{
[Constructable]
public Henchman() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
InitStats( 45, 30, 5 );
Hue = Utility.RandomSkinHue();
Body = 0x190;
Name = "a henchman";
Utility.AssignRandomHair( this );
Utility.AssignRandomFacialHair( this );
AddItem( new LeatherNinjaJacket() );
AddItem( new LeatherNinjaPants() );
AddItem( new NinjaTabi() );
if ( Utility.RandomBool() )
AddItem( new Kama() );
else
AddItem( new Tessen() );
SetSkill( SkillName.Swords, 50.0 );
SetSkill( SkillName.Tactics, 50.0 );
}
public override bool AlwaysMurderer{ get{ return true; } }
public Henchman( 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();
}
}
}

View file

@ -0,0 +1,96 @@
using System;
using Server;
using Server.Mobiles;
using Server.Items;
using Server.Network;
namespace Server.Engines.Quests.Ninja
{
public class HiddenFigure : BaseQuester
{
public static int[] Messages = new int[]
{
1063191, // They won’t find me here.
1063192 // Ah, a quiet hideout.
};
private int m_Message;
[CommandProperty( AccessLevel.GameMaster )]
public int Message{ get{ return m_Message; } set{ m_Message = value; } }
[Constructable]
public HiddenFigure()
{
m_Message = Utility.RandomList( Messages );
}
public override void InitBody()
{
InitStats( 100, 100, 25 );
Hue = Utility.RandomSkinHue();
Female = Utility.RandomBool();
if ( Female )
{
Body = 0x191;
Name = NameList.RandomName( "female" );
}
else
{
Body = 0x190;
Name = NameList.RandomName( "male" );
}
}
public override void InitOutfit()
{
Utility.AssignRandomHair( this );
AddItem( new TattsukeHakama( GetRandomHue() ) );
AddItem( new Kasa() );
AddItem( new HakamaShita( GetRandomHue() ) );
if ( Utility.RandomBool() )
AddItem( new Shoes( GetShoeHue() ) );
else
AddItem( new Sandals( GetShoeHue() ) );
}
public override int GetAutoTalkRange( PlayerMobile pm )
{
return 3;
}
public override int TalkNumber{ get{ return -1; } }
public override void OnTalk( PlayerMobile player, bool contextMenu )
{
PrivateOverheadMessage( MessageType.Regular, 0x3B2, m_Message, player.NetState );
}
public HiddenFigure( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
writer.Write( (int) m_Message );
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
m_Message = reader.ReadInt();
}
}
}

View file

@ -0,0 +1,60 @@
using System;
using Server;
using Server.Mobiles;
using Server.Items;
using Server.Network;
namespace Server.Engines.Quests.Ninja
{
public class JedahEntille : BaseQuester
{
[Constructable]
public JedahEntille() : base( "the Silent" )
{
}
public override void InitBody()
{
InitStats( 100, 100, 25 );
Hue = 0x83FE;
Female = true;
Body = 0x191;
Name = "Jedah Entille";
}
public override void InitOutfit()
{
HairItemID = 0x203C;
HairHue = 0x6BE;
AddItem( new PlainDress( 0x528 ) );
AddItem( new ThighBoots() );
AddItem( new FloppyHat() );
}
public override int TalkNumber{ get{ return -1; } }
public override void OnTalk( PlayerMobile player, bool contextMenu )
{
}
public JedahEntille( 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();
}
}
}

View file

@ -0,0 +1,138 @@
using System;
using Server;
using Server.Mobiles;
using Server.Items;
using Server.Gumps;
using Server.Engines.Quests;
namespace Server.Engines.Quests.Ninja
{
public class Zoel : BaseQuester
{
[Constructable]
public Zoel() : base( "the Masterful Tactician" )
{
}
public override void InitBody()
{
InitStats( 100, 100, 25 );
Hue = 0x83FE;
Female = false;
Body = 0x190;
Name = "Elite Ninja Zoel";
}
public override void InitOutfit()
{
HairItemID = 0x203B;
HairHue = 0x901;
AddItem( new HakamaShita( 0x1 ) );
AddItem( new NinjaTabi() );
AddItem( new TattsukeHakama() );
AddItem( new Bandana() );
AddItem( new LeatherNinjaBelt() );
Tekagi tekagi = new Tekagi();
tekagi.Movable = false;
AddItem( tekagi );
}
public override int TalkNumber{ get { return -1; } }
public override int GetAutoTalkRange( PlayerMobile pm )
{
return 2;
}
public override bool CanTalkTo( PlayerMobile to )
{
return to.Quest is EminosUndertakingQuest;
}
public override void OnTalk( PlayerMobile player, bool contextMenu )
{
QuestSystem qs = player.Quest;
if ( qs is EminosUndertakingQuest )
{
QuestObjective obj = qs.FindObjective( typeof( FindZoelObjective ) );
if ( obj != null && !obj.Completed )
obj.Complete();
}
}
public override bool OnDragDrop( Mobile from, Item dropped )
{
PlayerMobile player = from as PlayerMobile;
if ( player != null )
{
QuestSystem qs = player.Quest;
if ( qs is EminosUndertakingQuest )
{
if ( dropped is NoteForZoel )
{
QuestObjective obj = qs.FindObjective( typeof( GiveZoelNoteObjective ) );
if ( obj != null && !obj.Completed )
{
dropped.Delete();
obj.Complete();
return true;
}
}
}
}
return base.OnDragDrop( from, dropped );
}
public override void OnMovement( Mobile m, Point3D oldLocation )
{
base.OnMovement( m, oldLocation );
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.PlaySound( 0x214 );
m.FixedEffect( 0x376A, 10, 16 );
m.CloseGump( typeof( ResurrectGump ) );
m.SendGump( new ResurrectGump( m, ResurrectMessage.Healer ) );
}
}
}
public Zoel( 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();
}
}
}