Пример #1
0
        public void OnOptionSelected(Mobile from, int choice)
        {
            _Direction = (MetalLadderType)choice;

            if (!Deleted)
            {
                base.OnDoubleClick(from);
            }
        }
Пример #2
0
        public MetalLadderAddon2(MetalLadderType type)
        {
            switch (type)
            {
            case MetalLadderType.SouthCastle:
                AddComponent(new LocalizedAddonComponent(0x3F28, 1076791), 0, 1, 28);
                AddComponent(new LocalizedAddonComponent(0xA559, 1076791), 0, 2, 20);
                AddComponent(new AddonComponent(0xA557), 0, 0, 0);
                break;

            case MetalLadderType.EastCastle:
                AddComponent(new LocalizedAddonComponent(0x3F28, 1076791), 1, 0, 28);
                AddComponent(new LocalizedAddonComponent(0xA55A, 1076791), 2, 0, 20);
                AddComponent(new AddonComponent(0xA558), 0, 0, 0);
                break;

            case MetalLadderType.NorthCastle:
                AddComponent(new LocalizedAddonComponent(0x3F28, 1076791), 0, -1, 28);
                AddComponent(new LocalizedAddonComponent(0x3DB6, 1076791), 0, -2, 20);
                AddComponent(new LocalizedAddonComponent(0xA55C, 1076791), 0, 0, 0);
                break;

            case MetalLadderType.WestCastle:
                AddComponent(new LocalizedAddonComponent(0x3F28, 1076791), -1, 0, 28);
                AddComponent(new LocalizedAddonComponent(0x3DB7, 1076791), -2, 0, 20);
                AddComponent(new LocalizedAddonComponent(0xA55B, 1076791), 0, 0, 0);
                break;

            case MetalLadderType.South:
                AddComponent(new LocalizedAddonComponent(0xA557, 1076287), 0, 0, 0);
                break;

            case MetalLadderType.East:
                AddComponent(new LocalizedAddonComponent(0xA558, 1076287), 0, 0, 0);
                break;

            case MetalLadderType.North:
                AddComponent(new LocalizedAddonComponent(0xA55C, 1076287), 0, 0, 0);
                break;

            case MetalLadderType.West:
                AddComponent(new LocalizedAddonComponent(0xA55B, 1076287), 0, 0, 0);
                break;
            }
        }
Пример #3
0
        public MetalLadderAddon(MetalLadderType type)
        {
            switch (type)
            {
            case MetalLadderType.SouthCastle:
                AddComponent(new LocalizedAddonComponent(0xA559, 1076791), 0, 2, 20);
                AddComponent(new AddonComponent(0xA557), 0, 0, 0);
                break;

            case MetalLadderType.EastCastle:
                AddComponent(new LocalizedAddonComponent(0xA55A, 1076791), 2, 0, 20);
                AddComponent(new AddonComponent(0xA558), 0, 0, 0);
                break;

            case MetalLadderType.NorthCastle:
                AddComponent(new LocalizedAddonComponent(0xA55C, 1154133), 0, 0, 0);
                break;

            case MetalLadderType.WestCastle:
                AddComponent(new LocalizedAddonComponent(0xA55B, 1154133), 0, 0, 0);
                break;

            case MetalLadderType.South:
                AddComponent(new LocalizedAddonComponent(0xA557, 1154133), 0, 0, 0);
                break;

            case MetalLadderType.East:
                AddComponent(new LocalizedAddonComponent(0xA558, 1154133), 0, 0, 0);
                break;

            case MetalLadderType.North:
                AddComponent(new LocalizedAddonComponent(0xA55C, 1154133), 0, 0, 0);
                break;

            case MetalLadderType.West:
                AddComponent(new LocalizedAddonComponent(0xA55B, 1154133), 0, 0, 0);
                break;
            }
        }