public override void OnResponse(Mobile from, string text) { int amount; if (Int32.TryParse(text, out amount)) { bool s = e.RemettreAlEmploye(amount); if (s) { t.ReponseAuGump(from, "Montant Réclamé."); } else { t.ReponseAuGump(from, "Nous ne vous devons pas tant!"); } from.SendGump(new EmployeGump(t, e, false)); } else { t.ReponseAuGump(from, "Je n'ai pas compris le montant que vous désirez réclamer."); from.Prompt = new ReclamerDuPrompt(t, e); } }
public override void OnResponse(Mobile from, string text) { int montant; if (Int32.TryParse(text, out montant)) { tresorier.ReponseAuGump(from, "L'employé fut ajouté au registre."); tresorier.AddEmploye(employe, nomEmploye, titreEmploye, montant); from.SendGump(new TresorierGump(tresorier, from, 0)); } else { from.SendMessage("Vous devez indiquer un nombre."); from.Prompt = new PaieEmployePrompt(tresorier, employe, nomEmploye, titreEmploye); } }
public override void OnResponse(Mobile from, string text) { int amount; if (Int32.TryParse(text, out amount)) { if (ajout) { t.AjoutFonds(from, amount); Commands.CommandLogging.WriteLine(from, "Le trésorier {0} {1} a reçu {2}.", t.Etablissement, t.Terre == null ? "" : String.Format("de la terre {0}", t.Terre.Nom), amount); } else { t.RetraitFonds(from, amount); Commands.CommandLogging.WriteLine(from, "Le trésorier {0} {1} s'est fait réclamé {2}.", t.Etablissement, t.Terre == null ? "" : String.Format("de la terre {0}", t.Terre.Nom), amount); } from.SendGump(new TresorierGump(t, from, 0)); } else { t.ReponseAuGump(from, String.Format("Je n'ai pas compris le montant que vous désirez {0}.", ajout ? "ajouter" : "retirer")); from.Prompt = new ModifierFondsPrompt(t, ajout); } }
public override void OnResponse(Mobile from, string text) { int amount; if (Int32.TryParse(text, out amount)) { if (ajout) { bool s = t.TransfererFonds(e, amount); if (s) { t.ReponseAuGump(from, "Montant transféré."); } else { t.ReponseAuGump(from, "Nos coffres sont trop vides pour que nous puissions lui " + "donner ce montant."); } } else { bool s = t.ReprendreMontant(e, amount); if (s) { t.ReponseAuGump(from, "Montant repris."); } else { t.ReponseAuGump(from, "Le total de ses paies non réclamées n'est pas suffisant " + "pour que vous puissiez reprendre un tel montant."); } } from.SendGump(new TresorierGump(t, from, 0)); } else { t.ReponseAuGump(from, String.Format("Je n'ai pas compris le montant que vous désirez {0}.", ajout ? "ajouter" : "retirer")); from.Prompt = new ModifierFondsPrompt(t, e, ajout); } }
public override void OnResponse(Mobile from, string text) { tresorier.ReponseAuGump(from, "Quel est le montant de sa paie mensuelle?"); from.Prompt = new PaieEmployePrompt(tresorier, employe, nomEmploye, text); }
public override void OnResponse(Mobile from, string text) { tresorier.ReponseAuGump(from, "Quel est son titre?"); from.Prompt = new TitreEmployePrompt(tresorier, employe, text); }
public override void OnResponse(Mobile from, string text) { tresorier.Gestionnaire = gestionnaire; tresorier.NomGestionnaire = text; tresorier.ReponseAuGump(from, "Le changement fut fait."); }