public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                return;
            }

            else
            {
                //veeery short // mohawk, krisna
                if (from.HairItemID == 0x2044 || from.HairItemID == 0x204A)
                {
                    from.SendMessage("You cannot cut your hair shorter. Try use a razor on it.");
                    return;
                }

                //short
                if (from.HairItemID == 0x2045 || from.HairItemID == 0x2047 || from.HairItemID == 0x203B || from.HairItemID == 0x2047 || from.HairItemID == 0x2FBF || from.HairItemID == 0x2FC0 || from.HairItemID == 0x2FC2 || from.HairItemID == 0x2FCE || from.HairItemID == 0x2FD0)
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You cut your hair.");
                    from.HairItemID = 0x2048;
                    from.PlaySound(0x249); // added sound
                    return;
                }

                //short / receeding

                if (from.HairItemID == 0x2048 || from.HairItemID == 0x2FC1 || from.HairItemID == 0x2FD1 || from.HairItemID == 0x203B) // receeding
                {
                    from.SendMessage("You cannot cut your hair shorter. Try use a razor on it.");
                    return;
                }

                if (from.HairItemID == 0)
                {
                    from.SendMessage("You cannot cut your hair shorter. There is none!");
                    return;
                }


                else
                {
                    Point3D scissorloc = from.Location;
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You cut your hair.");
                    from.HairItemID = 0x2045;
                    from.PlaySound(0x249);
                    return;
                }
            }
        }
Esempio n. 2
0
        public override void OnDoubleClick(Mobile from)
        {

            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                return;
            }

            else
            {
                //veeery short // mohawk, krisna
                if (from.HairItemID == 0x2044 || from.HairItemID == 0x204A)
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You shave your hair.");
                    from.HairItemID = 0; // no hair
                    return;
                }

                // Middle
                if (from.HairItemID == 0x2045 || from.HairItemID == 0x2047 || from.HairItemID == 0x203B || from.HairItemID == 0x2047 || from.HairItemID == 0x2FBF || from.HairItemID == 0x2FC0 || from.HairItemID == 0x2FC2 || from.HairItemID == 0x2FCE || from.HairItemID == 0x2FD0) 
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You shave your hair.");
                    from.HairItemID = 0x2044; // mohawk
                    return;
                }                

                // Short
                if (from.HairItemID == 0x2048 || from.HairItemID == 0x2FC1 || from.HairItemID == 0x2FD1 || from.HairItemID == 0x203B) // receeding
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You shave your hair.");
                    from.HairItemID = 0; // no hair
                    return;
                }

                if (from.HairItemID == 0)
                {
                    from.SendMessage("You cannot shave your hair. You got none!");
                    return;
                }

                else
                {
                    from.SendMessage("You cannot shave your hair. First cut it a bit.");
                    return;
                }
            }
        }
Esempio n. 3
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                return;
            }

            else
            {
                //veeery short // mohawk, krisna
                if (from.HairItemID == 0x2044 || from.HairItemID == 0x204A)
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You shave your hair.");
                    from.HairItemID = 0; // no hair
                    return;
                }

                // Middle
                if (from.HairItemID == 0x2045 || from.HairItemID == 0x2047 || from.HairItemID == 0x203B || from.HairItemID == 0x2047 || from.HairItemID == 0x2FBF || from.HairItemID == 0x2FC0 || from.HairItemID == 0x2FC2 || from.HairItemID == 0x2FCE || from.HairItemID == 0x2FD0)
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You shave your hair.");
                    from.HairItemID = 0x2044; // mohawk
                    return;
                }

                // Short
                if (from.HairItemID == 0x2048 || from.HairItemID == 0x2FC1 || from.HairItemID == 0x2FD1 || from.HairItemID == 0x203B) // receeding
                {
                    Point3D scissorloc = from.Location;                                                                               // added cuthair
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You shave your hair.");
                    from.HairItemID = 0; // no hair
                    return;
                }

                if (from.HairItemID == 0)
                {
                    from.SendMessage("You cannot shave your hair. You got none!");
                    return;
                }

                else
                {
                    from.SendMessage("You cannot shave your hair. First cut it a bit.");
                    return;
                }
            }
        }
