Esempio n. 1
0
        public void GoToLotSuccessEx(Sim sim, float f)
        {
            if (base.Actor != null)
            {
                Relationship relationship = Relationship.Get(base.Actor.SimDescription, base.mOtherSimDesc as SimDescription, false);
                if (relationship != null)
                {
                    relationship.STC.Set(base.Actor, sim, CommodityTypes.Amorous, 500f);
                    base.Actor.InteractionQueue.CancelAllInteractions();
                    while (base.Actor.CurrentInteraction != null)
                    {
                        Common.Sleep(5);
                    }

                    base.Actor.GreetSimOnMyLotIfPossible(sim);
                    CommonWoohoo.WoohooStyle style = CommonWoohoo.WoohooStyle.Safe;
                    if (!Woohooer.Settings.ReplaceWithRisky && TwoButtonDialog.Show(Woohooer.Localize("FriskyConfirm:Prompt", sim.IsFemale, new object[] { sim, base.Actor }), Woohooer.Localize("FriskyConfirm:Yes", sim.IsFemale, new object[] { sim, base.Actor }), Woohooer.Localize("FriskyConfirm:No", sim.IsFemale, new object[] { sim, base.Actor })))
                    {
                        style = CommonWoohoo.WoohooStyle.Risky;
                    }
                    new CommonWoohoo.PushWoohoo(base.Actor, sim, base.Autonomous, style);
                }
            }
        }
Esempio n. 2
0
            public static void GoToLotSuccessEx(Sim sim, float f)
            {
                if (sim.LotCurrent == null)
                {
                    return;
                }

                ServiceData    data   = KamaSimtra.Settings.FindServiceDataInvolvingProfessionalAndLot(sim.SimDescription.SimDescriptionId, sim.LotCurrent.LotId);
                SimDescription client = SimDescription.Find(data.mRequester);

                if (data != null && client != null && client.CreatedSim != null)
                {
                    Relationship relationship = Relationship.Get(client, sim.SimDescription, true);
                    if (relationship != null)
                    {
                        relationship.STC.Set(client.CreatedSim, sim, CommodityTypes.Amorous, 500f);
                        client.CreatedSim.InteractionQueue.CancelAllInteractions();
                        while (client.CreatedSim.CurrentInteraction != null)
                        {
                            Common.Sleep(0);
                        }

                        data.SetupAlarm();
                        data.DisableAutonomy();

                        client.CreatedSim.GreetSimOnMyLotIfPossible(sim);
                        CommonWoohoo.WoohooStyle style = CommonWoohoo.WoohooStyle.Safe;
                        if (!Woohooer.Settings.ReplaceWithRisky && TwoButtonDialog.Show(Woohooer.Localize("FriskyConfirm:Prompt", sim.IsFemale, new object[] { sim, client.CreatedSim }), Woohooer.Localize("FriskyConfirm:Yes", sim.IsFemale, new object[] { sim, client.CreatedSim }), Woohooer.Localize("FriskyConfirm:No", sim.IsFemale, new object[] { sim, client.CreatedSim })))
                        {
                            style = CommonWoohoo.WoohooStyle.Risky;
                        }
                        data.mStyle = style;
                        KamaSimtra.Settings.SetServiceData(data.mRequester, data);

                        new CommonWoohoo.PushWoohoo(sim, client.CreatedSim, false, style);

                        StyledNotification.Format format = new StyledNotification.Format(Common.Localize("OrderServices:Arrived", sim.IsFemale), sim.ObjectId, client.CreatedSim.ObjectId, StyledNotification.NotificationStyle.kSimTalking);
                        StyledNotification.Show(format);
                    }
                }
            }