Esempio n. 1
0
 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;
 }
Esempio n. 2
0
        public void addProfile(string name)
        {
            if (subProfiles.ContainsKey(name))
            {
                subProfiles.Remove(name);
            }

            subProfiles.Add(name, SkillProfileHelper.getProfile(name));
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 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);
     }
 }
Esempio n. 5
0
        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();
        }
Esempio n. 6
0
 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;
     }
 }
Esempio n. 7
0
        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);
            }
        }
Esempio n. 8
0
 public BaseTMSkillTicket(string name) : base(name)
 {
     this.ItemID  = 0x14F0;
     this.Profile = (SuperSkillProfile)SkillProfileHelper.getProfile(SkillSettings.CCProfileName);
     this.Skin    = SkillSettings.CCSkinName;
 }
Esempio n. 9
0
 public BaseTMSkillTicket(int itemid) : base(itemid)
 {
     this.ItemID  = itemid;
     this.Profile = (SuperSkillProfile)SkillProfileHelper.getProfile(SkillSettings.CCProfileName);
     this.Skin    = SkillSettings.CCSkinName;
 }
Esempio n. 10
0
 public virtual void setProfile(string profile)
 {
     Profile            = (SuperSkillProfile)SkillProfileHelper.getProfile(profile);
     this.HasProfileSet = true;
 }