Esempio n. 4
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                return;
            }
            if (from.FacialHairItemID != 0 && from.HairItemID != 0)
            {
                from.SendGump(new BarberScissorTarget(from));
                return;
            }

            //Shortest facial hairs // Goatee or Moustache //Full beard // Full beard w/ Moustache
            if (from.HairItemID == 0)
            {
                if (from.FacialHairItemID == 0x2040 || from.FacialHairItemID == 0x204D || from.FacialHairItemID == 0x2041 || from.FacialHairItemID == 0x203F || from.FacialHairItemID == 0x204B)
                {
                    from.SendMessage("You will need a razor to manage close facial hair.");
                    return;
                }
                //Long Beard // Long beard w/ moustache
                else if (from.FacialHairItemID == 0x203E || from.FacialHairItemID == 0x204C)
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You cut your beard short.");
                    from.FacialHairItemID = 0x204B; // Full beard w moustache
                    return;
                }
                else
                {
                    from.SendMessage("You've nothing to cut.");
                    return;
                }
            }
            else
            {
                //veeery short // mohawk, krisna
                if (from.HairItemID == 0x2044 || from.HairItemID == 0x204A)
                {
                    from.SendMessage("You cannot cut your hair shorter. Try use a razor on it.");
                    return;
                }

                //short
                if (from.HairItemID == 0x2045 || from.HairItemID == 0x2047 || from.HairItemID == 0x203B || from.HairItemID == 0x2047 || from.HairItemID == 0x2FBF || from.HairItemID == 0x2FC0 || from.HairItemID == 0x2FC2 || from.HairItemID == 0x2FCE || from.HairItemID == 0x2FD0)
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You cut your hair.");
                    from.HairItemID = 0x2048;
                    from.PlaySound(0x249); // added sound
                    return;
                }

                //short / receeding

                if (from.HairItemID == 0x2048 || from.HairItemID == 0x2FC1 || from.HairItemID == 0x2FD1 || from.HairItemID == 0x203B) // receeding
                {
                    from.SendMessage("You cannot cut your hair shorter. Try using a razor on it.");
                    return;
                }

                if (from.HairItemID == 0)
                {
                    from.SendMessage("You cannot cut your hair shorter. There is none!");
                    return;
                }


                else
                {
                    Point3D scissorloc = from.Location;
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You cut your hair.");
                    from.HairItemID = 0x2045;
                    from.PlaySound(0x249);
                    return;
                }
            }
        }
Esempio n. 5
0
        public override void OnResponse(NetState state, RelayInfo info)
        {
            if (info == null || state == null || state.Mobile == null)
            {
                return;
            }

            int radiostate = -1;

            if (info.Switches.Length > 0)
            {
                radiostate = info.Switches[0];
            }
            switch (info.ButtonID)
            {
            default:
            {
                if (radiostate == 1)
                {            // Hair
                             //veeery short // mohawk, krisna
                    if (state.Mobile.HairItemID == 0x2044 || state.Mobile.HairItemID == 0x204A)
                    {
                        state.Mobile.SendMessage("You cannot cut your hair shorter. Try use a razor on it.");
                        return;
                    }

                    //short
                    if (state.Mobile.HairItemID == 0x2045 || state.Mobile.HairItemID == 0x2047 || state.Mobile.HairItemID == 0x203B || state.Mobile.HairItemID == 0x2047 || state.Mobile.HairItemID == 0x2FBF || state.Mobile.HairItemID == 0x2FC0 || state.Mobile.HairItemID == 0x2FC2 || state.Mobile.HairItemID == 0x2FCE || state.Mobile.HairItemID == 0x2FD0)
                    {
                        Point3D scissorloc = state.Mobile.Location;         // added cuthair
                        CutHair cuthair    = new CutHair();
                        cuthair.Location = scissorloc;
                        cuthair.MoveToWorld(scissorloc, state.Mobile.Map);

                        state.Mobile.SendMessage("You cut your hair.");
                        state.Mobile.HairItemID = 0x2048;
                        state.Mobile.PlaySound(0x249);         // added sound
                        return;
                    }

                    //short / receeding

                    if (state.Mobile.HairItemID == 0x2048 || state.Mobile.HairItemID == 0x2FC1 || state.Mobile.HairItemID == 0x2FD1 || state.Mobile.HairItemID == 0x203B)         // receeding
                    {
                        state.Mobile.SendMessage("You cannot cut your hair shorter. Try using a razor on it.");
                        return;
                    }

                    if (state.Mobile.HairItemID == 0)
                    {
                        state.Mobile.SendMessage("You cannot cut your hair shorter. There is none!");
                        return;
                    }


                    else
                    {
                        Point3D scissorloc = state.Mobile.Location;
                        CutHair cuthair    = new CutHair();
                        cuthair.Location = scissorloc;
                        cuthair.MoveToWorld(scissorloc, state.Mobile.Map);

                        state.Mobile.SendMessage("You cut your hair.");
                        state.Mobile.HairItemID = 0x2045;
                        state.Mobile.PlaySound(0x249);
                        return;
                    }
                }
                else
                {           //Beard
                    if (state.Mobile.FacialHairItemID == 0x2040 || state.Mobile.FacialHairItemID == 0x204D || state.Mobile.FacialHairItemID == 0x2041 || state.Mobile.FacialHairItemID == 0x203F || state.Mobile.FacialHairItemID == 0x204B)
                    {
                        state.Mobile.SendMessage("You will need a razor to manage close facial hair.");
                        return;
                    }
                    //Long Beard // Long beard w/ moustache
                    else if (state.Mobile.FacialHairItemID == 0x203E || state.Mobile.FacialHairItemID == 0x204C)
                    {
                        Point3D scissorloc = state.Mobile.Location;         // added cuthair
                        CutHair cuthair    = new CutHair();
                        cuthair.Location = scissorloc;
                        cuthair.MoveToWorld(scissorloc, state.Mobile.Map);

                        state.Mobile.SendMessage("You cut your beard short.");
                        state.Mobile.FacialHairItemID = 0x204B;         // Full beard w moustache
                        return;
                    }
                    else
                    {
                        state.Mobile.SendMessage("You've nothing to cut.");
                        return;
                    }
                }
                break;
            }
            }
        }
        public override void OnDoubleClick(Mobile from)
        {

            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                return;
            }

            else
            {
                //veeery short // mohawk, krisna
                if (from.HairItemID == 0x2044 || from.HairItemID == 0x204A)
                {
                    from.SendMessage("You cannot cut your hair shorter. Try use a razor on it.");
                    return;
                }

                //short
                if (from.HairItemID == 0x2045 || from.HairItemID == 0x2047 || from.HairItemID == 0x203B || from.HairItemID == 0x2047 || from.HairItemID == 0x2FBF || from.HairItemID == 0x2FC0 || from.HairItemID == 0x2FC2 || from.HairItemID == 0x2FCE || from.HairItemID == 0x2FD0) 
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You cut your hair.");
                    from.HairItemID = 0x2048;
                    from.PlaySound(0x249); // added sound
                    return;
                }                

                //short / receeding

                if (from.HairItemID == 0x2048 || from.HairItemID == 0x2FC1 || from.HairItemID == 0x2FD1 || from.HairItemID == 0x203B) // receeding
                {

                    from.SendMessage("You cannot cut your hair shorter. Try use a razor on it.");
                    return;
                }

                if (from.HairItemID == 0)
                {
                    from.SendMessage("You cannot cut your hair shorter. There is none!");
                    return;
                }


                else
                {
                    Point3D scissorloc = from.Location;
                    CutHair cuthair = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You cut your hair.");
                    from.HairItemID = 0x2045;
                    from.PlaySound(0x249);
                    return;
                }
            }
        }
