private Bittiez.Aura.Aura EffectAura;
public class EffectCloak : BaseCloak
{
private Bittiez.Aura.Aura EffectAura;
private void AuraSetup()
{
EffectAura = new Bittiez.Aura.Aura(this, 8, Bittiez.Aura.AURATYPE.EFFECTAURA);
EffectAura.AffectsSelf = true;
}
AuraSetup();
to the constructor method of your class: [Constructable]
public EffectCloak(int hue)
: base(0x1515, hue)
{
AuraSetup();
Weight = 5.0;
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
AuraSetup();
}
public override void OnSectorActivate()
{
EffectAura.EnableAura();
base.OnSectorActivate();
}
public override void OnSectorDeactivate()
{
EffectAura.DisableAura();
base.OnSectorDeactivate();
}
public override void OnDoubleClick(Mobile from)
{
if (EffectAura.ToggleAura()) from.SendMessage("Aura on"); else from.SendMessage("Aura off");
base.OnDoubleClick(from);
}
EffectAura.EnableAura();
inside the AuraSetup() method.We use essential cookies to make this site work, and optional cookies to enhance your experience.