1st that the skill
//Tranquility
case 10425:
{
if (attacked == null) return;
if (CanUseSpell(spell, attacker.Owner))
{
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.ToxicFogLeft = 0;
attacked.ShackleTime = 0;
attacked.NoDrugsTime = 0;
attacked.RemoveFlag2(Update.Flags2.SoulShackle);
if (attacked.EntityFlag == EntityFlag.Player)
{
SyncPacket packet3 = new SyncPacket
{
Identifier = attacked.UID,
Count = 2,
Type = ShekoProject.Network.GamePackets.SyncPacket.SyncTy pe.StatusFlag,
StatusFlag1 = (ulong)attacked.StatusFlag,
StatusFlag2 = (ulong)attacked.StatusFlag2,
Unknown1 = 0x36,
StatusFlagOffset = 0x6f,
Time = 0,
Value = 0,
Level = spell.Level
};
attacked.Owner.Send((byte[])packet3);
}
if (attacked.EntityFlag == EntityFlag.Player)
attacked.Owner.SendScreen(suse, true);
else
attacked.MonsterInfo.SendScreen(suse);
}
attacker.AttackPacket = null;
break;
}
2nd i will upload the source for now and link it after 5 min
this is the source and thanks alot for help bro
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]