hi everyone i want use the code of marlyandedsel for the soulshackle but dont work =( anyone can tell me what its the errro here? jeje
case 10405:
{
if (!attacked.ContainsFlag2((ushort)Enums.SkillIDs.So ulShackle))
{
PrepareSpell(spell, attacker.Owner);
if (attacked == null) return;
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = SpellID;
suse.SpellLevel = attacker.Owner.Spells[SpellID].Level;
suse.X = X;
suse.Y = Y;
suse.Targets.Add(attacked.UID, 1);
attacked.ShackleTime = 0;
//attacked.AddFlag2(Update.Flags.SoulShackle);
attacked.AddFlag2((ushort)Enums.SkillIDs.SoulShack le);
attacked.AddFlag2(Update.Flags2.Shackled);
attacked.ShackleTime = (byte)spell.Duration;
if (attacked.EntityFlag == EntityFlag.Player)
attacked.Owner.SendScreen(suse, true);
else
{
attacker.Owner.Send(new Message("You can't use SoulShackle on Monster", System.Drawing.Color.Red, Message.TopLeft));
return;
}
}
else
{
attacker.Owner.Send(new Message("You can't use on that target, it is already with soul shackle!", System.Drawing.Color.Red, Message.TopLeft));
return;
}
break;
}
thanks to marlyandedsel for this code