Esempio n. 1
0
 public Skill(ZoneCharacter c, ushort id)
 {
     DatabaseSkill db = new DatabaseSkill();
     db.Owner = c.ID;
     db.SkillID = (short)id;
     db.Upgrades = 0;
     db.IsPassive = false;
     db.Character = c.Character;
     Program.CharDBManager.GetClient().ExecuteQuery("INSERT INTO Skillist (ID,Owner,SkillID,Upgrades,IsPassive) VALUES ('" + c.Character.ID + "','" + db.SkillID + "','" + db.Upgrades + "','" + Convert.ToInt32(IsPassive) + "')");
     skill = db;
 }
Esempio n. 2
0
 public Skill(DatabaseSkill skill)
 {
     this.skill = skill;
 }