Initial commit
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName("a Alpine Polar Bear corpse")]
|
||||
public class AlphaPolarBearz : Troglodyte
|
||||
{
|
||||
[Constructable]
|
||||
public AlphaPolarBearz()
|
||||
{
|
||||
Name = "Alpine Polar Bear";
|
||||
Hue = 1153;
|
||||
BodyValue = 213;
|
||||
|
||||
SetStr(584, 625);
|
||||
SetDex(163, 176);
|
||||
SetInt(90, 106);
|
||||
|
||||
SetHits(3034, 3189);
|
||||
SetStam(163, 176);
|
||||
SetMana(90, 106);
|
||||
|
||||
SetDamage(16, 19);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 50, 53);
|
||||
SetResistance(ResistanceType.Fire, 45, 47);
|
||||
SetResistance(ResistanceType.Cold, 80, 90);
|
||||
SetResistance(ResistanceType.Poison, 50, 60);
|
||||
SetResistance(ResistanceType.Energy, 41, 56);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 122.7, 130.5);
|
||||
SetSkill(SkillName.Tactics, 109.3, 118.5);
|
||||
SetSkill(SkillName.MagicResist, 72.9, 87.6);
|
||||
SetSkill(SkillName.Anatomy, 110.5, 124.0);
|
||||
SetSkill(SkillName.Healing, 84.1, 105.0);
|
||||
|
||||
Fame = 10000;
|
||||
Karma = -10000;
|
||||
PackItem( new AlphaPolarFur() );
|
||||
|
||||
for (int i = 0; i < Utility.RandomMinMax(0, 1); i++)
|
||||
{
|
||||
PackItem(Loot.RandomScroll(0, Loot.ArcanistScrollTypes.Length, SpellbookType.Arcanist));
|
||||
}
|
||||
|
||||
SetWeaponAbility(WeaponAbility.CrushingBlow);
|
||||
}
|
||||
|
||||
public AlphaPolarBearz(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
public override bool CanBeParagon { get { return false; } }
|
||||
public override bool GivesMLMinorArtifact
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
public override int TreasureMapLevel
|
||||
{
|
||||
get
|
||||
{
|
||||
return 4;
|
||||
}
|
||||
}
|
||||
public override bool AllureImmune
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write((int)0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class AlphaPolarFur : Item
|
||||
{
|
||||
[Constructable]
|
||||
public AlphaPolarFur() : this( 1 )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public AlphaPolarFur( int amount ) : base( 0x1875 )
|
||||
{
|
||||
Name = "Pristine Polar Bear Hide";
|
||||
Weight = 0.0;
|
||||
Hue = 1153;
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile m )
|
||||
{
|
||||
m.SendMessage( "A Pristine Polar Bear Hide, Brijit Will Be Wanting These. You can find her at the Last Chance Inn, In the Town of Winterhome" );
|
||||
m.PlaySound( 367 );
|
||||
}
|
||||
|
||||
public AlphaPolarFur( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
//=================================================
|
||||
//This script was created by Gizmo's Uo Quest Maker
|
||||
//This script was created on 1/6/2020 7:14:32 PM
|
||||
//=================================================
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Server.Engines.Quests
|
||||
{
|
||||
public class Brijit : MondainQuester
|
||||
{
|
||||
private List<SBInfo> m_SBInfos = new List<SBInfo>();
|
||||
protected override List<SBInfo> SBInfos{ get { return m_SBInfos; } }
|
||||
public override bool DisallowAllMoves{ get{ return true; } }
|
||||
|
||||
public override Type[] Quests
|
||||
{
|
||||
get{ return new Type[]
|
||||
{
|
||||
typeof( KillPolarBear )
|
||||
};}
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public Brijit() : base("Brijit", "The Tailor [?]")
|
||||
{
|
||||
new Horse().Rider = this;
|
||||
InitBody();
|
||||
}
|
||||
public Brijit(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();
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats(100, 100, 100);
|
||||
Female = true;
|
||||
Race = Race.Human;
|
||||
base.InitBody();
|
||||
}
|
||||
public override void InitOutfit()
|
||||
{
|
||||
AddItem( new FancyShirt() );
|
||||
AddItem( new LeatherArms() );
|
||||
AddItem( new LeatherGloves() );
|
||||
AddItem( new Skirt() );
|
||||
AddItem( new Cloak() );
|
||||
AddItem( new ThighBoots() );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
//=================================================
|
||||
//This script was created by Gizmo's Uo Quest Maker
|
||||
//This script was created on 1/6/2020 7:12:32 PM
|
||||
//=================================================
|
||||
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests
|
||||
{
|
||||
public class KillPolarBear : BaseQuest
|
||||
{
|
||||
//The player will have a delay before they can redo quest again
|
||||
public override TimeSpan RestartDelay { get { return TimeSpan.FromMinutes(1440); } }
|
||||
|
||||
//This is the Quest Title the player sees at the top of the Gump
|
||||
public override object Title{ get{ return "Hunting The Alpine's"; } }
|
||||
//This tells the story of the quest
|
||||
public override object Description { get { return "Uhmm.. Hello! Excuse Me! But...<BR><BR> I have been tasked to crafting fur boots for my shop, and I like to use the pristine hides that you get from skinning Alpine Polar Bears! <BR><BR> My old supplier seems to have gone off on a new route! I have not seen him in months! Would you help me gather some?<BR><BR> Gather 50 Pristine Polar Bear Hide and Bring Them To Brijit!<BR><BR>(This is a repeatable quest, it can be done again 24 hours after completion.)"; } }
|
||||
//This decides how the npc reacts in text the player refusing the quest
|
||||
public override object Refuse{ get{ return "Very Well, I will be here if you change your mind"; } }
|
||||
//This is what the npc says when the player returns without completing the objective(s)
|
||||
public override object Uncomplete{ get{ return "You need to kill more alpha!"; } }
|
||||
//This is what the Quest Giver says when the player completes the quest.
|
||||
public override object Complete{ get{ return "Good Job Adventurer! Heres Your Reward!"; } }
|
||||
|
||||
public KillPolarBear() : base()
|
||||
{
|
||||
//Slay Objective #1
|
||||
AddObjective(new ObtainObjective(typeof(AlphaPolarFur), "Pristine Polar Bear Hide", 50, 0x1875));
|
||||
|
||||
//AddReward( new BaseReward(typeof(GoldenQuestTicket), 50, "Daily Golden Quest Tickets" ) );
|
||||
AddReward(new BaseReward(typeof(HeritageSovereign), 15, "Sovereigns"));
|
||||
}
|
||||
|
||||
public override void GiveRewards()
|
||||
{
|
||||
base.GiveRewards();
|
||||
}
|
||||
|
||||
public override bool CanOffer()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class ChutiHead : Item
|
||||
{
|
||||
[Constructable]
|
||||
public ChutiHead() : this( 1 )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public ChutiHead( int amount ) : base( 0x1545 )
|
||||
{
|
||||
Name = "the head of the Chuti Yeti [Quest Relic 1 of 3]";
|
||||
//Stackable = false;
|
||||
//Amount = amount;
|
||||
Weight = 0;
|
||||
Hue = 1153;
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile m )
|
||||
{
|
||||
m.SendMessage( "The head of the Chuti Yeti, Tom Biscardi at the Winterhome Inn will be very interested in this!" );
|
||||
m.PlaySound( 0x0A0 );
|
||||
}
|
||||
|
||||
public ChutiHead( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class NyalmoHead : Item
|
||||
{
|
||||
[Constructable]
|
||||
public NyalmoHead() : this( 1 )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public NyalmoHead( int amount ) : base( 0x1545 )
|
||||
{
|
||||
Name = "the head of the Nyalmo Yeti [Quest Relic 2 of 3]";
|
||||
//Stackable = true;
|
||||
//Amount = amount;
|
||||
Weight = 0;
|
||||
Hue = 1175;
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile m )
|
||||
{
|
||||
m.SendMessage( "The head of the Nyalmo Yeti, Tom Biscardi at the Winterhome Inn will be very interested in this!" );
|
||||
m.PlaySound( 0x0A0 );
|
||||
}
|
||||
|
||||
public NyalmoHead( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class RangShimBomboHead : Item
|
||||
{
|
||||
[Constructable]
|
||||
public RangShimBomboHead() : this( 1 )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public RangShimBomboHead( int amount ) : base( 0x1545 )
|
||||
{
|
||||
Name = "the head of the Rang Shim Bombo Yeti [Quest Relic 3 of 3]";
|
||||
//Stackable = true;
|
||||
//Amount = amount;
|
||||
Weight = 0;
|
||||
Hue = 142;
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile m )
|
||||
{
|
||||
m.SendMessage( "The head of the Rang Shim Bombo Yeti, Tom Biscardi at the Winterhome Inn will be very interested in this!" );
|
||||
m.PlaySound( 0x0A0 );
|
||||
}
|
||||
|
||||
public RangShimBomboHead( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
//=================================================
|
||||
//This script was created by Gizmo's Uo Quest Maker
|
||||
//This script was created on 1/6/2020 7:12:32 PM
|
||||
//=================================================
|
||||
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests
|
||||
{
|
||||
public class KillYetiQuest : BaseQuest
|
||||
{
|
||||
//The player will have a delay before they can redo quest again
|
||||
public override TimeSpan RestartDelay { get { return TimeSpan.FromMinutes(1440); } }
|
||||
|
||||
//This is the Quest Title the player sees at the top of the Gump
|
||||
public override object Title{ get{ return "The Hunt For Bigfoot!"; } }
|
||||
//This tells the story of the quest
|
||||
public override object Description { get { return "(This is a repeatable quest, you can accept the quest again, 24 hours after completion!)<BR><BR> Pardon me friend..<BR><BR> My name is Tom, I am the head investigator from the Moonglow Cryptozoology Dept.<BR><BR> I have been hunting down the elusive Bigfoot! In my adventures I have found that there are many different species of Bigfoot! I am ivestigating the reports of the Northern Yeti!!<BR><BR> *Tom picks up a book and fumbles through the pages*<BR><BR> Ah yes, here it is, The Yeti or as some call it, the 'Abominable Snowman' is often described as being a large, bipedal ape-like creature that is covered with brown, grey, or white hair, and it is sometimes depicted as having large, sharp teeth & are found mostly in the Northern Regions Of Sosaria.<BR><BR> Lore describes three main varieties of Yetis. The Nyalmo, which has black fur and is the largest and fiercest, the Chuti Yeti that has a pure white fur, and the Rang Shim Bombo, which has reddish-brown fur.<BR><BR> If you are up for it, I will reward any adventurer who can bring me proof of these 3 variants! "; } }
|
||||
//This decides how the npc reacts in text the player refusing the quest
|
||||
public override object Refuse{ get{ return "Very well then, I will leave you be."; } }
|
||||
//This is what the npc says when the player returns without completing the objective(s)
|
||||
public override object Uncomplete{ get{ return "Keep searching friend, I will be here at the Inn if you find anything!"; } }
|
||||
//This is what the Quest Giver says when the player completes the quest.
|
||||
public override object Complete{ get{ return "Oh my! These are perfect! I cannot wait to show the other memebers at the Cryptozoology Dept! Here is your reward!"; } }
|
||||
|
||||
public KillYetiQuest() : base()
|
||||
{
|
||||
//Slay Objective #1
|
||||
AddObjective(new ObtainObjective(typeof(ChutiHead), "Chuti Yeti Head", 1, 0x1545));
|
||||
AddObjective(new ObtainObjective(typeof(NyalmoHead), "Nyalmo Yeti Head", 1, 0x1545));
|
||||
AddObjective(new ObtainObjective(typeof(RangShimBomboHead), "Rang Shim Bombo Yeti Head", 1, 0x1545));
|
||||
|
||||
|
||||
//AddReward(new BaseReward(typeof(GoldenQuestTicket), 100, "Golden Quest Ticket"));
|
||||
AddReward(new BaseReward(typeof(HeritageSovereign), 15, "Sovereigns"));
|
||||
}
|
||||
|
||||
public override void GiveRewards()
|
||||
{
|
||||
base.GiveRewards();
|
||||
}
|
||||
|
||||
public override bool CanOffer()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
//=================================================
|
||||
//This script was created by Gizmo's Uo Quest Maker
|
||||
//This script was created on 1/6/2020 7:14:32 PM
|
||||
//=================================================
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Server.Engines.Quests
|
||||
{
|
||||
public class TomBiscardi : MondainQuester
|
||||
{
|
||||
private List<SBInfo> m_SBInfos = new List<SBInfo>();
|
||||
protected override List<SBInfo> SBInfos{ get { return m_SBInfos; } }
|
||||
public override bool DisallowAllMoves{ get{ return true; } }
|
||||
|
||||
public override Type[] Quests
|
||||
{
|
||||
get{ return new Type[]
|
||||
{
|
||||
typeof( KillYetiQuest )
|
||||
};}
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public TomBiscardi() : base("Tom Biscardi", "Cryptozoologist [?]")
|
||||
{
|
||||
new Horse().Rider = this;
|
||||
InitBody();
|
||||
}
|
||||
public TomBiscardi(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();
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats(100, 100, 100);
|
||||
Female = false;
|
||||
Race = Race.Human;
|
||||
base.InitBody();
|
||||
}
|
||||
public override void InitOutfit()
|
||||
{
|
||||
AddItem( new FancyShirt() );
|
||||
AddItem( new LeatherArms() );
|
||||
AddItem( new LeatherGloves() );
|
||||
AddItem( new LeatherLegs() );
|
||||
AddItem( new Cloak() );
|
||||
AddItem( new ThighBoots() );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,244 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName("a Chuti Yeti corpse")]
|
||||
public class ChutiYeti : BaseCreature
|
||||
{
|
||||
public override bool CanStealth { get { return true; } }
|
||||
|
||||
private Timer m_SoundTimer;
|
||||
private bool m_HasTeleportedAway;
|
||||
[Constructable]
|
||||
public ChutiYeti()
|
||||
: base(AIType.AI_NecroMage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Name = "Chuti Yeti";
|
||||
//Title = "the Shadow Knight";
|
||||
Body = 241;
|
||||
Hue = 1153;
|
||||
|
||||
SetStr(250);
|
||||
SetDex(100);
|
||||
SetInt(100, 120);
|
||||
|
||||
SetHits(3000);
|
||||
|
||||
SetDamage(15, 25);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 60);
|
||||
SetDamageType(ResistanceType.Cold, 40);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 90);
|
||||
SetResistance(ResistanceType.Fire, 65);
|
||||
SetResistance(ResistanceType.Cold, 75);
|
||||
SetResistance(ResistanceType.Poison, 75);
|
||||
SetResistance(ResistanceType.Energy, 55);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 100.0);
|
||||
SetSkill(SkillName.Tactics, 100.0);
|
||||
SetSkill(SkillName.MagicResist, 120.0);
|
||||
SetSkill(SkillName.Poisoning, 75.0, 85.0);
|
||||
SetSkill(SkillName.DetectHidden, 100.0);
|
||||
SetSkill(SkillName.Hiding, 100.0);
|
||||
SetSkill(SkillName.Magery, 100.0);
|
||||
SetSkill(SkillName.EvalInt, 100.0);
|
||||
SetSkill(SkillName.Meditation, 100.0);
|
||||
SetSkill(SkillName.Necromancy, 110.0);
|
||||
SetSkill(SkillName.SpiritSpeak, 110.0);
|
||||
SetSkill(SkillName.Focus, 120.0);
|
||||
|
||||
Fame = 25000;
|
||||
Karma = -25000;
|
||||
|
||||
VirtualArmor = 54;
|
||||
|
||||
SetWeaponAbility(WeaponAbility.ConcussionBlow);
|
||||
SetWeaponAbility(WeaponAbility.CrushingBlow);
|
||||
|
||||
PackItem( new ChutiHead() );
|
||||
}
|
||||
|
||||
public ChutiYeti(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
RevealingAction();
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
public override void OnDamagedBySpell(Mobile from)
|
||||
{
|
||||
RevealingAction();
|
||||
base.OnDamagedBySpell(from);
|
||||
}
|
||||
|
||||
public override bool IgnoreYoungProtection
|
||||
{
|
||||
get
|
||||
{
|
||||
return Core.ML;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanFlee { get { return true; } }
|
||||
public override TribeType Tribe { get { return TribeType.Undead; } }
|
||||
|
||||
public override OppositionGroup OppositionGroup
|
||||
{
|
||||
get
|
||||
{
|
||||
return OppositionGroup.FeyAndUndead;
|
||||
}
|
||||
}
|
||||
public override bool BardImmune
|
||||
{
|
||||
get
|
||||
{
|
||||
return !Core.SE;
|
||||
}
|
||||
}
|
||||
public override bool Unprovokable
|
||||
{
|
||||
get
|
||||
{
|
||||
return Core.SE;
|
||||
}
|
||||
}
|
||||
public override bool AreaPeaceImmune
|
||||
{
|
||||
get
|
||||
{
|
||||
return Core.SE;
|
||||
}
|
||||
}
|
||||
public override Poison PoisonImmune
|
||||
{
|
||||
get
|
||||
{
|
||||
return Poison.Lethal;
|
||||
}
|
||||
}
|
||||
public override int TreasureMapLevel
|
||||
{
|
||||
get
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x569;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xA2;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x158;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x25E;
|
||||
}
|
||||
|
||||
public override void OnCombatantChange()
|
||||
{
|
||||
base.OnCombatantChange();
|
||||
|
||||
if (Hidden && Combatant != null)
|
||||
Combatant = null;
|
||||
}
|
||||
|
||||
public virtual void SendTrackingSound()
|
||||
{
|
||||
if (Hidden)
|
||||
{
|
||||
Effects.PlaySound(Location, Map, 0x2C8);
|
||||
Combatant = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
Frozen = false;
|
||||
|
||||
if (m_SoundTimer != null)
|
||||
m_SoundTimer.Stop();
|
||||
|
||||
m_SoundTimer = null;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnThink()
|
||||
{
|
||||
if (!m_HasTeleportedAway && Hits < (HitsMax / 2))
|
||||
{
|
||||
Map map = Map;
|
||||
|
||||
if (map != null)
|
||||
{
|
||||
// try 10 times to find a teleport spot
|
||||
for (int i = 0; i < 10; ++i)
|
||||
{
|
||||
int x = X + (Utility.RandomMinMax(5, 10) * (Utility.RandomBool() ? 1 : -1));
|
||||
int y = Y + (Utility.RandomMinMax(5, 10) * (Utility.RandomBool() ? 1 : -1));
|
||||
int z = Z;
|
||||
|
||||
if (!map.CanFit(x, y, z, 16, false, false))
|
||||
continue;
|
||||
|
||||
Point3D from = Location;
|
||||
Point3D to = new Point3D(x, y, z);
|
||||
|
||||
if (!InLOS(to))
|
||||
continue;
|
||||
|
||||
Location = to;
|
||||
ProcessDelta();
|
||||
Hidden = true;
|
||||
Combatant = null;
|
||||
|
||||
Effects.SendLocationParticles(EffectItem.Create(from, map, EffectItem.DefaultDuration), 0x3728, 10, 10, 2023);
|
||||
Effects.SendLocationParticles(EffectItem.Create(to, map, EffectItem.DefaultDuration), 0x3728, 10, 10, 5023);
|
||||
|
||||
Effects.PlaySound(to, map, 0x1FE);
|
||||
|
||||
m_HasTeleportedAway = true;
|
||||
m_SoundTimer = Timer.DelayCall(TimeSpan.FromSeconds(5.0), TimeSpan.FromSeconds(2.5), new TimerCallback(SendTrackingSound));
|
||||
|
||||
Frozen = true;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
base.OnThink();
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write((int)0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,244 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName("a Nyalmo Yeti corpse")]
|
||||
public class NyalmoYeti : BaseCreature
|
||||
{
|
||||
public override bool CanStealth { get { return true; } }
|
||||
|
||||
private Timer m_SoundTimer;
|
||||
private bool m_HasTeleportedAway;
|
||||
[Constructable]
|
||||
public NyalmoYeti()
|
||||
: base(AIType.AI_NecroMage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Name = "Nyalmo Yeti";
|
||||
//Title = "the Shadow Knight";
|
||||
Body = 241;
|
||||
Hue = 1175;
|
||||
|
||||
SetStr(250);
|
||||
SetDex(100);
|
||||
SetInt(100, 120);
|
||||
|
||||
SetHits(3000);
|
||||
|
||||
SetDamage(15, 25);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 60);
|
||||
SetDamageType(ResistanceType.Cold, 40);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 90);
|
||||
SetResistance(ResistanceType.Fire, 65);
|
||||
SetResistance(ResistanceType.Cold, 75);
|
||||
SetResistance(ResistanceType.Poison, 75);
|
||||
SetResistance(ResistanceType.Energy, 55);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 100.0);
|
||||
SetSkill(SkillName.Tactics, 100.0);
|
||||
SetSkill(SkillName.MagicResist, 120.0);
|
||||
SetSkill(SkillName.Poisoning, 75.0, 85.0);
|
||||
SetSkill(SkillName.DetectHidden, 100.0);
|
||||
SetSkill(SkillName.Hiding, 100.0);
|
||||
SetSkill(SkillName.Magery, 100.0);
|
||||
SetSkill(SkillName.EvalInt, 100.0);
|
||||
SetSkill(SkillName.Meditation, 100.0);
|
||||
SetSkill(SkillName.Necromancy, 110.0);
|
||||
SetSkill(SkillName.SpiritSpeak, 110.0);
|
||||
SetSkill(SkillName.Focus, 120.0);
|
||||
|
||||
Fame = 25000;
|
||||
Karma = -25000;
|
||||
|
||||
VirtualArmor = 54;
|
||||
|
||||
SetWeaponAbility(WeaponAbility.ConcussionBlow);
|
||||
SetWeaponAbility(WeaponAbility.CrushingBlow);
|
||||
|
||||
PackItem( new NyalmoHead() );
|
||||
}
|
||||
|
||||
public NyalmoYeti(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
RevealingAction();
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
public override void OnDamagedBySpell(Mobile from)
|
||||
{
|
||||
RevealingAction();
|
||||
base.OnDamagedBySpell(from);
|
||||
}
|
||||
|
||||
public override bool IgnoreYoungProtection
|
||||
{
|
||||
get
|
||||
{
|
||||
return Core.ML;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanFlee { get { return true; } }
|
||||
public override TribeType Tribe { get { return TribeType.Undead; } }
|
||||
|
||||
public override OppositionGroup OppositionGroup
|
||||
{
|
||||
get
|
||||
{
|
||||
return OppositionGroup.FeyAndUndead;
|
||||
}
|
||||
}
|
||||
public override bool BardImmune
|
||||
{
|
||||
get
|
||||
{
|
||||
return !Core.SE;
|
||||
}
|
||||
}
|
||||
public override bool Unprovokable
|
||||
{
|
||||
get
|
||||
{
|
||||
return Core.SE;
|
||||
}
|
||||
}
|
||||
public override bool AreaPeaceImmune
|
||||
{
|
||||
get
|
||||
{
|
||||
return Core.SE;
|
||||
}
|
||||
}
|
||||
public override Poison PoisonImmune
|
||||
{
|
||||
get
|
||||
{
|
||||
return Poison.Lethal;
|
||||
}
|
||||
}
|
||||
public override int TreasureMapLevel
|
||||
{
|
||||
get
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x569;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xA2;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x158;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x25E;
|
||||
}
|
||||
|
||||
public override void OnCombatantChange()
|
||||
{
|
||||
base.OnCombatantChange();
|
||||
|
||||
if (Hidden && Combatant != null)
|
||||
Combatant = null;
|
||||
}
|
||||
|
||||
public virtual void SendTrackingSound()
|
||||
{
|
||||
if (Hidden)
|
||||
{
|
||||
Effects.PlaySound(Location, Map, 0x2C8);
|
||||
Combatant = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
Frozen = false;
|
||||
|
||||
if (m_SoundTimer != null)
|
||||
m_SoundTimer.Stop();
|
||||
|
||||
m_SoundTimer = null;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnThink()
|
||||
{
|
||||
if (!m_HasTeleportedAway && Hits < (HitsMax / 2))
|
||||
{
|
||||
Map map = Map;
|
||||
|
||||
if (map != null)
|
||||
{
|
||||
// try 10 times to find a teleport spot
|
||||
for (int i = 0; i < 10; ++i)
|
||||
{
|
||||
int x = X + (Utility.RandomMinMax(5, 10) * (Utility.RandomBool() ? 1 : -1));
|
||||
int y = Y + (Utility.RandomMinMax(5, 10) * (Utility.RandomBool() ? 1 : -1));
|
||||
int z = Z;
|
||||
|
||||
if (!map.CanFit(x, y, z, 16, false, false))
|
||||
continue;
|
||||
|
||||
Point3D from = Location;
|
||||
Point3D to = new Point3D(x, y, z);
|
||||
|
||||
if (!InLOS(to))
|
||||
continue;
|
||||
|
||||
Location = to;
|
||||
ProcessDelta();
|
||||
Hidden = true;
|
||||
Combatant = null;
|
||||
|
||||
Effects.SendLocationParticles(EffectItem.Create(from, map, EffectItem.DefaultDuration), 0x3728, 10, 10, 2023);
|
||||
Effects.SendLocationParticles(EffectItem.Create(to, map, EffectItem.DefaultDuration), 0x3728, 10, 10, 5023);
|
||||
|
||||
Effects.PlaySound(to, map, 0x1FE);
|
||||
|
||||
m_HasTeleportedAway = true;
|
||||
m_SoundTimer = Timer.DelayCall(TimeSpan.FromSeconds(5.0), TimeSpan.FromSeconds(2.5), new TimerCallback(SendTrackingSound));
|
||||
|
||||
Frozen = true;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
base.OnThink();
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write((int)0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
+244
@@ -0,0 +1,244 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName("a Rang Shim Bombo Yeti corpse")]
|
||||
public class RangShimBomboYeti : BaseCreature
|
||||
{
|
||||
public override bool CanStealth { get { return true; } }
|
||||
|
||||
private Timer m_SoundTimer;
|
||||
private bool m_HasTeleportedAway;
|
||||
[Constructable]
|
||||
public RangShimBomboYeti()
|
||||
: base(AIType.AI_NecroMage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Name = "Rang Shim Bombo Yeti";
|
||||
//Title = "the Shadow Knight";
|
||||
Body = 241;
|
||||
Hue = 142;
|
||||
|
||||
SetStr(250);
|
||||
SetDex(100);
|
||||
SetInt(100, 120);
|
||||
|
||||
SetHits(3000);
|
||||
|
||||
SetDamage(15, 25);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 60);
|
||||
SetDamageType(ResistanceType.Cold, 40);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 90);
|
||||
SetResistance(ResistanceType.Fire, 65);
|
||||
SetResistance(ResistanceType.Cold, 75);
|
||||
SetResistance(ResistanceType.Poison, 75);
|
||||
SetResistance(ResistanceType.Energy, 55);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 100.0);
|
||||
SetSkill(SkillName.Tactics, 100.0);
|
||||
SetSkill(SkillName.MagicResist, 120.0);
|
||||
SetSkill(SkillName.Poisoning, 75.0, 85.0);
|
||||
SetSkill(SkillName.DetectHidden, 100.0);
|
||||
SetSkill(SkillName.Hiding, 100.0);
|
||||
SetSkill(SkillName.Magery, 100.0);
|
||||
SetSkill(SkillName.EvalInt, 100.0);
|
||||
SetSkill(SkillName.Meditation, 100.0);
|
||||
SetSkill(SkillName.Necromancy, 110.0);
|
||||
SetSkill(SkillName.SpiritSpeak, 110.0);
|
||||
SetSkill(SkillName.Focus, 120.0);
|
||||
|
||||
Fame = 25000;
|
||||
Karma = -25000;
|
||||
|
||||
VirtualArmor = 54;
|
||||
|
||||
SetWeaponAbility(WeaponAbility.ConcussionBlow);
|
||||
SetWeaponAbility(WeaponAbility.CrushingBlow);
|
||||
|
||||
PackItem( new RangShimBomboHead() );
|
||||
}
|
||||
|
||||
public RangShimBomboYeti(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
RevealingAction();
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
public override void OnDamagedBySpell(Mobile from)
|
||||
{
|
||||
RevealingAction();
|
||||
base.OnDamagedBySpell(from);
|
||||
}
|
||||
|
||||
public override bool IgnoreYoungProtection
|
||||
{
|
||||
get
|
||||
{
|
||||
return Core.ML;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanFlee { get { return true; } }
|
||||
public override TribeType Tribe { get { return TribeType.Undead; } }
|
||||
|
||||
public override OppositionGroup OppositionGroup
|
||||
{
|
||||
get
|
||||
{
|
||||
return OppositionGroup.FeyAndUndead;
|
||||
}
|
||||
}
|
||||
public override bool BardImmune
|
||||
{
|
||||
get
|
||||
{
|
||||
return !Core.SE;
|
||||
}
|
||||
}
|
||||
public override bool Unprovokable
|
||||
{
|
||||
get
|
||||
{
|
||||
return Core.SE;
|
||||
}
|
||||
}
|
||||
public override bool AreaPeaceImmune
|
||||
{
|
||||
get
|
||||
{
|
||||
return Core.SE;
|
||||
}
|
||||
}
|
||||
public override Poison PoisonImmune
|
||||
{
|
||||
get
|
||||
{
|
||||
return Poison.Lethal;
|
||||
}
|
||||
}
|
||||
public override int TreasureMapLevel
|
||||
{
|
||||
get
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x569;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xA2;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x158;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x25E;
|
||||
}
|
||||
|
||||
public override void OnCombatantChange()
|
||||
{
|
||||
base.OnCombatantChange();
|
||||
|
||||
if (Hidden && Combatant != null)
|
||||
Combatant = null;
|
||||
}
|
||||
|
||||
public virtual void SendTrackingSound()
|
||||
{
|
||||
if (Hidden)
|
||||
{
|
||||
Effects.PlaySound(Location, Map, 0x2C8);
|
||||
Combatant = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
Frozen = false;
|
||||
|
||||
if (m_SoundTimer != null)
|
||||
m_SoundTimer.Stop();
|
||||
|
||||
m_SoundTimer = null;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnThink()
|
||||
{
|
||||
if (!m_HasTeleportedAway && Hits < (HitsMax / 2))
|
||||
{
|
||||
Map map = Map;
|
||||
|
||||
if (map != null)
|
||||
{
|
||||
// try 10 times to find a teleport spot
|
||||
for (int i = 0; i < 10; ++i)
|
||||
{
|
||||
int x = X + (Utility.RandomMinMax(5, 10) * (Utility.RandomBool() ? 1 : -1));
|
||||
int y = Y + (Utility.RandomMinMax(5, 10) * (Utility.RandomBool() ? 1 : -1));
|
||||
int z = Z;
|
||||
|
||||
if (!map.CanFit(x, y, z, 16, false, false))
|
||||
continue;
|
||||
|
||||
Point3D from = Location;
|
||||
Point3D to = new Point3D(x, y, z);
|
||||
|
||||
if (!InLOS(to))
|
||||
continue;
|
||||
|
||||
Location = to;
|
||||
ProcessDelta();
|
||||
Hidden = true;
|
||||
Combatant = null;
|
||||
|
||||
Effects.SendLocationParticles(EffectItem.Create(from, map, EffectItem.DefaultDuration), 0x3728, 10, 10, 2023);
|
||||
Effects.SendLocationParticles(EffectItem.Create(to, map, EffectItem.DefaultDuration), 0x3728, 10, 10, 5023);
|
||||
|
||||
Effects.PlaySound(to, map, 0x1FE);
|
||||
|
||||
m_HasTeleportedAway = true;
|
||||
m_SoundTimer = Timer.DelayCall(TimeSpan.FromSeconds(5.0), TimeSpan.FromSeconds(2.5), new TimerCallback(SendTrackingSound));
|
||||
|
||||
Frozen = true;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
base.OnThink();
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write((int)0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user