public override void OnResponse(NetState sender, RelayInfo info) { Mobile from = sender.Mobile; if (info.ButtonID == 2) { if (info.IsSwitched(1)) { if (Banker.Deposit(from, 5000, true)) { SphynxFortune.ApplyFortune(from, Sphynx); SphynxFortune.ApplyFortune(from, Sphynx); from.UpdateResistances(); } else { from.SendLocalizedMessage(1061006); // You haven't got the coin to make the proper donation to the Sphynx. Your fortune has not been read. } } else { from.SendLocalizedMessage(1061007); // You decide against having your fortune told. } } }
public AskAboutFutureEntry(Mobile from, Sphynx Sphynx) : base(6199, 8) { m_Sphynx = Sphynx; m = from; Enabled = !SphynxFortune.UnderEffect(from); }