#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
184
Scripts/Mobiles/Monsters/LBR/Jukas/ChaosDragoon.cs
Normal file
184
Scripts/Mobiles/Monsters/LBR/Jukas/ChaosDragoon.cs
Normal file
|
|
@ -0,0 +1,184 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Misc;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a chaos dragoon corpse" )]
|
||||
public class ChaosDragoon : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public ChaosDragoon() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.15, 0.4 )
|
||||
{
|
||||
Name = "a chaos dragoon";
|
||||
Body = 0x190;
|
||||
Hue = Utility.RandomSkinHue();
|
||||
|
||||
SetStr( 176, 225 );
|
||||
SetDex( 81, 95 );
|
||||
SetInt( 61, 85 );
|
||||
|
||||
SetHits( 176, 225 );
|
||||
|
||||
SetDamage( 24, 26 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 25 );
|
||||
SetDamageType( ResistanceType.Fire, 25 );
|
||||
SetDamageType( ResistanceType.Cold, 25 );
|
||||
SetDamageType( ResistanceType.Energy, 25 );
|
||||
|
||||
//SetResistance( ResistanceType.Physical, 25, 38 );
|
||||
//SetResistance( ResistanceType.Fire, 25, 38 );
|
||||
//SetResistance( ResistanceType.Cold, 25, 38 );
|
||||
//SetResistance( ResistanceType.Poison, 25, 38 );
|
||||
//SetResistance( ResistanceType.Energy, 25, 38 );
|
||||
|
||||
SetSkill( SkillName.Fencing, 77.6, 92.5 );
|
||||
SetSkill( SkillName.Healing, 60.3, 90.0 );
|
||||
SetSkill( SkillName.Macing, 77.6, 92.5 );
|
||||
SetSkill( SkillName.Anatomy, 77.6, 87.5 );
|
||||
SetSkill( SkillName.MagicResist, 77.6, 97.5 );
|
||||
SetSkill( SkillName.Swords, 77.6, 92.5 );
|
||||
SetSkill( SkillName.Tactics, 77.6, 87.5 );
|
||||
|
||||
Fame = 5000;
|
||||
Karma = -5000;
|
||||
|
||||
CraftResource res = CraftResource.None;
|
||||
|
||||
switch (Utility.Random( 6 ))
|
||||
{
|
||||
case 0: res = CraftResource.BlackScales; break;
|
||||
case 1: res = CraftResource.RedScales; break;
|
||||
case 2: res = CraftResource.BlueScales; break;
|
||||
case 3: res = CraftResource.YellowScales; break;
|
||||
case 4: res = CraftResource.GreenScales; break;
|
||||
case 5: res = CraftResource.WhiteScales; break;
|
||||
}
|
||||
|
||||
BaseWeapon melee = null;
|
||||
|
||||
switch (Utility.Random( 3 ))
|
||||
{
|
||||
case 0: melee = new Kryss(); break;
|
||||
case 1: melee = new Broadsword(); break;
|
||||
case 2: melee = new Katana(); break;
|
||||
}
|
||||
|
||||
melee.Movable = false;
|
||||
AddItem( melee );
|
||||
|
||||
DragonHelm helm = new DragonHelm();
|
||||
helm.Resource = res;
|
||||
helm.Movable = false;
|
||||
AddItem( helm );
|
||||
|
||||
DragonChest chest = new DragonChest();
|
||||
chest.Resource = res;
|
||||
chest.Movable = false;
|
||||
AddItem( chest );
|
||||
|
||||
DragonArms arms = new DragonArms();
|
||||
arms.Resource = res;
|
||||
arms.Movable = false;
|
||||
AddItem( arms );
|
||||
|
||||
DragonGloves gloves = new DragonGloves();
|
||||
gloves.Resource = res;
|
||||
gloves.Movable = false;
|
||||
AddItem( gloves );
|
||||
|
||||
DragonLegs legs = new DragonLegs();
|
||||
legs.Resource = res;
|
||||
legs.Movable = false;
|
||||
AddItem( legs );
|
||||
|
||||
ChaosShield shield = new ChaosShield();
|
||||
shield.Movable = false;
|
||||
AddItem( shield );
|
||||
|
||||
AddItem( new Shirt() );
|
||||
AddItem( new Boots() );
|
||||
|
||||
int amount = Utility.RandomMinMax( 1, 3 );
|
||||
|
||||
switch ( res )
|
||||
{
|
||||
case CraftResource.BlackScales: AddItem( new BlackScales( amount ) ); break;
|
||||
case CraftResource.RedScales: AddItem( new RedScales( amount ) ); break;
|
||||
case CraftResource.BlueScales: AddItem( new BlueScales( amount ) ); break;
|
||||
case CraftResource.YellowScales: AddItem( new YellowScales( amount ) ); break;
|
||||
case CraftResource.GreenScales: AddItem( new GreenScales( amount ) ); break;
|
||||
case CraftResource.WhiteScales: AddItem( new WhiteScales( amount ) ); break;
|
||||
}
|
||||
|
||||
new SwampDragon().Rider = this;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x2CE;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x2CC;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x2D1;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x2C8;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
//AddLoot( LootPack.Gems );
|
||||
}
|
||||
|
||||
public override bool HasBreath{ get{ return true; } }
|
||||
public override bool AutoDispel{ get{ return true; } }
|
||||
public override bool BardImmune{ get{ return !Core.AOS; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
public override bool ShowFameTitle{ get{ return false; } }
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
IMount mount = this.Mount;
|
||||
|
||||
if ( mount != null )
|
||||
mount.Rider = null;
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
|
||||
public override void AlterMeleeDamageTo( Mobile to, ref int damage )
|
||||
{
|
||||
if ( to is Dragon || to is WhiteWyrm || to is SwampDragon || to is Drake || to is Nightmare || to is Hiryu || to is LesserHiryu || to is Daemon )
|
||||
damage *= 3;
|
||||
}
|
||||
|
||||
public ChaosDragoon( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
206
Scripts/Mobiles/Monsters/LBR/Jukas/ChaosDragoonElite.cs
Normal file
206
Scripts/Mobiles/Monsters/LBR/Jukas/ChaosDragoonElite.cs
Normal file
|
|
@ -0,0 +1,206 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Misc;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName("a chaos dragoon elite corpse")]
|
||||
public class ChaosDragoonElite : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public ChaosDragoonElite()
|
||||
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.15, 0.4)
|
||||
{
|
||||
Name = "a chaos dragoon elite";
|
||||
Body = 0x190;
|
||||
Hue = Utility.RandomSkinHue();
|
||||
|
||||
SetStr(276, 350);
|
||||
SetDex(66, 90);
|
||||
SetInt(126, 150);
|
||||
|
||||
SetHits(276, 350);
|
||||
|
||||
SetDamage(29, 34);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
/*SetResistance(ResistanceType.Physical, 45, 55);
|
||||
SetResistance(ResistanceType.Fire, 15, 25);
|
||||
SetResistance(ResistanceType.Cold, 50);
|
||||
SetResistance(ResistanceType.Poison, 25, 35);
|
||||
SetResistance(ResistanceType.Energy, 25, 35);*/
|
||||
|
||||
|
||||
SetSkill(SkillName.Tactics, 80.1, 100.0);
|
||||
SetSkill(SkillName.MagicResist, 100.1, 110.0);
|
||||
SetSkill(SkillName.Anatomy, 80.1, 100.0);
|
||||
SetSkill(SkillName.Magery, 85.1, 100.0);
|
||||
SetSkill(SkillName.EvalInt, 85.1, 100.0);
|
||||
SetSkill(SkillName.Swords, 72.5, 95.0);
|
||||
SetSkill(SkillName.Fencing, 85.1, 100);
|
||||
SetSkill(SkillName.Macing, 85.1, 100);
|
||||
|
||||
Fame = 8000;
|
||||
Karma = -8000;
|
||||
|
||||
CraftResource res = CraftResource.None;;
|
||||
|
||||
switch (Utility.Random(6))
|
||||
{
|
||||
case 0: res = CraftResource.BlackScales; break;
|
||||
case 1: res = CraftResource.RedScales; break;
|
||||
case 2: res = CraftResource.BlueScales; break;
|
||||
case 3: res = CraftResource.YellowScales; break;
|
||||
case 4: res = CraftResource.GreenScales; break;
|
||||
case 5: res = CraftResource.WhiteScales; break;
|
||||
}
|
||||
|
||||
BaseWeapon melee = null;
|
||||
|
||||
switch (Utility.Random(3))
|
||||
{
|
||||
case 0: melee = new Kryss(); break;
|
||||
case 1: melee = new Broadsword(); break;
|
||||
case 2: melee = new Katana(); break;
|
||||
}
|
||||
|
||||
melee.Movable = false;
|
||||
AddItem(melee);
|
||||
|
||||
DragonChest Tunic = new DragonChest();
|
||||
Tunic.Resource = res;
|
||||
Tunic.Movable = false;
|
||||
AddItem(Tunic);
|
||||
|
||||
DragonLegs Legs = new DragonLegs();
|
||||
Legs.Resource = res;
|
||||
Legs.Movable = false;
|
||||
AddItem(Legs);
|
||||
|
||||
DragonArms Arms = new DragonArms();
|
||||
Arms.Resource = res;
|
||||
Arms.Movable = false;
|
||||
AddItem(Arms);
|
||||
|
||||
DragonGloves Gloves = new DragonGloves();
|
||||
Gloves.Resource = res;
|
||||
Gloves.Movable = false;
|
||||
AddItem(Gloves);
|
||||
|
||||
DragonHelm Helm = new DragonHelm();
|
||||
Helm.Resource = res;
|
||||
Helm.Movable = false;
|
||||
AddItem(Helm);
|
||||
|
||||
ChaosShield shield = new ChaosShield();
|
||||
shield.Movable = false;
|
||||
AddItem(shield);
|
||||
|
||||
AddItem(new Boots(0x455));
|
||||
AddItem(new Shirt(Utility.RandomMetalHue()));
|
||||
|
||||
int amount = Utility.RandomMinMax(1, 3);
|
||||
|
||||
switch (res)
|
||||
{
|
||||
case CraftResource.BlackScales: AddItem(new BlackScales(amount)); break;
|
||||
case CraftResource.RedScales: AddItem(new RedScales(amount)); break;
|
||||
case CraftResource.BlueScales: AddItem(new BlueScales(amount)); break;
|
||||
case CraftResource.YellowScales: AddItem(new YellowScales(amount)); break;
|
||||
case CraftResource.GreenScales: AddItem(new GreenScales(amount)); break;
|
||||
case CraftResource.WhiteScales: AddItem(new WhiteScales(amount)); break;
|
||||
}
|
||||
switch (Utility.Random(9))
|
||||
{
|
||||
case 0: res = CraftResource.DullCopper; break;
|
||||
case 1: res = CraftResource.ShadowIron; break;
|
||||
case 2: res = CraftResource.Copper; break;
|
||||
case 3: res = CraftResource.Bronze; break;
|
||||
case 4: res = CraftResource.Gold; break;
|
||||
case 5: res = CraftResource.Agapite; break;
|
||||
case 6: res = CraftResource.Verite; break;
|
||||
case 7: res = CraftResource.Valorite; break;
|
||||
case 8: res = CraftResource.Iron; break;
|
||||
}
|
||||
|
||||
SwampDragon mt = new SwampDragon();
|
||||
mt.HasBarding = true;
|
||||
mt.BardingResource = res;
|
||||
mt.BardingHP = mt.BardingMaxHP;
|
||||
mt.Rider = this;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x2CE;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x2CC;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x2D1;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x2C8;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
AddLoot(LootPack.Gems);
|
||||
}
|
||||
|
||||
public override bool HasBreath { get { return true; } }
|
||||
public override bool AutoDispel { get { return true; } }
|
||||
public override bool BardImmune { get { return !Core.AOS; } }
|
||||
public override bool CanRummageCorpses { get { return true; } }
|
||||
public override bool AlwaysMurderer { get { return true; } }
|
||||
public override bool ShowFameTitle { get { return false; } }
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
IMount mount = this.Mount;
|
||||
|
||||
if ( mount != null )
|
||||
{
|
||||
if ( mount is SwampDragon )
|
||||
((SwampDragon)mount).HasBarding = false;
|
||||
|
||||
mount.Rider = null;
|
||||
}
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
|
||||
public override void AlterMeleeDamageTo(Mobile to, ref int damage)
|
||||
{
|
||||
if ( to is Dragon || to is WhiteWyrm || to is SwampDragon || to is Drake || to is Nightmare || to is Hiryu || to is LesserHiryu || to is Daemon )
|
||||
damage *= 3;
|
||||
}
|
||||
|
||||
public ChaosDragoonElite(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();
|
||||
}
|
||||
}
|
||||
}
|
||||
128
Scripts/Mobiles/Monsters/LBR/Jukas/JukaLord.cs
Normal file
128
Scripts/Mobiles/Monsters/LBR/Jukas/JukaLord.cs
Normal file
|
|
@ -0,0 +1,128 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server.Items;
|
||||
using Server.Targeting;
|
||||
using Server.Misc;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a juka corpse" )] // Why is this 'juka' and warriors 'jukan' ? :-(
|
||||
public class JukaLord : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public JukaLord() : base( AIType.AI_Archer, FightMode.Closest, 10, 3, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a juka lord";
|
||||
Body = 766;
|
||||
|
||||
SetStr( 401, 500 );
|
||||
SetDex( 81, 100 );
|
||||
SetInt( 151, 200 );
|
||||
|
||||
SetHits( 241, 300 );
|
||||
|
||||
SetDamage( 10, 12 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 40, 50 );
|
||||
SetResistance( ResistanceType.Fire, 45, 50 );
|
||||
SetResistance( ResistanceType.Cold, 40, 50 );
|
||||
SetResistance( ResistanceType.Poison, 20, 25 );
|
||||
SetResistance( ResistanceType.Energy, 40, 50 );
|
||||
|
||||
SetSkill( SkillName.Anatomy, 90.1, 100.0 );
|
||||
SetSkill( SkillName.Archery, 95.1, 100.0 );
|
||||
SetSkill( SkillName.Healing, 80.1, 100.0 );
|
||||
SetSkill( SkillName.MagicResist, 120.1, 130.0 );
|
||||
SetSkill( SkillName.Swords, 90.1, 100.0 );
|
||||
SetSkill( SkillName.Tactics, 95.1, 100.0 );
|
||||
SetSkill( SkillName.Wrestling, 90.1, 100.0 );
|
||||
|
||||
Fame = 15000;
|
||||
Karma = -15000;
|
||||
|
||||
VirtualArmor = 28;
|
||||
|
||||
Container pack = new Backpack();
|
||||
|
||||
pack.DropItem( new Arrow( Utility.RandomMinMax( 25, 35 ) ) );
|
||||
pack.DropItem( new Arrow( Utility.RandomMinMax( 25, 35 ) ) );
|
||||
pack.DropItem( new Bandage( Utility.RandomMinMax( 5, 15 ) ) );
|
||||
pack.DropItem( new Bandage( Utility.RandomMinMax( 5, 15 ) ) );
|
||||
pack.DropItem( Loot.RandomGem() );
|
||||
pack.DropItem( new ArcaneGem() );
|
||||
|
||||
PackItem( pack );
|
||||
|
||||
AddItem( new JukaBow() );
|
||||
|
||||
// TODO: Bandage self
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
AddLoot( LootPack.Average );
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
if ( from != null && !willKill && amount > 5 && from.Player && 5 > Utility.Random( 100 ) )
|
||||
{
|
||||
string[] toSay = new string[]
|
||||
{
|
||||
"{0}!! You will have to do better than that!",
|
||||
"{0}!! Prepare to meet your doom!",
|
||||
"{0}!! My armies will crush you!",
|
||||
"{0}!! You will pay for that!"
|
||||
};
|
||||
|
||||
this.Say( true, String.Format( toSay[Utility.Random( toSay.Length )], from.Name ) );
|
||||
}
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x262;
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x263;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x1D0;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x28D;
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
public override bool BardImmune{ get{ return !Core.AOS; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override int Meat{ get{ return 1; } }
|
||||
|
||||
public JukaLord( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
209
Scripts/Mobiles/Monsters/LBR/Jukas/JukaMage.cs
Normal file
209
Scripts/Mobiles/Monsters/LBR/Jukas/JukaMage.cs
Normal file
|
|
@ -0,0 +1,209 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server.Items;
|
||||
using Server.Targeting;
|
||||
using Server.Misc;
|
||||
using Server.Spells;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a juka corpse" )] // Why is this 'juka' and warriors 'jukan' ? :-(
|
||||
public class JukaMage : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public JukaMage() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a juka mage";
|
||||
Body = 765;
|
||||
|
||||
SetStr( 201, 300 );
|
||||
SetDex( 71, 90 );
|
||||
SetInt( 451, 500 );
|
||||
|
||||
SetHits( 121, 180 );
|
||||
|
||||
SetDamage( 4, 10 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 20, 30 );
|
||||
SetResistance( ResistanceType.Fire, 35, 45 );
|
||||
SetResistance( ResistanceType.Cold, 30, 40 );
|
||||
SetResistance( ResistanceType.Poison, 10, 20 );
|
||||
SetResistance( ResistanceType.Energy, 35, 45 );
|
||||
|
||||
SetSkill( SkillName.Anatomy, 80.1, 90.0 );
|
||||
SetSkill( SkillName.EvalInt, 80.2, 100.0 );
|
||||
SetSkill( SkillName.Magery, 99.1, 100.0 );
|
||||
SetSkill( SkillName.Meditation, 80.2, 100.0 );
|
||||
SetSkill( SkillName.MagicResist, 140.1, 150.0 );
|
||||
SetSkill( SkillName.Tactics, 80.1, 90.0 );
|
||||
SetSkill( SkillName.Wrestling, 80.1, 90.0 );
|
||||
|
||||
Fame = 15000;
|
||||
Karma = -15000;
|
||||
|
||||
VirtualArmor = 16;
|
||||
|
||||
Container bag = new Bag();
|
||||
|
||||
int count = Utility.RandomMinMax( 10, 20 );
|
||||
|
||||
for ( int i = 0; i < count; ++i )
|
||||
{
|
||||
Item item = Loot.RandomReagent();
|
||||
|
||||
if ( item == null )
|
||||
continue;
|
||||
|
||||
if ( !bag.TryDropItem( this, item, false ) )
|
||||
item.Delete();
|
||||
}
|
||||
|
||||
PackItem( bag );
|
||||
|
||||
PackItem( new ArcaneGem() );
|
||||
|
||||
if ( Core.ML && Utility.RandomDouble() < .33 )
|
||||
PackItem( Engines.Plants.Seed.RandomPeculiarSeed(4) );
|
||||
|
||||
m_NextAbilityTime = DateTime.UtcNow + TimeSpan.FromSeconds( Utility.RandomMinMax( 2, 5 ) );
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Average, 2 );
|
||||
AddLoot( LootPack.MedScrolls, 2 );
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x1AC;
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x1CD;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x1D0;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x28D;
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override int Meat{ get{ return 1; } }
|
||||
|
||||
private DateTime m_NextAbilityTime;
|
||||
|
||||
public override void OnThink()
|
||||
{
|
||||
if ( DateTime.UtcNow >= m_NextAbilityTime )
|
||||
{
|
||||
JukaLord toBuff = null;
|
||||
|
||||
foreach ( Mobile m in this.GetMobilesInRange( 8 ) )
|
||||
{
|
||||
if ( m is JukaLord && IsFriend( m ) && m.Combatant != null && CanBeBeneficial( m ) && m.CanBeginAction( typeof( JukaMage ) ) && InLOS( m ) )
|
||||
{
|
||||
toBuff = (JukaLord)m;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ( toBuff != null )
|
||||
{
|
||||
if ( CanBeBeneficial( toBuff ) && toBuff.BeginAction( typeof( JukaMage ) ) )
|
||||
{
|
||||
m_NextAbilityTime = DateTime.UtcNow + TimeSpan.FromSeconds( Utility.RandomMinMax( 30, 60 ) );
|
||||
|
||||
toBuff.Say( true, "Give me the power to destroy my enemies!" );
|
||||
this.Say( true, "Fight well my lord!" );
|
||||
|
||||
DoBeneficial( toBuff );
|
||||
|
||||
object[] state = new object[]{ toBuff, toBuff.HitsMaxSeed, toBuff.RawStr, toBuff.RawDex };
|
||||
|
||||
SpellHelper.Turn( this, toBuff );
|
||||
|
||||
int toScale = toBuff.HitsMaxSeed;
|
||||
|
||||
if ( toScale > 0 )
|
||||
{
|
||||
toBuff.HitsMaxSeed += AOS.Scale( toScale, 75 );
|
||||
toBuff.Hits += AOS.Scale( toScale, 75 );
|
||||
}
|
||||
|
||||
toScale = toBuff.RawStr;
|
||||
|
||||
if ( toScale > 0 )
|
||||
toBuff.RawStr += AOS.Scale( toScale, 50 );
|
||||
|
||||
toScale = toBuff.RawDex;
|
||||
|
||||
if ( toScale > 0 )
|
||||
{
|
||||
toBuff.RawDex += AOS.Scale( toScale, 50 );
|
||||
toBuff.Stam += AOS.Scale( toScale, 50 );
|
||||
}
|
||||
|
||||
toBuff.Hits = toBuff.Hits;
|
||||
toBuff.Stam = toBuff.Stam;
|
||||
|
||||
toBuff.FixedParticles( 0x375A, 10, 15, 5017, EffectLayer.Waist );
|
||||
toBuff.PlaySound( 0x1EE );
|
||||
|
||||
Timer.DelayCall( TimeSpan.FromSeconds( 20.0 ), new TimerStateCallback( Unbuff ), state );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_NextAbilityTime = DateTime.UtcNow + TimeSpan.FromSeconds( Utility.RandomMinMax( 2, 5 ) );
|
||||
}
|
||||
}
|
||||
|
||||
base.OnThink();
|
||||
}
|
||||
|
||||
private void Unbuff( object state )
|
||||
{
|
||||
object[] states = (object[])state;
|
||||
|
||||
JukaLord toDebuff = (JukaLord)states[0];
|
||||
|
||||
toDebuff.EndAction( typeof( JukaMage ) );
|
||||
|
||||
if ( toDebuff.Deleted )
|
||||
return;
|
||||
|
||||
toDebuff.HitsMaxSeed = (int)states[1];
|
||||
toDebuff.RawStr = (int)states[2];
|
||||
toDebuff.RawDex = (int)states[3];
|
||||
|
||||
toDebuff.Hits = toDebuff.Hits;
|
||||
toDebuff.Stam = toDebuff.Stam;
|
||||
}
|
||||
|
||||
public JukaMage( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
128
Scripts/Mobiles/Monsters/LBR/Jukas/JukaWarrior.cs
Normal file
128
Scripts/Mobiles/Monsters/LBR/Jukas/JukaWarrior.cs
Normal file
|
|
@ -0,0 +1,128 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server.Items;
|
||||
using Server.Targeting;
|
||||
using Server.Misc;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a jukan corpse" )]
|
||||
public class JukaWarrior : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public JukaWarrior() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a juka warrior";
|
||||
Body = 764;
|
||||
|
||||
SetStr( 251, 350 );
|
||||
SetDex( 61, 80 );
|
||||
SetInt( 101, 150 );
|
||||
|
||||
SetHits( 151, 210 );
|
||||
|
||||
SetDamage( 7, 9 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 40, 50 );
|
||||
SetResistance( ResistanceType.Fire, 30, 40 );
|
||||
SetResistance( ResistanceType.Cold, 25, 35 );
|
||||
SetResistance( ResistanceType.Poison, 10, 20 );
|
||||
SetResistance( ResistanceType.Energy, 10, 20 );
|
||||
|
||||
SetSkill( SkillName.Anatomy, 80.1, 90.0 );
|
||||
SetSkill( SkillName.Fencing, 80.1, 90.0 );
|
||||
SetSkill( SkillName.Macing, 80.1, 90.0 );
|
||||
SetSkill( SkillName.MagicResist, 120.1, 130.0 );
|
||||
SetSkill( SkillName.Swords, 80.1, 90.0 );
|
||||
SetSkill( SkillName.Tactics, 80.1, 90.0 );
|
||||
SetSkill( SkillName.Wrestling, 80.1, 90.0 );
|
||||
|
||||
Fame = 10000;
|
||||
Karma = -10000;
|
||||
|
||||
VirtualArmor = 22;
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
PackItem( new ArcaneGem() );
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Average );
|
||||
AddLoot( LootPack.Meager );
|
||||
AddLoot( LootPack.Gems, 1 );
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x1AC;
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x1CD;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x1D0;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x28D;
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override int Meat{ get{ return 1; } }
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
|
||||
if ( 0.2 < Utility.RandomDouble() )
|
||||
return;
|
||||
|
||||
switch ( Utility.Random( 3 ) )
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
defender.SendLocalizedMessage( 1004014 ); // You have been stunned!
|
||||
defender.Freeze( TimeSpan.FromSeconds( 4.0 ) );
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
defender.SendAsciiMessage( "You have been hit by a paralyzing blow!" );
|
||||
defender.Freeze( TimeSpan.FromSeconds( 3.0 ) );
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
AOS.Damage( defender, this, Utility.Random( 10, 5 ), 100, 0, 0, 0, 0 );
|
||||
defender.SendAsciiMessage( "You have been hit by a critical strike!" );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public JukaWarrior( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue