Ejemplo n.º 1
0
 protected override void OnTarget( Mobile from, object targ )
 {
     PoisoningCraftState newState = new PoisoningCraftState( from, m_CraftState.Tool );
     if ( targ is BaseRecipe )
     {
         if ( newState.ReadRecipe( targ as BaseRecipe ) )
             from.SendGump( new PoisoningGump( newState ) );
         else
         {
             m_CraftState.LastMessage = newState.LastMessage;
             from.SendGump( new PoisoningGump( m_CraftState ) );
         }
     }
     else
     {
         from.SendMessage( "That's not a valid recipe." );
         from.SendGump( new PoisoningGump( m_CraftState ) );
     }
 }