Esempio n. 1
0
		public override void OnDoubleClick( Mobile from )
		{
			if ( !IsChildOf( from.Backpack ) )
			{
				from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
			}
			else
			{
				this.Delete();

				Item i = null;

				switch ( Utility.Random( (from.BAC >= 5) ? 6 : 5) )
				{
					case 0: i = new OrigamiButterfly();	break;
					case 1: i = new OrigamiSwan();		break;
					case 2: i = new OrigamiFrog();		break;
					case 3: i = new OrigamiShape();		break;
					case 4: i = new OrigamiSongbird();	break;
					case 5: i = new OrigamiFish();		break;
				}

				if( i != null )
					from.AddToBackpack( i );

				from.SendLocalizedMessage( 1070822 ); // You fold the paper into an interesting shape.
			}
		}
Esempio n. 2
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1042001);                   // That must be in your pack for you to use it.
            }
            else
            {
                this.Delete();

                Item i = null;

                switch (Utility.Random((from.BAC >= 5) ? 6 : 5))
                {
                case 0: i = new OrigamiButterfly();     break;

                case 1: i = new OrigamiSwan();          break;

                case 2: i = new OrigamiFrog();          break;

                case 3: i = new OrigamiShape();         break;

                case 4: i = new OrigamiSongbird();      break;

                case 5: i = new OrigamiFish();          break;
                }

                if (i != null)
                {
                    from.AddToBackpack(i);
                }

                from.SendLocalizedMessage(1070822);                   // You fold the paper into an interesting shape.
            }
        }