/// <summary> /// Delete a skill from Special skill list /// </summary> /// <param name="pc">Player</param> /// <param name="skillid">Skill to be removed</param> public static void SendDeleteSpecial(ActorPC pc, uint skillid) { ActorEventHandlers.PC_EventHandler eh = (ActorEventHandlers.PC_EventHandler)pc.e; Packets.Server.RemoveSpecialSkill p1 = new SagaMap.Packets.Server.RemoveSpecialSkill(); p1.SetSkill(skillid); eh.C.netIO.SendPacket(p1, eh.C.SessionID); }
//09 0E public void OnRemoveSpecialSkill(Packets.Client.RemoveSpecialSkill p) { if (this.Char.SpecialSkills.ContainsKey(p.GetSkillID())) { uint id = p.GetSkillID(); SkillInfo info; info = Char.SpecialSkills[id]; info.slot = 0; Char.InactiveSkills.Add(id, info); Char.SpecialSkills.Remove(id); Packets.Server.RemoveSpecialSkill p1 = new SagaMap.Packets.Server.RemoveSpecialSkill(); p1.SetSkill(id); this.netIO.SendPacket(p1, this.SessionID); } }