#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
40
Scripts/Engines/Ethics/Hero/Ethic.cs
Normal file
40
Scripts/Engines/Ethics/Hero/Ethic.cs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Server.Factions;
|
||||
|
||||
namespace Server.Ethics.Hero
|
||||
{
|
||||
public sealed class HeroEthic : Ethic
|
||||
{
|
||||
public HeroEthic()
|
||||
{
|
||||
m_Definition = new EthicDefinition(
|
||||
0x482,
|
||||
"Hero", "(Hero)",
|
||||
"I will defend the virtues",
|
||||
new Power[]
|
||||
{
|
||||
new HolySense(),
|
||||
new HolyItem(),
|
||||
new SummonFamiliar(),
|
||||
new HolyBlade(),
|
||||
new Bless(),
|
||||
new HolyShield(),
|
||||
new HolySteed(),
|
||||
new HolyWord()
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
public override bool IsEligible( Mobile mob )
|
||||
{
|
||||
if ( mob.Kills >= 5 )
|
||||
return false;
|
||||
|
||||
Faction fac = Faction.Find( mob );
|
||||
|
||||
return ( fac is TrueBritannians || fac is CouncilOfMages );
|
||||
}
|
||||
}
|
||||
}
|
||||
86
Scripts/Engines/Ethics/Hero/Mobiles/HolyFamiliar.cs
Normal file
86
Scripts/Engines/Ethics/Hero/Mobiles/HolyFamiliar.cs
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Ethics;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a holy corpse" )]
|
||||
public class HolyFamiliar : BaseCreature
|
||||
{
|
||||
public override bool IsDispellable { get { return false; } }
|
||||
public override bool IsBondable { get { return false; } }
|
||||
|
||||
[Constructable]
|
||||
public HolyFamiliar()
|
||||
: base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a silver wolf";
|
||||
Body = 100;
|
||||
BaseSoundID = 0xE5;
|
||||
|
||||
SetStr( 96, 120 );
|
||||
SetDex( 81, 105 );
|
||||
SetInt( 36, 60 );
|
||||
|
||||
SetHits( 58, 72 );
|
||||
SetMana( 0 );
|
||||
|
||||
SetDamage( 11, 17 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 20, 25 );
|
||||
SetResistance( ResistanceType.Fire, 10, 20 );
|
||||
SetResistance( ResistanceType.Cold, 5, 10 );
|
||||
SetResistance( ResistanceType.Poison, 5, 10 );
|
||||
SetResistance( ResistanceType.Energy, 10, 15 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 57.6, 75.0 );
|
||||
SetSkill( SkillName.Tactics, 50.1, 70.0 );
|
||||
SetSkill( SkillName.Wrestling, 60.1, 80.0 );
|
||||
|
||||
Fame = 2500;
|
||||
Karma = 2500;
|
||||
|
||||
VirtualArmor = 22;
|
||||
|
||||
Tamable = false;
|
||||
ControlSlots = 1;
|
||||
}
|
||||
|
||||
public override int Meat { get { return 1; } }
|
||||
public override int Hides { get { return 7; } }
|
||||
public override FoodType FavoriteFood { get { return FoodType.Meat; } }
|
||||
public override PackInstinct PackInstinct { get { return PackInstinct.Canine; } }
|
||||
|
||||
public HolyFamiliar( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override string ApplyNameSuffix( string suffix )
|
||||
{
|
||||
if ( suffix.Length == 0 )
|
||||
suffix = Ethic.Hero.Definition.Adjunct.String;
|
||||
else
|
||||
suffix = String.Concat( suffix, " ", Ethic.Hero.Definition.Adjunct.String );
|
||||
|
||||
return base.ApplyNameSuffix( suffix );
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
91
Scripts/Engines/Ethics/Hero/Mobiles/HolySteed.cs
Normal file
91
Scripts/Engines/Ethics/Hero/Mobiles/HolySteed.cs
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Ethics;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a holy corpse" )]
|
||||
public class HolySteed : BaseMount
|
||||
{
|
||||
public override bool IsDispellable { get{ return false; } }
|
||||
public override bool IsBondable { get { return false; } }
|
||||
|
||||
public override bool HasBreath { get { return true; } }
|
||||
public override bool CanBreath { get { return true; } }
|
||||
|
||||
[Constructable]
|
||||
public HolySteed()
|
||||
: base( "a silver steed", 0x75, 0x3EA8, AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
SetStr( 496, 525 );
|
||||
SetDex( 86, 105 );
|
||||
SetInt( 86, 125 );
|
||||
|
||||
SetHits( 298, 315 );
|
||||
|
||||
SetDamage( 16, 22 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 40 );
|
||||
SetDamageType( ResistanceType.Fire, 40 );
|
||||
SetDamageType( ResistanceType.Energy, 20 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 55, 65 );
|
||||
SetResistance( ResistanceType.Fire, 30, 40 );
|
||||
SetResistance( ResistanceType.Cold, 30, 40 );
|
||||
SetResistance( ResistanceType.Poison, 30, 40 );
|
||||
SetResistance( ResistanceType.Energy, 20, 30 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 25.1, 30.0 );
|
||||
SetSkill( SkillName.Tactics, 97.6, 100.0 );
|
||||
SetSkill( SkillName.Wrestling, 80.5, 92.5 );
|
||||
|
||||
Fame = 14000;
|
||||
Karma = 14000;
|
||||
|
||||
VirtualArmor = 60;
|
||||
|
||||
Tamable = false;
|
||||
ControlSlots = 1;
|
||||
}
|
||||
|
||||
public override FoodType FavoriteFood { get { return FoodType.FruitsAndVegies | FoodType.GrainsAndHay; } }
|
||||
|
||||
public HolySteed( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override string ApplyNameSuffix( string suffix )
|
||||
{
|
||||
if ( suffix.Length == 0 )
|
||||
suffix = Ethic.Hero.Definition.Adjunct.String;
|
||||
else
|
||||
suffix = String.Concat( suffix, " ", Ethic.Hero.Definition.Adjunct.String );
|
||||
|
||||
return base.ApplyNameSuffix( suffix );
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( Ethic.Find( from ) != Ethic.Hero )
|
||||
from.SendMessage( "You may not ride this steed." );
|
||||
else
|
||||
base.OnDoubleClick( from );
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
80
Scripts/Engines/Ethics/Hero/Powers/Bless.cs
Normal file
80
Scripts/Engines/Ethics/Hero/Powers/Bless.cs
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Server.Spells;
|
||||
|
||||
namespace Server.Ethics.Hero
|
||||
{
|
||||
public sealed class Bless : Power
|
||||
{
|
||||
public Bless()
|
||||
{
|
||||
m_Definition = new PowerDefinition(
|
||||
15,
|
||||
"Bless",
|
||||
"Erstok Ontawl",
|
||||
""
|
||||
);
|
||||
}
|
||||
|
||||
public override void BeginInvoke( Player from )
|
||||
{
|
||||
from.Mobile.BeginTarget( 12, true, Targeting.TargetFlags.None, new TargetStateCallback( Power_OnTarget ), from );
|
||||
from.Mobile.SendMessage( "Where do you wish to bless?" );
|
||||
}
|
||||
|
||||
private void Power_OnTarget( Mobile fromMobile, object obj, object state )
|
||||
{
|
||||
Player from = state as Player;
|
||||
|
||||
IPoint3D p = obj as IPoint3D;
|
||||
|
||||
if ( p == null )
|
||||
return;
|
||||
|
||||
if ( !CheckInvoke( from ) )
|
||||
return;
|
||||
|
||||
bool powerFunctioned = false;
|
||||
|
||||
SpellHelper.GetSurfaceTop( ref p );
|
||||
|
||||
foreach ( Mobile mob in from.Mobile.GetMobilesInRange( 6 ) )
|
||||
{
|
||||
if ( mob != from.Mobile && SpellHelper.ValidIndirectTarget( from.Mobile, mob ) )
|
||||
continue;
|
||||
|
||||
if ( mob.GetStatMod( "Holy Bless" ) != null )
|
||||
continue;
|
||||
|
||||
if ( !from.Mobile.CanBeBeneficial( mob, false ) )
|
||||
continue;
|
||||
|
||||
from.Mobile.DoBeneficial( mob );
|
||||
|
||||
mob.AddStatMod( new StatMod( StatType.All, "Holy Bless", 10, TimeSpan.FromMinutes( 30.0 ) ) );
|
||||
|
||||
mob.FixedParticles( 0x373A, 10, 15, 5018, EffectLayer.Waist );
|
||||
mob.PlaySound( 0x1EA );
|
||||
|
||||
powerFunctioned = true;
|
||||
}
|
||||
|
||||
if ( powerFunctioned )
|
||||
{
|
||||
SpellHelper.Turn( from.Mobile, p );
|
||||
|
||||
Effects.PlaySound( p, from.Mobile.Map, 0x299 );
|
||||
|
||||
from.Mobile.LocalOverheadMessage( Server.Network.MessageType.Regular, 0x3B2, false, "You consecrate the area." );
|
||||
|
||||
FinishInvoke( from );
|
||||
}
|
||||
else
|
||||
{
|
||||
from.Mobile.FixedEffect( 0x3735, 6, 30 );
|
||||
from.Mobile.PlaySound( 0x5C );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
23
Scripts/Engines/Ethics/Hero/Powers/HolyBlade.cs
Normal file
23
Scripts/Engines/Ethics/Hero/Powers/HolyBlade.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Server.Ethics.Hero
|
||||
{
|
||||
public sealed class HolyBlade : Power
|
||||
{
|
||||
public HolyBlade()
|
||||
{
|
||||
m_Definition = new PowerDefinition(
|
||||
10,
|
||||
"Holy Blade",
|
||||
"Erstok Reyam",
|
||||
""
|
||||
);
|
||||
}
|
||||
|
||||
public override void BeginInvoke( Player from )
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
71
Scripts/Engines/Ethics/Hero/Powers/HolyItem.cs
Normal file
71
Scripts/Engines/Ethics/Hero/Powers/HolyItem.cs
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Ethics.Hero
|
||||
{
|
||||
public sealed class HolyItem : Power
|
||||
{
|
||||
public HolyItem()
|
||||
{
|
||||
m_Definition = new PowerDefinition(
|
||||
5,
|
||||
"Holy Item",
|
||||
"Vidda K'balc",
|
||||
""
|
||||
);
|
||||
}
|
||||
|
||||
public override void BeginInvoke( Player from )
|
||||
{
|
||||
from.Mobile.BeginTarget( 12, false, Targeting.TargetFlags.None, new TargetStateCallback( Power_OnTarget ), from );
|
||||
from.Mobile.SendMessage( "Which item do you wish to imbue?" );
|
||||
}
|
||||
|
||||
private void Power_OnTarget( Mobile fromMobile, object obj, object state )
|
||||
{
|
||||
Player from = state as Player;
|
||||
|
||||
Item item = obj as Item;
|
||||
|
||||
if ( item == null )
|
||||
{
|
||||
from.Mobile.LocalOverheadMessage( Server.Network.MessageType.Regular, 0x3B2, false, "You may not imbue that." );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( item.Parent != from.Mobile )
|
||||
{
|
||||
from.Mobile.LocalOverheadMessage( Server.Network.MessageType.Regular, 0x3B2, false, "You may only imbue items you are wearing." );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ( item.SavedFlags & 0x300 ) != 0 )
|
||||
{
|
||||
from.Mobile.LocalOverheadMessage( Server.Network.MessageType.Regular, 0x3B2, false, "That has already beem imbued." );
|
||||
return;
|
||||
}
|
||||
|
||||
bool canImbue = ( item is Spellbook || item is BaseClothing || item is BaseArmor || item is BaseWeapon ) && ( item.Name == null );
|
||||
|
||||
if ( canImbue )
|
||||
{
|
||||
if ( !CheckInvoke( from ) )
|
||||
return;
|
||||
|
||||
item.Hue = Ethic.Hero.Definition.PrimaryHue;
|
||||
item.SavedFlags |= 0x100;
|
||||
|
||||
from.Mobile.FixedEffect( 0x375A, 10, 20 );
|
||||
from.Mobile.PlaySound( 0x209 );
|
||||
|
||||
FinishInvoke( from );
|
||||
}
|
||||
else
|
||||
{
|
||||
from.Mobile.LocalOverheadMessage( Server.Network.MessageType.Regular, 0x3B2, false, "You may not imbue that." );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
94
Scripts/Engines/Ethics/Hero/Powers/HolySense.cs
Normal file
94
Scripts/Engines/Ethics/Hero/Powers/HolySense.cs
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Server.Ethics.Hero
|
||||
{
|
||||
public sealed class HolySense : Power
|
||||
{
|
||||
public HolySense()
|
||||
{
|
||||
m_Definition = new PowerDefinition(
|
||||
0,
|
||||
"Holy Sense",
|
||||
"Drewrok Erstok",
|
||||
""
|
||||
);
|
||||
}
|
||||
|
||||
public override void BeginInvoke( Player from )
|
||||
{
|
||||
Ethic opposition = Ethic.Evil;
|
||||
|
||||
int enemyCount = 0;
|
||||
|
||||
int maxRange = 18 + from.Power;
|
||||
|
||||
Player primary = null;
|
||||
|
||||
foreach ( Player pl in opposition.Players )
|
||||
{
|
||||
Mobile mob = pl.Mobile;
|
||||
|
||||
if ( mob == null || mob.Map != from.Mobile.Map || !mob.Alive )
|
||||
continue;
|
||||
|
||||
if ( !mob.InRange( from.Mobile, Math.Max( 18, maxRange - pl.Power ) ) )
|
||||
continue;
|
||||
|
||||
if ( primary == null || pl.Power > primary.Power )
|
||||
primary = pl;
|
||||
|
||||
++enemyCount;
|
||||
}
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
sb.Append( "You sense " );
|
||||
sb.Append( enemyCount == 0 ? "no" : enemyCount.ToString() );
|
||||
sb.Append( enemyCount == 1 ? " enemy" : " enemies" );
|
||||
|
||||
if ( primary != null )
|
||||
{
|
||||
sb.Append( ", and a strong presense" );
|
||||
|
||||
switch ( from.Mobile.GetDirectionTo( primary.Mobile ) )
|
||||
{
|
||||
case Direction.West:
|
||||
sb.Append( " to the west." );
|
||||
break;
|
||||
case Direction.East:
|
||||
sb.Append( " to the east." );
|
||||
break;
|
||||
case Direction.North:
|
||||
sb.Append( " to the north." );
|
||||
break;
|
||||
case Direction.South:
|
||||
sb.Append( " to the south." );
|
||||
break;
|
||||
|
||||
case Direction.Up:
|
||||
sb.Append( " to the north-west." );
|
||||
break;
|
||||
case Direction.Down:
|
||||
sb.Append( " to the south-east." );
|
||||
break;
|
||||
case Direction.Left:
|
||||
sb.Append( " to the south-west." );
|
||||
break;
|
||||
case Direction.Right:
|
||||
sb.Append( " to the north-east." );
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.Append( '.' );
|
||||
}
|
||||
|
||||
from.Mobile.LocalOverheadMessage( Server.Network.MessageType.Regular, 0x59, false, sb.ToString() );
|
||||
|
||||
FinishInvoke( from );
|
||||
}
|
||||
}
|
||||
}
|
||||
34
Scripts/Engines/Ethics/Hero/Powers/HolyShield.cs
Normal file
34
Scripts/Engines/Ethics/Hero/Powers/HolyShield.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Server.Ethics.Hero
|
||||
{
|
||||
public sealed class HolyShield : Power
|
||||
{
|
||||
public HolyShield()
|
||||
{
|
||||
m_Definition = new PowerDefinition(
|
||||
20,
|
||||
"Holy Shield",
|
||||
"Erstok K'blac",
|
||||
""
|
||||
);
|
||||
}
|
||||
|
||||
public override void BeginInvoke( Player from )
|
||||
{
|
||||
if ( from.IsShielded )
|
||||
{
|
||||
from.Mobile.LocalOverheadMessage( Server.Network.MessageType.Regular, 0x3B2, false, "You are already under the protection of a holy shield." );
|
||||
return;
|
||||
}
|
||||
|
||||
from.BeginShield();
|
||||
|
||||
from.Mobile.LocalOverheadMessage( Server.Network.MessageType.Regular, 0x3B2, false, "You are now under the protection of a holy shield." );
|
||||
|
||||
FinishInvoke( from );
|
||||
}
|
||||
}
|
||||
}
|
||||
47
Scripts/Engines/Ethics/Hero/Powers/HolySteed.cs
Normal file
47
Scripts/Engines/Ethics/Hero/Powers/HolySteed.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Ethics.Hero
|
||||
{
|
||||
public sealed class HolySteed : Power
|
||||
{
|
||||
public HolySteed()
|
||||
{
|
||||
m_Definition = new PowerDefinition(
|
||||
30,
|
||||
"Holy Steed",
|
||||
"Trubechs Yeliab",
|
||||
""
|
||||
);
|
||||
}
|
||||
|
||||
public override void BeginInvoke( Player from )
|
||||
{
|
||||
if ( from.Steed != null && from.Steed.Deleted )
|
||||
from.Steed = null;
|
||||
|
||||
if ( from.Steed != null )
|
||||
{
|
||||
from.Mobile.LocalOverheadMessage( Server.Network.MessageType.Regular, 0x3B2, false, "You already have a holy steed." );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ( from.Mobile.Followers + 1 ) > from.Mobile.FollowersMax )
|
||||
{
|
||||
from.Mobile.SendLocalizedMessage( 1049645 ); // You have too many followers to summon that creature.
|
||||
return;
|
||||
}
|
||||
|
||||
Mobiles.HolySteed steed = new Mobiles.HolySteed();
|
||||
|
||||
if ( Mobiles.BaseCreature.Summon( steed, from.Mobile, from.Mobile.Location, 0x217, TimeSpan.FromHours( 1.0 ) ) )
|
||||
{
|
||||
from.Steed = steed;
|
||||
|
||||
FinishInvoke( from );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
23
Scripts/Engines/Ethics/Hero/Powers/HolyWord.cs
Normal file
23
Scripts/Engines/Ethics/Hero/Powers/HolyWord.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Server.Ethics.Hero
|
||||
{
|
||||
public sealed class HolyWord : Power
|
||||
{
|
||||
public HolyWord()
|
||||
{
|
||||
m_Definition = new PowerDefinition(
|
||||
100,
|
||||
"Holy Word",
|
||||
"Erstok Oostrac",
|
||||
""
|
||||
);
|
||||
}
|
||||
|
||||
public override void BeginInvoke( Player from )
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
47
Scripts/Engines/Ethics/Hero/Powers/SummonFamiliar.cs
Normal file
47
Scripts/Engines/Ethics/Hero/Powers/SummonFamiliar.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Ethics.Hero
|
||||
{
|
||||
public sealed class SummonFamiliar : Power
|
||||
{
|
||||
public SummonFamiliar()
|
||||
{
|
||||
m_Definition = new PowerDefinition(
|
||||
5,
|
||||
"Summon Familiar",
|
||||
"Trubechs Vingir",
|
||||
""
|
||||
);
|
||||
}
|
||||
|
||||
public override void BeginInvoke( Player from )
|
||||
{
|
||||
if ( from.Familiar != null && from.Familiar.Deleted )
|
||||
from.Familiar = null;
|
||||
|
||||
if ( from.Familiar != null )
|
||||
{
|
||||
from.Mobile.LocalOverheadMessage( Server.Network.MessageType.Regular, 0x3B2, false, "You already have a holy familiar." );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ( from.Mobile.Followers + 1 ) > from.Mobile.FollowersMax )
|
||||
{
|
||||
from.Mobile.SendLocalizedMessage( 1049645 ); // You have too many followers to summon that creature.
|
||||
return;
|
||||
}
|
||||
|
||||
HolyFamiliar familiar = new HolyFamiliar();
|
||||
|
||||
if ( Mobiles.BaseCreature.Summon( familiar, from.Mobile, from.Mobile.Location, 0x217, TimeSpan.FromHours( 1.0 ) ) )
|
||||
{
|
||||
from.Familiar = familiar;
|
||||
|
||||
FinishInvoke( from );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue