public BuffForQuestReward(L2Npc npc, L2Character target, int skillId) { _npc = npc; Cha = target; _skillId = skillId; _skill = SkillTable.Instance.Get(skillId); Cha.BroadcastPacket(new MagicSkillUse(npc, Cha, _skill, _skill.SkillHitTime)); new Thread(Run).Start(); }
private void CalcEffect(L2Character character) { if (EffectId == -1) { return; } Skill skill = SkillTable.Instance.Get(EffectId, EffectLv); if (skill == null) { Log.Error($"ItemHandler: item {_id} with null effect {EffectId}/{EffectLv}"); return; } character.AddAbnormal(skill, character, true, false); character.BroadcastPacket(new MagicSkillUse(character, character, skill, 100)); }