public override void OnResponse(NetState sender, RelayInfo info) { if (m_Deed == null || m_Deed.Deleted) { return; } Mobile m = sender.Mobile; if (PersonalAttendant.CheckAttendant(m)) { m.SendLocalizedMessage(1076053); // You already have an attendant. return; } PersonalAttendant attendant = null; switch (info.ButtonID) { case 100: attendant = new AttendantMaleGuide(); break; case 101: attendant = new AttendantFemaleGuide(); break; case 102: attendant = new AttendantMaleHerald(); break; case 103: attendant = new AttendantFemaleHerald(); break; case 104: attendant = new AttendantMaleLuckyDealer(); break; case 105: attendant = new AttendantFemaleLuckyDealer(); break; case 106: attendant = new AttendantFortuneTeller(); break; } if (attendant != null) { PersonalAttendant.AddAttendant(m, attendant); attendant.BindedToPlayer = (m_Deed.Owner != null); attendant.SetControlMaster(m); attendant.ControlOrder = OrderType.Follow; attendant.ControlTarget = m; attendant.MoveToWorld(m.Location, m.Map); m_Deed.Delete(); } else if (info.ButtonID != 0) { sender.Mobile.SendLocalizedMessage(501311); // This option is currently disabled, while we evaluate it for game balance. } }
public override void OnResponse(NetState sender, RelayInfo info) { if (this.m_Deed == null || this.m_Deed.Deleted) return; Mobile m = sender.Mobile; if (PersonalAttendant.CheckAttendant(m)) { m.SendLocalizedMessage(1076053); // You already have an attendant. return; } PersonalAttendant attendant = null; switch ( info.ButtonID ) { case 100: attendant = new AttendantMaleGuide(); break; case 101: attendant = new AttendantFemaleGuide(); break; case 102: attendant = new AttendantMaleHerald(); break; case 103: attendant = new AttendantFemaleHerald(); break; case 104: attendant = new AttendantMaleLuckyDealer(); break; case 105: attendant = new AttendantFemaleLuckyDealer(); break; case 106: attendant = new AttendantFortuneTeller(); break; } if (attendant != null) { PersonalAttendant.AddAttendant(m, attendant); attendant.BindedToPlayer = (this.m_Deed.Owner != null); attendant.SetControlMaster(m); attendant.ControlOrder = OrderType.Follow; attendant.ControlTarget = m; attendant.MoveToWorld(m.Location, m.Map); this.m_Deed.Delete(); } else if (info.ButtonID != 0) { sender.Mobile.SendLocalizedMessage(501311); // This option is currently disabled, while we evaluate it for game balance. } }