Ejemplo n.º 1
0
		public override void OnDoubleClick( Mobile from )
		{
			BagOfReagents regBag = new BagOfReagents( 50 );

			if ( !from.AddToBackpack( regBag ) )
				regBag.Delete();
		}
Ejemplo n.º 2
0
        public override void OnDoubleClick(Mobile from)
        {
            BagOfReagents regBag = new BagOfReagents();

            if (!from.AddToBackpack(regBag))
            {
                regBag.Delete();
            }
        }
Ejemplo n.º 3
0
        public override void OnDoubleClick(Mobile from)
        {
            BagOfReagents regBag = new BagOfReagents(50);

            Item[] items = new Item[] { new FlamestrikeScroll(25), new LightningScroll(25), new GreaterHealScroll(10), new MagicReflectScroll(10), new Bandage(80) };

            foreach (Item i in items)
            {
                i.Weight = 0.01;
                regBag.DropItem(i);
            }

            Point3D itemLocation = Point3D.Zero;

            for (int i = 0; i < 40; ++i)
            {
                GreaterHealPotion hp   = new GreaterHealPotion();
                ManaPotion        mana = new ManaPotion();

                regBag.DropItem(hp);
                regBag.DropItem(mana);

                if (i == 0)
                {
                    itemLocation  = hp.Location;
                    mana.Location = itemLocation;
                }
                else
                {
                    hp.Location   = itemLocation;
                    mana.Location = itemLocation;
                }
            }

            if (!from.AddToBackpack(regBag))
            {
                regBag.Delete();
            }
        }
Ejemplo n.º 4
0
		public override void OnDoubleClick( Mobile from )
		{
			BagOfReagents regBag = new BagOfReagents( 50 );

			Item[] items = new Item[] { new FlamestrikeScroll( 25 ), new LightningScroll( 25 ), new GreaterHealScroll( 10 ), new MagicReflectScroll( 10 ), new Bandage( 80 ) };

			foreach( Item i in items )
			{
				i.Weight = 0.01;
				regBag.DropItem( i );
			}

			Point3D itemLocation = Point3D.Zero;
			for( int i = 0; i < 40; ++i )
			{
				GreaterHealPotion hp = new GreaterHealPotion();
				ManaPotion mana = new ManaPotion();

				regBag.DropItem( hp );
				regBag.DropItem( mana );

				if( i == 0 )
				{
					itemLocation = hp.Location;
					mana.Location = itemLocation;
				}
				else
				{
					hp.Location = itemLocation;
					mana.Location = itemLocation;
				}
			}

			if( !from.AddToBackpack( regBag ) )
				regBag.Delete();
		}