Example #1
0
 public SutekIngredientInfo( SutekIngredient ingredient, Point3D location, int itemId, int textId, int hue )
 {
     m_Ingredient = ingredient;
     m_Location = location;
     m_ItemId = itemId;
     m_TextId = textId;
     m_Hue = hue;
 }
Example #2
0
 public SutekIngredientInfo(SutekIngredient ingredient, Point3D location, int itemId, int textId, int hue)
 {
     m_Ingredient = ingredient;
     m_Location   = location;
     m_ItemId     = itemId;
     m_TextId     = textId;
     m_Hue        = hue;
 }
Example #3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            m_Ingredient = (SutekIngredient)reader.ReadInt();
            m_TextId     = reader.ReadInt();
        }
Example #4
0
        public SutekIngredientItem(SutekIngredientInfo info)
            : base(info.ItemId)
        {
            Weight  = 0.0;
            Movable = false;

            Hue          = info.Hue;
            m_TextId     = info.TextId;
            m_Ingredient = info.Ingredient;

            MoveToWorld(info.Location, Map.TerMur);
        }
Example #5
0
            public void StartTimer()
            {
                if (m_ExpireTimer != null)
                {
                    m_ExpireTimer.Stop();
                }

                m_ExpireTimer = Timer.DelayCall(Timeout, new TimerCallback(OnExpired));

                SutekIngredient[] ingredients = (SutekIngredient[])Enum.GetValues(typeof(SutekIngredient));
                m_CurrentIngredient = ingredients[Utility.Random(ingredients.Length)];

                m_Owner.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1112821, string.Format("#{0}", (int)m_CurrentIngredient)); // I need to add some ~1_INGREDIENT~.

                m_IngredientsLeft--;
            }
Example #6
0
        public static void OnDoubleClickIngredient(Mobile from, SutekIngredient ingredient)
        {
            if (!QuestStarted(from))
            {
                return;
            }

            QuestContext context = m_Table[from];

            if (ingredient == context.CurrentIngredient)
            {
                from.SendLocalizedMessage(1112819); // You've successfully added this ingredient.

                context.OnIngredientAcquired();
            }
            else
            {
                from.SendLocalizedMessage(1112820); // That is not the right ingredient.

                BarkIngredient(from);
            }
        }
Example #7
0
 public SutekIngredientInfo(SutekIngredient ingredient, Point3D location, int itemId, int textId)
     : this(ingredient, location, itemId, textId, 0)
 {
 }
Example #8
0
 public SutekIngredientInfo( SutekIngredient ingredient, Point3D location, int itemId, int textId )
     : this(ingredient, location, itemId, textId, 0)
 {
 }
Example #9
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            /*int version = */
            reader.ReadInt();

            m_Ingredient = (SutekIngredient) reader.ReadInt();
            m_TextId = reader.ReadInt();
        }
Example #10
0
        public SutekIngredientItem( SutekIngredientInfo info )
            : base(info.ItemId)
        {
            Weight = 0.0;
            Movable = false;

            Hue = info.Hue;
            m_TextId = info.TextId;
            m_Ingredient = info.Ingredient;

            MoveToWorld( info.Location, Map.TerMur );
        }
Example #11
0
            public void StartTimer()
            {
                if ( m_ExpireTimer != null )
                    m_ExpireTimer.Stop();

                m_ExpireTimer = Timer.DelayCall( Timeout, new TimerCallback( OnExpired ) );

                SutekIngredient[] ingredients = (SutekIngredient[]) Enum.GetValues( typeof( SutekIngredient ) );
                m_CurrentIngredient = ingredients[Utility.Random( ingredients.Length )];

                // I need to add some ~1_INGREDIENT~.
                m_Owner.PublicOverheadMessage( MessageType.Regular, 0x3B2, 1112821, String.Format( "#{0}", (int) m_CurrentIngredient ) );

                m_IngredientsLeft--;
            }
Example #12
0
        public static void OnDoubleClickIngredient( Mobile from, SutekIngredient ingredient )
        {
            if ( !QuestStarted( from ) )
                return;

            QuestContext context = m_Table[from];

            if ( ingredient == context.CurrentIngredient )
            {
                // You've successfully added this ingredient.
                from.SendLocalizedMessage( 1112819 );

                context.OnIngredientAcquired();
            }
            else
            {
                // That is not the right ingredient.
                from.SendLocalizedMessage( 1112820 );

                BarkIngredient( from );
            }
        }