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(); }