Exemplo n.º 1
0
        public void OnChop(Mobile from)
        {
            int testID = ((Item)i_leaves).ItemID;

            switch (testID)
            {
            case 0xD96:
            case 0xD9A:
            {
                AppleTree thistree = i_leaves as AppleTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }

            case 0xDAA:
            case 0xDA6:
            {
                PearTree thistree = i_leaves as PearTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }

            case 0xD9E:
            case 0xDA2:
            {
                PeachTree thistree = i_leaves as PeachTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }
            }
        }
Exemplo n.º 2
0
        public void OnChop(Mobile from)
        {
            int testID  = ((Item)i_leaves).ItemID;
            int testHue = ((Item)i_leaves).Hue;

            switch (testID)
            {
            case 0xD96:
            case 0xD9A:
            {
                AppleTree thistree = i_leaves as AppleTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }

            case 0xDAA:
            {
                if (i_leaves.Hue == 0)
                {
                    PearTree thistree = i_leaves as PearTree;
                    if (thistree != null)
                    {
                        thistree.Chop(from);
                    }
                }
                if (i_leaves.Hue == 0x21A)
                {
                    AvocadoTree thistree = i_leaves as AvocadoTree;
                    if (thistree != null)
                    {
                        thistree.Chop(from);
                    }
                }
                break;
            }

            case 0xD9E:
            {
                PeachTree thistree = i_leaves as PeachTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }

            case 0xCE5:
            {
                OrangeTree thistree = i_leaves as OrangeTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }

            case 0xC9E:
            {
                if (i_leaves.Hue == 0x592)
                {
                    BlackberryTree thistree = i_leaves as BlackberryTree;
                    if (thistree != null)
                    {
                        thistree.Chop(from);
                    }
                }
                //{
                //other bushes using same itemid go here
                //BlackberryTree thistree = i_leaves as BlackberryTree;
                //if (thistree != null)
                //    thistree.Chop(from);
                //}
                break;
            }

            case 0x2471:    //note using orential cherry
            case 0x2472:
            case 0x2473:
            case 0x2474:
            case 0x2475:
            {
                CherryTree thistree = i_leaves as CherryTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }
            }
        }
Exemplo n.º 3
0
        public void OnChop(Mobile from)
        {
            int testID = ((Item)i_leaves).ItemID;

            switch (testID)
            {
            case 0xD96:
            case 0xD9A:
            {
                AppleTree thistree = i_leaves as AppleTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }

            case 0xDAA:
            case 0xDA6:
            {
                PearTree thistree = i_leaves as PearTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }

            case 0xD9E:
            case 0xDA2:
            {
                PeachTree thistree = i_leaves as PeachTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }

            case 0xCAA:
            case 0xCA8:
            {
                BananaTree thistree = i_leaves as BananaTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }

            case 0xC96:
            case 0xC95:
            {
                CocoTree thistree = i_leaves as CocoTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }

            case 0xC9E:
                //case 0xC9E:
            {
                OnaxTree thistree = i_leaves as OnaxTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }

            case 0xD37:
            case 0xD38:
            {
                KatylTree thistree = i_leaves as KatylTree;
                if (thistree != null)
                {
                    thistree.Chop(from);
                }
                break;
            }
            }
        }