public InteriorDecorator() : base(0xFC1) { Weight = 1.0; LootType = LootType.Blessed; m_Command = DecorateCommand.Turn; }
public override void OnResponse(NetState sender, RelayInfo info) { DecorateCommand command = DecorateCommand.None; switch (info.ButtonID) { case 1: command = DecorateCommand.Turn; break; case 2: command = DecorateCommand.Up; break; case 3: command = DecorateCommand.Down; break; } if (command != DecorateCommand.None) { m_Decorator.Command = command; sender.Mobile.SendGump(new InternalGump(m_Decorator)); sender.Mobile.Target = new InternalTarget(m_Decorator); } else { Target.Cancel(sender.Mobile); } }
public override void OnResponse(NetState sender, RelayInfo info) { Mobile from = sender.Mobile; DecorateCommand command = DecorateCommand.None; switch (info.ButtonID) { case 1: command = DecorateCommand.Turn; break; case 2: command = DecorateCommand.Up; break; case 3: command = DecorateCommand.Down; break; case 4: command = DecorateCommand.North; break; case 5: command = DecorateCommand.East; break; case 6: command = DecorateCommand.South; break; case 7: command = DecorateCommand.West; break; case 8: command = DecorateCommand.Lock; break; case 9: command = DecorateCommand.Secure; break; case 10: command = DecorateCommand.Release; break; case 11: command = DecorateCommand.Trash; break; case 12: command = DecorateCommand.Close; break; } if (command == DecorateCommand.Lock) { int[] commandi = new int[] { 0x0023 }; from.DoSpeech("", commandi, 0, 52); } else if (command == DecorateCommand.Secure) { int[] commandi = new int[] { 0x0025 }; from.DoSpeech("", commandi, 0, 52); } else if (command == DecorateCommand.Release) { int[] commandi = new int[] { 0x0024 }; from.DoSpeech("", commandi, 0, 52); } else if (command == DecorateCommand.Trash) { int[] commandi = new int[] { 0x0028 }; from.DoSpeech("", commandi, 0, 52); } else if (command == DecorateCommand.Close) { from.CloseGump(typeof(InternalGump)); } else if (command != DecorateCommand.None) { m_Decorator.Command = command; sender.Mobile.Target = new InternalTarget(m_Decorator); } if (command != DecorateCommand.Close) { from.CloseGump(typeof(InternalGump)); from.SendGump(new InternalGump(m_Decorator)); } }