示例#1
0
      public override void OnDoubleClick( Mobile from )
      {

	PlayerMobile pm = from as PlayerMobile;

			//if ( !IsChildOf( from.Backpack ) )
			{
				//from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
			}
			//else if( from.InRange( this.GetWorldLocation(), 1 ) ) 
		        {
           		from.FixedParticles( 0x373A, 10, 15, 5036, EffectLayer.Head ); 
               		from.PlaySound( 521 );
        		VoltSpider VoltSpider = new VoltSpider();
        		VoltSpider.Controlled = true;
        		VoltSpider.ControlMaster = from;
        		VoltSpider.IsBonded = true;
        		VoltSpider.Location = from.Location;
        		VoltSpider.Map = from.Map;
        		World.AddMobile( VoltSpider );

               		from.SendMessage( "You raised a Volt Spider with loving care." );
      			this.Delete();
		        } 
		        //else 
		        { 
		            from.SendLocalizedMessage( 500446 ); // That is too far away. 
		        }
      }
示例#2
0
      public override void OnDoubleClick( Mobile from )
      {

          PlayerMobile pm = from as PlayerMobile;
          {
              from.FixedParticles(0x373A, 10, 15, 5036, EffectLayer.Head);
              from.PlaySound(521);
              VoltSpider VoltSpider = new VoltSpider();
              VoltSpider.Controlled = true;
              VoltSpider.ControlMaster = from;
              VoltSpider.IsBonded = true;
              VoltSpider.Location = from.Location;
              VoltSpider.Map = from.Map;
              World.AddMobile(VoltSpider);

                  from.SendMessage("You hatch a Volt Spider from the eggs you looted, and it is now your loyal pet.");
                  this.Delete();

              if ( from.Followers > from.FollowersMax )
              {
                  from.SendMessage(" You cannot hatch the eggs you have too many followers!");
              }
          }
      }