public bool AddSpell(ushort spellid)
public bool RemoveSpell(Interfaces.ISkill spell) { if (Spells.ContainsKey(spell.ID)) { Spells.Remove(spell.ID); MsgActionProto Action = new MsgActionProto(); Action.UID = Entity.UID; Action.dwParam = spell.ID; Action.ID = 109; Send(MsgAction_TATA.SendPacket(Action)); Database.SkillTable.DeleteSpell(this, spell.ID); return true; } return false; }
public static void DeleteSpell(GameState client, ushort ID) { Rayzo.Database.MySqlCommand command = new Rayzo.Database.MySqlCommand(MySqlCommandType.DELETE); command.Delete("skills", "ID", (long)ID).And("EntityID", (long)client.Entity.UID).Execute(); }