protected override void OnTarget(Mobile from, object targeted) { IPoint3D t = targeted as IPoint3D; if (t == null) { return; } Point3D loc = new Point3D(t); m_Man.AI = AIType.AI_Melee; m_Man.m_NextMove = loc; WayPoint GoHere = new WayPoint(); GoHere.Map = from.Map; GoHere.Location = loc; m_Man.CurrentWayPoint = GoHere; m_Man.CantWalk = false; m_Man.Say("I will gladly move here for you Master"); m_Man.m_WayPoints.Add(GoHere); from.SendGump(new MannequinControl(m_Man, from, 1)); }
public override void OnResponse(NetState state, RelayInfo info) { Mobile from = state.Mobile; switch (info.ButtonID) { case 0: { m_Controlled.Say("All done then? OK."); m_Controlled.AI = AIType.AI_Use_Default; m_Controlled.CantWalk = true; m_Controlled.m_Listen = false; break; } case 1: //Move { from.CloseGump(typeof(MannequinControl)); from.SendGump(new MannequinControl(m_Controlled, from, 1)); break; } case 2: //Face { from.CloseGump(typeof(MannequinControl)); from.SendGump(new MannequinControl(m_Controlled, from, 2)); break; } case 3: //Hue { from.CloseGump(typeof(MannequinControl)); from.SendGump(new MannequinControl(m_Controlled, from, 3)); break; } case 4: //Gender { if (m_Controlled.Female || m_Controlled.BodyValue == 401) { m_Controlled.Female = false; m_Controlled.BodyValue = 400; m_Controlled.Say("I'm now a man, thanks."); } else { m_Controlled.Female = true; m_Controlled.BodyValue = 401; m_Controlled.Say("You sliced it off!? Fine."); } from.SendGump(new MannequinControl(m_Controlled, from, 0)); break; } case 5: //MoveToPlayer { m_Controlled.AI = AIType.AI_Melee; m_Controlled.m_NextMove = from.Location; WayPoint GoHere = new WayPoint(); GoHere.Map = from.Map; GoHere.Location = from.Location; m_Controlled.CurrentWayPoint = GoHere; m_Controlled.CantWalk = false; m_Controlled.Say("I will gladly move here for you Master"); m_Controlled.m_WayPoints.Add(GoHere); from.SendGump(new MannequinControl(m_Controlled, from, 1)); break; } case 6: //MoveToTarget { from.Target = new MannequinTarget(from, m_Controlled); break; } case 7: { m_Controlled.m_Direction = Direction.Mask; m_Controlled.Direction = Direction.Mask; m_Controlled.Say("I am now facing Up"); from.SendGump(new MannequinControl(m_Controlled, from, 2)); break; } case 8: { m_Controlled.m_Direction = Direction.North; m_Controlled.Direction = Direction.North; m_Controlled.Say("I am now facing North"); from.SendGump(new MannequinControl(m_Controlled, from, 2)); break; } case 9: { m_Controlled.m_Direction = Direction.Right; m_Controlled.Direction = Direction.Right; m_Controlled.Say("I am now facing Right"); from.SendGump(new MannequinControl(m_Controlled, from, 2)); break; } case 10: { m_Controlled.m_Direction = Direction.East; m_Controlled.Direction = Direction.East; m_Controlled.Say("I am now facing East"); from.SendGump(new MannequinControl(m_Controlled, from, 2)); break; } case 11: { m_Controlled.m_Direction = Direction.Down; m_Controlled.Direction = Direction.Down; m_Controlled.Say("I am now facing Down"); from.SendGump(new MannequinControl(m_Controlled, from, 2)); break; } case 12: { m_Controlled.m_Direction = Direction.South; m_Controlled.Direction = Direction.South; m_Controlled.Say("I am now facing South"); from.SendGump(new MannequinControl(m_Controlled, from, 2)); break; } case 13: { m_Controlled.m_Direction = Direction.Left; m_Controlled.Direction = Direction.Left; m_Controlled.Say("I am now facing Left"); from.SendGump(new MannequinControl(m_Controlled, from, 2)); break; } case 14: { m_Controlled.m_Direction = Direction.West; m_Controlled.Direction = Direction.West; m_Controlled.Say("I am now facing West"); from.SendGump(new MannequinControl(m_Controlled, from, 2)); break; } case 15: { m_Controlled.Hue = 0x83EA; from.SendGump(new MannequinControl(m_Controlled, from, 3)); break; } case 16: { m_Controlled.Hue = 0x8414; from.SendGump(new MannequinControl(m_Controlled, from, 3)); break; } case 17: { m_Controlled.Hue = 0x8000; from.SendGump(new MannequinControl(m_Controlled, from, 3)); break; } } }