Esempio n. 1
0
            protected override void OnTarget(Mobile from, object target)
            {
                if (target is BaseLight)
                {
                    BaseLight light = (BaseLight)target;

                    if (light is Candelabra || light is CandelabraStand || light is CandleSkull || light is HeatingStand || light is WallSconce)
                    {
                        light.HasFuel  = true;
                        light.BurntOut = false;

                        SetDuration(light);

                        from.SendMessage("You mount the candle in the stand.");
                        m_Candle.Delete();
                    }
                    else
                    {
                        from.SendMessage("This will not work with that.");
                    }
                }
                else if (target is Mobile && ((Mobile)target) == from)
                {
                    m_Candle.Ignite();
                }
                else
                {
                    from.SendMessage("This will not work with that.");
                }
            }
Esempio n. 2
0
        public void OnTarget(Mobile from, object obj)
        {
            if (obj is Candle)
            {
                Candle targ = (Candle)obj;
                from.SendMessage("En appuyant fortement, vous parvenez à fixer la chandelle sur le crâne");
                from.AddToBackpack(new CandleSkull());
                this.Delete();
                targ.Delete();
                return;
            }

            from.SendMessage("Vous ne pouvez fixer cela sur le crâne");
        }
Esempio n. 3
0
        public void OnTarget(Mobile from, object obj)
        {
            if (obj is Candle)
            {
                Candle targ = (Candle)obj;

                from.SendMessage("Vous déposez la chandelle dans la citrouille!");
                this.Ignite();
                targ.Delete();
                Timer.DelayCall(TimeSpan.FromMinutes(20), Douse);
                return;
            }
            if (obj is CandleSkull)
            {
                from.SendMessage("Ceci fait bien trop peur pour une citrouille si jolie...");
                return;
            }

            from.SendMessage("Cela n'entrera pas dans la citrouille.");
        }