RedBeard
Member
Here is what I have so far :
Error is in BlackCloud section
Error is in BlackCloud section
Errors:
+ Custom Systems/DreadWarHorseTemp.cs:
CS0246: Line 115: The type or namespace name 'mobile' could not be found (ar
e you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
Code:
using System;
using Server;
using Server.Items;
using Server.Mobiles;
using System.Collections;
using System.Collections.Generic;
using Server.Network;
using Server.Spells;
namespace Server.Mobiles
{
[CorpseName( "a dread warhorse corpse" )]
public class DreadWarHorseTemp : BaseMount
{
[Constructable]
public DreadWarHorseTemp() : this( "a dread warhorse" )
{
}
[Constructable]
public DreadWarHorseTemp( string name ) : base( name, 0x74, 0x3EA7, AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
BodyValue = 177;
BaseSoundID = 0xA8;
Hue = 1175;
SetStr( 502, 551 );
SetDex( 89, 123 );
SetInt( 100, 159 );
SetHits( 555, 648 );
SetDamage( 20, 26 );
SetDamageType( ResistanceType.Physical, 40 );
SetDamageType( ResistanceType.Poison, 20 );
SetDamageType( ResistanceType.Energy, 40 );
SetResistance( ResistanceType.Physical, 65, 75 );
SetResistance( ResistanceType.Fire, 20, 40 );
SetResistance( ResistanceType.Cold, 20, 40 );
SetResistance( ResistanceType.Poison, 50, 60 );
SetResistance( ResistanceType.Energy, 40, 50 );
SetSkill( SkillName.EvalInt, 30.5, 50.0 );
SetSkill( SkillName.Magery, 42.4, 50.0 );
SetSkill( SkillName.MagicResist, 92.6, 96.4 );
SetSkill( SkillName.Tactics, 97.6, 109.1 );
SetSkill( SkillName.Wrestling, 80.5, 95.8 );
Fame = 14000;
Karma = -14000;
VirtualArmor = 60;
Tamable = true;
ControlSlots = 3;
MinTameSkill = 105.0;
m_NextAbilityTime = DateTime.Now + TimeSpan.FromSeconds( Utility.RandomMinMax( 5, 30 ) );
}
public override void GenerateLoot()
{
AddLoot( LootPack.Rich );
AddLoot( LootPack.Average );
AddLoot( LootPack.LowScrolls );
AddLoot( LootPack.Potions );
}
public override int GetAngerSound()
{
if ( !Controlled )
return 0x16A;
return base.GetAngerSound();
}
private DateTime m_NextAbilityTime;
public override void OnActionCombat()
{
Mobile combatant = Combatant;
if ( DateTime.Now < m_NextAbilityTime || combatant == null || combatant.Deleted || combatant.Map != Map || !InRange( combatant, 3 ) || !CanBeHarmful( combatant ) || !InLOS( combatant ) )
return;
m_NextAbilityTime = DateTime.Now + TimeSpan.FromSeconds( Utility.RandomMinMax( 5, 30 ) );
if ( Utility.RandomBool() )
{
this.FixedParticles( 0x376A, 9, 32, 0x2539, EffectLayer.LeftHand );
this.PlaySound( 0x1DE );
foreach ( Mobile m in this.GetMobilesInRange( 2 ) )
{
if ( m != this && IsEnemy( m ) )
{
m.ApplyPoison( this, Poison.Deadly );
}
}
}
}
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override int Meat{ get{ return 5; } }
public override int Hides{ get{ return 10; } }
public override HideType HideType{ get{ return HideType.Barbed; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override bool CanAngerOnTame { get { return true; } }
#region [ BlackCloud Ability ]
public virtual bool BlackCloud (mobile from) //(Basecreature m)
{
from.Effects.SendLocationEffect(new Point3D(from.X + 1, from.Y, from.Z + 4), from.Map, 0x3728, 13);
from.Effects.SendLocationEffect(new Point3D(from.X + 1, from.Y, from.Z), from.Map, 0x3728, 13);
from.Effects.SendLocationEffect(new Point3D(from.X + 1, from.Y, from.Z - 4), from.Map, 0x3728, 13);
from.Effects.SendLocationEffect(new Point3D(from.X, from.Y + 1, from.Z + 4), from.Map, 0x3728, 13);
from.Effects.SendLocationEffect(new Point3D(from.X, from.Y + 1, from.Z), from.Map, 0x3728, 13);
from.Effects.SendLocationEffect(new Point3D(from.X, from.Y + 1, from.Z - 4), from.Map, 0x3728, 13);
from.Effects.SendLocationEffect(new Point3D(from.X + 1, from.Y + 1, from.Z + 11), from.Map, 0x3728, 13);
from.Effects.SendLocationEffect(new Point3D(from.X + 1, from.Y + 1, from.Z + 7), from.Map, 0x3728, 13);
from.Effects.SendLocationEffect(new Point3D(from.X + 1, from.Y + 1, from.Z + 3), from.Map, 0x3728, 13);
from.Effects.SendLocationEffect(new Point3D(from.X + 1, from.Y + 1, from.Z - 1), from.Map, 0x3728, 13);
from.PlaySound(0x228);
from.Hidden = true;
break;
}
#endregion
#region [OnSpeech]
public override void OnSpeech(SpeechEventArgs e)
{
if (this.Rider == null || attacker == null) //sanity
return false;
if (!e.Handled && e.Mobile.InRange(this, 6))
{
int[] keywords = e.Keywords;
string speech = e.Speech;
if ((e.HasKeyword("Trick") == true))
{
if (this.Controlled == false)
{
e.Handled = this.BlackCloud(this);
}
else
{
this.Say("You must be mounted to perform this ability.");
}
}
}
base.OnSpeech(e);
}
#endregion
public DreadWarHorseTemp( Serial serial ) : base( serial )
{
}
public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
}
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();
}
}
}
Last edited: