public BaseTMSkillTicket(Mobile owner) : base("A Skill Ticket") { this.ItemID = 0x14F0; this.Profile = (SuperSkillProfile)SkillProfileHelper.getProfile(SkillSettings.CCProfileName); this.Skin = SkillSettings.CCSkinName; this.Owner = owner; }
public void addProfile(string name) { if (subProfiles.ContainsKey(name)) { subProfiles.Remove(name); } subProfiles.Add(name, SkillProfileHelper.getProfile(name)); }
internal static TMSkillSession SessionGenerate(CommandEventArgs e) { BaseTMSkillItem item = new BaseTMSkillItem(1001); item.Profile = (SuperSkillProfile)SkillProfileHelper.getProfile(SkillSettings.CCProfileName); item.Skin = CCSkinName; TMSkillSession Session = new TMSkillSession(e.Mobile, item); return(Session); }
public static void SessionTest_OnCommand(CommandEventArgs e) { if (QueryPageHelper.PluginExists("TMMaster")) { BaseTMSkillItem item = new BaseTMSkillItem(1001); item.Profile = (SuperSkillProfile)SkillProfileHelper.getProfile(SkillSettings.CCProfileName); item.Skin = CCSkinName; TMSkillSession Session = new TMSkillSession(e.Mobile, item); } }
public static void SkillSession_OnCommand(CommandEventArgs e) { BaseTMSkillItem item = new BaseTMSkillItem(0xedd); item.Profile = (SuperSkillProfile)SkillProfileHelper.getProfile("defaultInternal"); item.Skin = CCSkinName; TMSkillSession session = new TMSkillSession(e.Mobile, item); session.Start(); }
public static void SkillTest_OnCommand(CommandEventArgs e) { //ListTestGump g = new ListTestGump(); if (QueryPageHelper.PluginExists("TMSkill")) { Dictionary <string, object> t = new Dictionary <string, object>(); t.Add("Skin", SkinHelper.getSkin(SkillSettings.ControlSkinName)); t.Add("Mobile", e.Mobile); SuperSkillProfile p = (SuperSkillProfile)SkillProfileHelper.getProfile("Default Profile"); SkillProfile sp = p.getProfile(0); t.Add("Profile", sp); TMQueryPage pg = new TMQueryPage("TMSS Skill Gump", t); //e.Mobile.SendGump(pg); } else { DoTell("Error when creating Skill Gump. Plugin does not exist."); return; } }
public override void Deserialize(GenericReader reader) { try { base.Deserialize(reader); int version = reader.ReadInt(); if (version == 5) { HasProfileSet = reader.ReadBool(); SkillSettings.DoTell2("" + HasProfileSet); if (HasProfileSet) { string temp = reader.ReadString(); if (temp != null) { SkillSettings.DoTell2(temp); if (SkillProfileHelper.ProfileExists(temp)) { Profile = (SuperSkillProfile)SkillProfileHelper.getProfile(temp); } } else { HasProfileSet = false; } } Skin = reader.ReadString(); } else { SkillSettings.DoTell2("Version is unknown."); } } catch (Exception e) { SkillSettings.DoTell("W. T. F. " + e); } }
public BaseTMSkillTicket(string name) : base(name) { this.ItemID = 0x14F0; this.Profile = (SuperSkillProfile)SkillProfileHelper.getProfile(SkillSettings.CCProfileName); this.Skin = SkillSettings.CCSkinName; }
public BaseTMSkillTicket(int itemid) : base(itemid) { this.ItemID = itemid; this.Profile = (SuperSkillProfile)SkillProfileHelper.getProfile(SkillSettings.CCProfileName); this.Skin = SkillSettings.CCSkinName; }
public virtual void setProfile(string profile) { Profile = (SuperSkillProfile)SkillProfileHelper.getProfile(profile); this.HasProfileSet = true; }