Esempio n. 1
0
            public InternalGump(AttendantFortuneTeller teller)
                : base(200, 200)
            {
                m_Teller = teller;

                AddPage(0);

                AddBackground(0, 0, 291, 155, 0x13BE);
                AddImageTiled(5, 6, 280, 20, 0xA40);
                AddHtmlLocalized(9, 8, 280, 20, 1075994, 0x7FFF, false, false);  // Fortune Teller
                AddImageTiled(5, 31, 280, 91, 0xA40);
                AddHtmlLocalized(9, 35, 280, 40, 1076025, 0x7FFF, false, false); // Ask your question
                AddImageTiled(9, 55, 270, 20, 0xDB0);
                AddImageTiled(10, 55, 270, 2, 0x23C5);
                AddImageTiled(9, 55, 2, 20, 0x23C3);
                AddImageTiled(9, 75, 270, 2, 0x23C5);
                AddImageTiled(279, 55, 2, 22, 0x23C3);

                AddTextEntry(12, 56, 263, 17, 0xA28, 15, "");

                AddButton(5, 129, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0);
                AddHtmlLocalized(40, 131, 100, 20, 1060051, 0x7FFF, false, false); // CANCEL

                AddButton(190, 129, 0xFB7, 0xFB8, 1, GumpButtonType.Reply, 0);
                AddHtmlLocalized(225, 131, 100, 20, 1006044, 0x7FFF, false, false); // OK
            }
Esempio n. 2
0
            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.
                }
            }
Esempio n. 3
0
			public InternalGump( AttendantFortuneTeller teller ) : base( 200, 200 )
			{
				m_Teller = teller;

				AddPage( 0 );

				AddBackground( 0, 0, 291, 155, 0x13BE );
				AddImageTiled( 5, 6, 280, 20, 0xA40 );
				AddHtmlLocalized( 9, 8, 280, 20, 1075994, 0x7FFF, false, false ); // Fortune Teller
				AddImageTiled( 5, 31, 280, 91, 0xA40 );
				AddHtmlLocalized( 9, 35, 280, 40, 1076025, 0x7FFF, false, false ); // Ask your question
				AddImageTiled( 9, 55, 270, 20, 0xDB0 );
				AddImageTiled( 10, 55, 270, 2, 0x23C5 );
				AddImageTiled( 9, 55, 2, 20, 0x23C3 );
				AddImageTiled( 9, 75, 270, 2, 0x23C5 );
				AddImageTiled( 279, 55, 2, 22, 0x23C3 );

				AddTextEntry( 12, 56, 263, 17, 0xA28, 15, "" );

				AddButton( 5, 129, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0 );
				AddHtmlLocalized( 40, 131, 100, 20, 1060051, 0x7FFF, false, false ); // CANCEL

				AddButton( 190, 129, 0xFB7, 0xFB8, 1, GumpButtonType.Reply, 0 );
				AddHtmlLocalized( 225, 131, 100, 20, 1006044, 0x7FFF, false, false ); // OK
			}