help whit this code of soulshakle

08/03/2011 06:43 rockymiperro#1
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
08/03/2011 10:51 BaussHacker#2
Use [ CODE ] and try using breakpoints.

We cannot tell what's wrong as:
1. We do not know what source you use.
2. We do not know which functions, methods etc. has to be called.
3. We do not know what's exactly wrong with it, as you do not give us enough informations.
08/03/2011 16:21 rockymiperro#3
the error is pulling power but can not leave Reiver chains and ghost version 5375

nobody know this¿