Пример #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;
 }
Пример #2
0
        public void addProfile(string name)
        {
            if (subProfiles.ContainsKey(name))
            {
                subProfiles.Remove(name);
            }

            subProfiles.Add(name, SkillProfileHelper.getProfile(name));
        }
Пример #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);
        }
Пример #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);
     }
 }
Пример #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();
        }
Пример #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;
     }
 }
Пример #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);
            }
        }
Пример #8
0
 public BaseTMSkillTicket(string name) : base(name)
 {
     this.ItemID  = 0x14F0;
     this.Profile = (SuperSkillProfile)SkillProfileHelper.getProfile(SkillSettings.CCProfileName);
     this.Skin    = SkillSettings.CCSkinName;
 }
Пример #9
0
 public BaseTMSkillTicket(int itemid) : base(itemid)
 {
     this.ItemID  = itemid;
     this.Profile = (SuperSkillProfile)SkillProfileHelper.getProfile(SkillSettings.CCProfileName);
     this.Skin    = SkillSettings.CCSkinName;
 }
Пример #10
0
 public virtual void setProfile(string profile)
 {
     Profile            = (SuperSkillProfile)SkillProfileHelper.getProfile(profile);
     this.HasProfileSet = true;
 }