Exemplo n.º 1
0
            // Methods
            public override bool Run()
            {
                WooHooBedList.listWP[base.Target.ObjectId].activeSim = base.Actor;
                WoohooForMoneyBed.DisplayInfo(base.Target.ObjectId);

                return(true);
            }
Exemplo n.º 2
0
            // Methods
            public override bool Run()
            {
                Sim client    = WooHooBedList.listWP[base.Target.ObjectId].client;
                Sim solicitor = WooHooBedList.listWP[base.Target.ObjectId].solicitor;

                //Set and get the active and none active sim
                WooHooBedList.listWP[base.Target.ObjectId].activeSim = base.Actor;
                Sim nonActiveSim = WooHooBedList.listWP[base.Target.ObjectId].client;

                //Get the none active sim
                if (WooHooBedList.listWP[base.Target.ObjectId].activeSim == WooHooBedList.listWP[base.Target.ObjectId].solicitor)
                {
                    nonActiveSim = WooHooBedList.listWP[base.Target.ObjectId].client;
                }
                else
                {
                    nonActiveSim = WooHooBedList.listWP[base.Target.ObjectId].solicitor;
                }

                //Check both have been assigned
                if (solicitor != null && client != null)
                {
                    //Check both are still on the same lot
                    if (solicitor.LotCurrent == client.LotCurrent)
                    {
                        if (nonActiveSim == client)
                        {
                            WooHooBedActions.AddWooHooToQue(base.Target, base.Actor, nonActiveSim, WoohooForMoneyBed.WooHooClient.Singleton);
                        }
                        else
                        {
                            WooHooBedActions.AddWooHooToQue(base.Target, base.Actor, nonActiveSim, WoohooForMoneyBed.WooHooSoliciter.Singleton);
                        }
                    }
                    else
                    {
                        WoohooForMoneyBed.NotOnLot(nonActiveSim);
                    }
                }
                else
                {
                    WoohooForMoneyBed.DisplayInfo(base.Target.ObjectId);
                }
                return(true);
            }