Esempio n. 7
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                return;
            }
            if (from.FacialHairItemID != 0 && from.HairItemID != 0)
            {
                from.SendGump(new BarberRazorTarget(from));
                return;
            }

            //Shortest facial hairs // Goatee or Moustache
            if (from.HairItemID == 0)
            {
                if (from.FacialHairItemID == 0x2040 || from.FacialHairItemID == 0x204D)
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You shave off all of your beard.");
                    from.FacialHairItemID = 0; // no hair
                    return;
                }
                //Full beard // Full beard w/ Moustache
                else if (from.FacialHairItemID == 0x2041 || from.FacialHairItemID == 0x203F || from.FacialHairItemID == 0x204B)
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You shave off some of your beard.");
                    from.FacialHairItemID = 0x204D; // moustache and goatee
                    return;
                }
                //Long Beard // Long beard w/ moustache
                else if (from.FacialHairItemID == 0x203E || from.FacialHairItemID == 0x204C)
                {
                    from.SendMessage("You will need to cut your beard before you can use a razor on it.");
                    return;
                }
                else
                {
                    from.SendMessage("You've nothing to shave.");
                    return;
                }
            }
            else
            {
                //veeery short // mohawk, krisna
                if (from.HairItemID == 0x2044 || from.HairItemID == 0x204A)
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You shave your hair.");
                    from.HairItemID = 0; // no hair
                    return;
                }

                // Middle
                if (from.HairItemID == 0x2045 || from.HairItemID == 0x2047 || from.HairItemID == 0x203B || from.HairItemID == 0x2047 || from.HairItemID == 0x2FBF || from.HairItemID == 0x2FC0 || from.HairItemID == 0x2FC2 || from.HairItemID == 0x2FCE || from.HairItemID == 0x2FD0)
                {
                    Point3D scissorloc = from.Location; // added cuthair
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You shave your hair.");
                    from.HairItemID = 0x2044; // mohawk
                    return;
                }

                // Short
                if (from.HairItemID == 0x2048 || from.HairItemID == 0x2FC1 || from.HairItemID == 0x2FD1 || from.HairItemID == 0x203B) // receeding
                {
                    Point3D scissorloc = from.Location;                                                                               // added cuthair
                    CutHair cuthair    = new CutHair();
                    cuthair.Location = scissorloc;
                    cuthair.MoveToWorld(scissorloc, from.Map);

                    from.SendMessage("You shave your hair.");
                    from.HairItemID = 0; // no hair
                    return;
                }

                if (from.HairItemID == 0)
                {
                    from.SendMessage("You cannot shave your hair. You are bald!");
                    return;
                }

                else
                {
                    from.SendMessage("You cannot shave your hair. First cut it a bit.");
                    return;
                }
            }
        }
Esempio n. 8
0
        public override void OnResponse(NetState state, RelayInfo info)
        {
            if (info == null || state == null || state.Mobile == null)
            {
                return;
            }

            int radiostate = -1;

            if (info.Switches.Length > 0)
            {
                radiostate = info.Switches[0];
            }
            switch (info.ButtonID)
            {
            default:
            {
                if (radiostate == 1)
                {            // Hair
                    //veeery short // mohawk, krisna
                    if (state.Mobile.HairItemID == 0x2044 || state.Mobile.HairItemID == 0x204A)
                    {
                        Point3D scissorloc = state.Mobile.Location;         // added cuthair
                        CutHair cuthair    = new CutHair();
                        cuthair.Location = scissorloc;
                        cuthair.MoveToWorld(scissorloc, state.Mobile.Map);

                        state.Mobile.SendMessage("You shave your hair.");
                        state.Mobile.HairItemID = 0;         // no hair
                        return;
                    }

                    // Middle
                    if (state.Mobile.HairItemID == 0x2045 || state.Mobile.HairItemID == 0x2047 || state.Mobile.HairItemID == 0x203B || state.Mobile.HairItemID == 0x2047 || state.Mobile.HairItemID == 0x2FBF || state.Mobile.HairItemID == 0x2FC0 || state.Mobile.HairItemID == 0x2FC2 || state.Mobile.HairItemID == 0x2FCE || state.Mobile.HairItemID == 0x2FD0)
                    {
                        Point3D scissorloc = state.Mobile.Location;         // added cuthair
                        CutHair cuthair    = new CutHair();
                        cuthair.Location = scissorloc;
                        cuthair.MoveToWorld(scissorloc, state.Mobile.Map);

                        state.Mobile.SendMessage("You shave your hair.");
                        state.Mobile.HairItemID = 0x2044;         // mohawk
                        return;
                    }

                    // Short
                    if (state.Mobile.HairItemID == 0x2048 || state.Mobile.HairItemID == 0x2FC1 || state.Mobile.HairItemID == 0x2FD1 || state.Mobile.HairItemID == 0x203B) // receeding
                    {
                        Point3D scissorloc = state.Mobile.Location;                                                                                                       // added cuthair
                        CutHair cuthair    = new CutHair();
                        cuthair.Location = scissorloc;
                        cuthair.MoveToWorld(scissorloc, state.Mobile.Map);

                        state.Mobile.SendMessage("You shave your hair.");
                        state.Mobile.HairItemID = 0;         // no hair
                        return;
                    }
                    else
                    {
                        state.Mobile.SendMessage("You cannot shave your hair. First cut it a bit.");
                        return;
                    }
                }
                else
                {
                    if (state.Mobile.FacialHairItemID == 0x2040 || state.Mobile.FacialHairItemID == 0x204D)
                    {
                        Point3D scissorloc = state.Mobile.Location;         // added cuthair
                        CutHair cuthair    = new CutHair();
                        cuthair.Location = scissorloc;
                        cuthair.MoveToWorld(scissorloc, state.Mobile.Map);

                        state.Mobile.SendMessage("You shave off all of your beard.");
                        state.Mobile.FacialHairItemID = 0;         // no hair
                        return;
                    }
                    else if (state.Mobile.FacialHairItemID == 0x2041 || state.Mobile.FacialHairItemID == 0x203F || state.Mobile.FacialHairItemID == 0x204B)
                    {
                        Point3D scissorloc = state.Mobile.Location;         // added cuthair
                        CutHair cuthair    = new CutHair();
                        cuthair.Location = scissorloc;
                        cuthair.MoveToWorld(scissorloc, state.Mobile.Map);

                        state.Mobile.SendMessage("You shave off some of your beard.");
                        state.Mobile.FacialHairItemID = 0x204D;         // moustache and goatee
                        return;
                    }
                    else if (state.Mobile.FacialHairItemID == 0x203E || state.Mobile.FacialHairItemID == 0x204C)
                    {
                        state.Mobile.SendMessage("You will need to cut your beard before you can use a razor on it.");
                        return;
                    }
                }
                break;
            }
            }
        }